/* --- VARIABLES DE MARCA --- */
:root {
    --gold: #c5a059;
    --black: #000000;
    --dark-grey: #121212;
    --white: #ffffff;
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    background-image: url('Images/fondo-amarillo.jpg'); 
    background-attachment: fixed;
    background-size: cover;
    color: var(--white);
    overflow-x: hidden;
}

.font-cinzel { font-family: 'Cinzel', serif; letter-spacing: 2px; }

/* --- CORRECCIÓN BANNER VIDEO SUPERIOR (RESIZING FORZADO) --- */
.top-video-banner {
    width: 100%;
    height: 250px; /* Tamaño del banner fijo en el diseño */
    position: relative;
    overflow: hidden; /* Corta lo que sobresalga */
    background-color: var(--black);
    z-index: 10;
}

.video-container-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#banner-video-top {
    width: 100% !important;
    height: 250px !important; /* Obligamos al video a medir 250px de alto */
    object-fit: cover; /* El video se estira/recorta para llenar los 250px sin deformarse */
    display: block;
}

.banner-gold-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
    z-index: 20;
}

/* --- INTRO DE VIDEO --- */
#intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--black); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
}
#start-experience { text-align: center; display: flex; flex-direction: column; align-items: center; }
#logo-intro { width: 320px; margin-bottom: 40px; filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.4)); }
#btn-iniciar-audio {
    background: var(--black); color: var(--gold); border: 2px solid var(--gold);
    padding: 22px 60px; font-family: 'Cinzel', serif; letter-spacing: 4px; cursor: pointer; transition: 0.5s;
}
#btn-iniciar-audio:hover { background: var(--gold); color: var(--black); transform: translateY(-5px); }
#intro-overlay video { width: 100%; height: 100%; object-fit: cover; display: none; }
#saltar-intro {
    position: absolute; bottom: 40px; right: 40px; background: rgba(0, 0, 0, 0.6); 
    color: var(--gold); border: 1px solid var(--gold); padding: 10px 25px; cursor: pointer; display: none;
}
.intro-oculta { opacity: 0; pointer-events: none; transition: opacity 1s ease-out; }

/* --- HEADER --- */
.main-header { background-color: var(--black); border-bottom: 2px solid var(--gold); }
.header-top { padding: 15px 0; }
.top-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 90px; width: auto; }
.search-bar { display: flex; background-color: var(--dark-grey); border: 1px solid var(--gold); }
.search-bar input { background: transparent; border: none; padding: 10px 15px; color: var(--gold); width: 300px; }
.search-bar button { background: transparent; border: none; color: var(--gold); padding: 0 15px; }
.header-icons a { color: var(--gold); margin-left: 25px; font-size: 1.4rem; transition: 0.3s; }
.exit-text { display: block; font-size: 9px; color: #666; font-family: 'Cinzel'; }

/* --- NAVEGACIÓN --- */
.main-nav { background-color: var(--black); }
.main-nav ul { list-style: none; display: flex; justify-content: center; }
.main-nav a {
    display: block; color: var(--white); padding: 20px 30px; text-decoration: none;
    font-family: 'Cinzel', serif; font-size: 0.85rem; letter-spacing: 2px; transition: 0.4s;
}
.main-nav a:hover { color: var(--gold); background-color: #080808; }
.nav-gestionar { color: var(--gold) !important; font-weight: bold; }

/* --- HERO --- */
.hero-container-wrapper { position: relative; max-width: 1200px; margin: 30px auto 60px auto; }
.hero-section {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)), url('Images/Banner1.png') no-repeat center/cover;
    height: 450px; display: flex; align-items: center; border: 1px solid var(--gold); width: 85%;
}
.hero-content h1 { font-size: 4rem; color: var(--gold); font-family: 'Cinzel'; }
.btn-gold-action {
    display: inline-block; background-color: var(--gold); color: var(--black);
    padding: 15px 40px; text-decoration: none; font-family: 'Cinzel', serif; font-weight: 700; transition: 0.4s;
}
.hero-right-panel {
    background: url('Images/Banner2.png') no-repeat center/cover;
    width: 320px; height: 320px; position: absolute; top: 50%; right: 0;
    transform: translateY(-50%); border: 2px solid var(--gold); z-index: 3;
}

/* --- CATEGORÍAS --- */
.section-title-gold { font-family: 'Cinzel', serif; font-size: 2.4rem; color: var(--gold); margin-bottom: 50px; text-align: center; letter-spacing: 6px; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
.category-item { position: relative; overflow: hidden; padding-top: 100%; border: 1px solid var(--gold); transition: 0.5s; }
.category-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.cat-overlay-text { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.8); color: var(--gold); padding: 10px; font-family: 'Cinzel', serif; font-size: 0.8rem; text-align: center; }

