/* ==========================================================================
   ESTILOS BASE / REINICIO
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    background: #000;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   SECCIÓN HERO (PORTADA EDITORIAL)
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#heroVideo, .hero-bg {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.hero-bg {
    opacity: 1;
}

#heroVideo {
    z-index: 1;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    padding: 60px;
    pointer-events: none;
}

/* Identidad Visual (Logo) */
.logo-container {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
}

.logo-img {
    width: 640px;
    height: auto;
    opacity: 0.96;
    filter: drop-shadow(0 10px 35px rgba(0,0,0,0.55));
    transition: 0.5s ease;
}

/* Bloque del Slogan Derecho */
.side-message {
    position: absolute;
    right: 2%;
    top: 46%;
    transform: translateY(-50%);
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.side-message h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 3.2rem;
    line-height: 0.95;
    letter-spacing: -1px;
    color: white;
    text-shadow: 0 5px 25px rgba(0,0,0,0.6);
}

.side-message span {
    color: #d6a566;
}

/* Efecto Luz Animada en Línea */
.luz-linea {
    width: 220px;
    height: 2px;
    margin-top: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, rgba(214,165,102,0.35), transparent);
}

.luz-linea::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50px;
    width: 35px;
    height: 100%;
    background: white;
    filter: blur(3px);
    animation: luz 5s linear infinite;
}

@keyframes luz {
    0% { left: -50px; }
    100% { left: 230px; }
}

/* Botón Central e Infobar */
.bottom-center {
    position: absolute;
    left: 50%;
    bottom: 70px;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: auto;
}

#dynamic-text {
    font-size: 0.9rem;
    letter-spacing: 10px;
    font-weight: 300;
    color: white;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.cta-button {
    padding: 16px 50px;
    background: #d6a566;
    border: none;
    font-size: 0.8rem;
    letter-spacing: 5px;
    cursor: pointer;
    transition: 0.5s ease;
}

.cta-button:hover {
    background: transparent;
    color: white;
    border: 1px solid #d6a566;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(214,165,102,0.5);
}

.divider-line {
    height: 1px;
    width: 80%;
    margin: auto;
    background: linear-gradient(90deg, transparent, rgba(214,165,102,.35), transparent);
}

/* ==========================================================================
   FASE 2: STORYTELLING (MANIFIESTO)
   ========================================================================== */
.story-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    text-align: center;
    padding: 0 15%;
    position: relative;
}

.story-observer {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.6s ease, transform 1.6s ease;
}

.story-observer.visible {
    opacity: 1;
    transform: translateY(0);
}

.gold-text {
    color: #d6a566;
    letter-spacing: 7px;
    font-size: .75rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.main-story {
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.7rem;
    font-weight: 300;
    line-height: 1.3;
    max-width: 900px;
    margin: auto;
}

/* ==========================================================================
   BARRA DE FILTROS (STICKY NAV)
   ========================================================================== */
.filter-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 45px;
}

.filter-item {
    color: #888;
    font-size: .75rem;
    letter-spacing: 4px;
    cursor: pointer;
    position: relative;
    transition: transform .4s ease, color .4s ease, opacity .4s ease;
}

.filter-item:hover {
    transform: translateY(-2px);
}

.filter-item:hover, 
.filter-item.active {
    color: #d6a566;
    opacity: 1;
}

.filter-item::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #d6a566;
    transition: 0.4s ease;
    transform: translateX(-50%);
}

.filter-item.active::after, .filter-item:hover::after {
    width: 100%;
}

/* ==========================================================================
   CATÁLOGO - GRID EDITORIAL & PRODUCTOS
   ========================================================================== */
.grid-editorial {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
    justify-content: center;
    background: #000;
    padding: 40px 4%;
    gap: 40px;
}

.product-card {
    position: relative;
    background: #0a0a0a;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease, transform 1s ease, border-color .6s ease, box-shadow .6s ease;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: rgba(214,165,102,.15);
    box-shadow: 0 25px 50px rgba(0,0,0,.5);
}

/* Destello Editorial al pasar el mouse */
.product-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
    transition: 1.2s ease;
    z-index: 5;
    pointer-events: none;
}

.product-card:hover::before {
    left: 100%;
}

/* Media y Multimedia interna */
.media-container {
    position: relative;
    aspect-ratio: 3 / 4;
    width: 100%;
    background: #111;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

.product-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.product-card:hover .product-video {
    opacity: 1;
}

/* Ficha Técnica de Producto */
.product-info {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 45px 25px;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
    background: linear-gradient(transparent, rgba(0,0,0,.95));
}

.product-card:hover .product-info {
    opacity: 1;
    transform: translateY(0);
}

.product-info h3 {
    letter-spacing: 4px;
    font-weight: 300;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.product-info p {
    color: #d6a566;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

/* Botón de Conversión WhatsApp */
.wp-boutique {
    background: transparent;
    border: 1px solid rgba(214, 165, 102, 0.5);
    color: #d6a566;
    padding: 12px 30px;
    font-size: 0.65rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.4s ease;
    text-transform: uppercase;
}

.wp-boutique:hover {
    background: #d6a566;
    color: #000;
    border-color: #d6a566;
}

/* ==========================================================================
   RESPONSIVE CORREGIDO (SMARTPHONES)
   ========================================================================== */
@media(max-width:768px) {
    
    .logo-container {
        position: absolute !important;
        top: -2px !important;
        left: -75px !important;
        right: auto !important;
        transform: none !important;
        width: auto !important;
        display: block !important;
        z-index: 20 !important;
    }

    .logo-img {
        width: 360px !important; 
        height: auto !important;
        opacity: .96;
        filter: drop-shadow(0 8px 25px rgba(0,0,0,.45));
    }

    .side-message {
        top: 58%;
        left: 50%;
        right: auto; 
        width: 90%;
        transform: translateX(-50%);
        text-align: center;
        align-items: center;
    }

    .side-message h1 {
        font-size: 2.2rem;
    }

    .story-section {
        min-height: 140vh;
        padding: 360px 30px;
    }

    .main-story {
        font-size: 1.8rem;
        line-height: 1.4;
        max-width: 95%;
        margin-bottom: 180px;
    }

    .gold-text {
        margin-bottom: 35px;
        letter-spacing: 5px;
    }

    .grid-editorial {
        grid-template-columns: 1fr;
        padding: 20px 6%;
    }

    .filter-wrapper {
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .bottom-center {
        bottom: 30px;
    }
}