/* --- IMPRESCINDIBLES (CORREGIDOS) --- */
.essentials-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 30px; margin-top: 40px; }
.essentials-block { position: relative; height: 320px; border: 1px solid var(--gold); overflow: hidden; }
.ofertas-descuentos { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('Images/Ofertas.png') no-repeat center center/cover; }
.otros-productos { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('Images/OtrosProductos.png') no-repeat center center/cover; }
.essential-link h3 { font-size: 2.2rem; color: var(--gold); }
.essential-link i { margin-top: 20px; font-size: 1.5rem; color: var(--gold); border: 1px solid var(--gold); padding: 15px; border-radius: 50%; transition: 0.4s; }

/* --- FOOTER --- */
.main-footer { background-color: var(--black); border-top: 3px solid var(--gold); padding: 60px 0 20px 0; }
.gold-text { color: var(--gold) !important; }
.footer-column a { color: #666; text-decoration: none; }
.footer-column a:hover { color: var(--gold); }
.payment-icons img { width: 45px; margin-right: 15px; filter: grayscale(1); }
.copyright-gold { margin-top: 30px; font-size: 0.7rem; color: #444; font-family: 'Cinzel'; }

/* --- ESCALA 78% (ORIGEN DEL CONFLICTO) --- */
.ajuste-escala {
    transform: scale(0.78); transform-origin: top center;
    width: 128.2%; margin-left: -14.1%; 
}
@media (max-width: 992px) {
    .ajuste-escala { transform: none; width: 100%; margin-left: 0; }
}

/* --- LOGIN POPUP LUXURY --- */
.login-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px); /* Efecto borroso elegante */
    z-index: 20000;
    display: none; /* Oculto por defecto */
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}

.login-overlay.active { display: flex; opacity: 1; }

.login-box-luxury {
    position: relative;
    width: 400px; padding: 50px 40px;
    background: var(--black);
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
    text-align: center;
    overflow: hidden;
}

/* Marca de agua del logo detrás */
.login-box-luxury::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; height: 70%;
    background: url('logo-dkasu.png') no-repeat center center;
    background-size: contain;
    opacity: 0.15; /* Muy sutil */
    z-index: 0;
    pointer-events: none;
}

/* Elementos del formulario (encima de la marca de agua) */
.login-content { position: relative; z-index: 2; }

.login-title {
    font-family: 'Cinzel', serif; color: var(--gold);
    font-size: 2rem; margin-bottom: 30px; letter-spacing: 3px;
}

.input-luxury-group { margin-bottom: 25px; text-align: left; }

.input-luxury-group label {
    font-family: 'Cinzel', serif; color: var(--gold); font-size: 0.8rem; display: block; margin-bottom: 8px;
}

.input-luxury {
    width: 100%; padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none; border-bottom: 2px solid #555;
    color: var(--white); font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

.input-luxury:focus {
    outline: none; border-bottom-color: var(--gold); background: rgba(197, 160, 89, 0.1);
}

.btn-login-gold {
    width: 100%; padding: 15px; margin-top: 10px;
    background: var(--gold); color: var(--black);
    border: none; font-family: 'Cinzel', serif; font-weight: bold; letter-spacing: 2px;
    cursor: pointer; transition: 0.3s;
}

.btn-login-gold:hover {
    background: var(--white); box-shadow: 0 0 15px var(--gold);
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    color: #666; font-size: 1.5rem; cursor: pointer; z-index: 3; transition: 0.3s;
}
.close-modal:hover { color: var(--gold); }

/* Input de Cantidad Luxury */
.qty-selector {
    background: #000;
    color: #fff;
    border: 1px solid #c5a059;
    padding: 10px;
    width: 60px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin-right: 10px;
}

/* Fila de acción en tarjeta de producto */
.card-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.btn-add-fast {
    background: #c5a059;
    color: #000;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    flex-grow: 1; /* Ocupa el resto del espacio */
    transition: 0.3s;
}

.qty-selector {
    background: #000;
    color: #fff;
    border: 1px solid #c5a059;
    padding: 10px;
    width: 60px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin-right: 10px;
}

/* Fila de acción en tarjeta de producto */
.card-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.btn-add-fast {
    background: #c5a059;
    color: #000;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    flex-grow: 1; /* Ocupa el resto del espacio */
    transition: 0.3s;
}
.btn-add-fast:hover { background: #fff; }