*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0A0A;
    color: #F5F4F0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.d-none { display: none !important; }
.d-none-flex { display: none !important; }

/* Selector de Idioma Flotante */
.lang-nav {
    position: fixed;
    top: 30px;
    right: 5%;
    z-index: 3000;
    font-size: 0.75rem;
    letter-spacing: 2px;
}
.lang-btn {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}
.lang-btn:hover, .lang-btn.active { 
    color: #C5A880; 
}

/* ==========================================================================
   1. INTRO CINEMATOGRÁFICA
   ========================================================================== */
.cinema-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('tu-foto-editorial-oscura.jpg'); 
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.02);
    animation: fadeInFoto 2.5s ease forwards 1s;
    transition: transform 2.5s ease, opacity 1.8s ease;
    z-index: 1;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.95) 100%);
    z-index: 2;
}
.hero-frame { 
    position: relative; 
    z-index: 3; 
    max-width: 650px; 
}

.brand-title { font-family: 'Cinzel', serif; font-size: 2.4rem; letter-spacing: 10px; font-weight: 400; opacity: 0; animation: fadeInLento 1.2s ease forwards 0.5s; margin-bottom: 5px; color: #ffffff; }
.brand-subtitle { font-family: 'Cinzel', serif; font-size: 1.1rem; font-style: italic; color: #C5A880; opacity: 0; animation: fadeInLento 1.2s ease forwards 1.2s; margin-bottom: 15px; font-weight: 300; }
.brand-tagline { font-size: 0.75rem; letter-spacing: 5px; color: #888; text-transform: uppercase; opacity: 0; animation: fadeInLento 1.2s ease forwards 1.7s; margin-bottom: 30px; font-weight: 200; }
.hero-manifesto { font-size: 0.85rem; font-weight: 200; color: #B5AFAA; line-height: 1.8; opacity: 0; animation: fadeInLento 1.5s ease forwards 2.2s; margin-bottom: 40px; text-align: justify; text-align-last: center; }
.btn-enter { background: transparent; border: 1px solid #C5A880; color: #C5A880; font-size: 0.8rem; letter-spacing: 3px; padding: 15px 38px; cursor: pointer; opacity: 0; animation: fadeInLento 1.5s ease forwards 3s; transition: all 0.5s ease; text-transform: uppercase; }
.btn-enter:hover { background-color: #C5A880; color: #0A0A0A; }

.cinema-hero.zoom-out-effect .hero-bg-image { transform: scale(1.1); opacity: 0; }
.cinema-hero.zoom-out-effect .hero-frame { opacity: 0; transform: translateY(-20px); }

/* ==========================================================================
   2. PANTALLA DIVIDIDA (BIENVENIDA DE AGATHA)
   ========================================================================== */
.agatha-entrance-screen {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    background-color: #0A0A0A; 
    z-index: 2000;
}

.agatha-split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
    gap: 40px;
}

.agatha-text-side {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.agatha-greet { 
    font-family: 'Cinzel', serif; 
    font-size: 2.8rem; 
    color: #C5A880; 
    margin-bottom: 20px; 
    opacity: 0; 
    animation: fadeInLento 2s ease forwards 0.5s; 
}

.agatha-text { 
    font-size: 0.95rem; 
    font-weight: 200; 
    line-height: 1.9; 
    color: #D5D4CE; 
    text-align: justify; 
    opacity: 0; 
    animation: fadeInLento 2s ease forwards 1.4s; 
    margin-bottom: 30px; 
}

.btn-continue { 
    background: none; 
    border: none; 
    font-size: 0.75rem; 
    letter-spacing: 4px; 
    color: #888; 
    cursor: pointer; 
    text-align: left; 
    padding-bottom: 5px; 
    border-bottom: 1px solid transparent; 
    opacity: 0; 
    animation: fadeInLento 1.5s ease forwards 2.5s; 
    transition: color 0.4s; 
    text-transform: uppercase; 
}

.btn-continue:hover { 
    color: #C5A880; 
    border-bottom-color: #C5A880; 
}

/* FOTO VERTICAL ENCUADRADA */
.agatha-photo-side {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeInLento 2.5s ease forwards 1s;
    box-sizing: border-box;
}

.editorial-body-photo {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3 / 4;
    max-height: 75vh;
    background-color: #0A0A0A;
    border: 1px solid #C5A880;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 0 25px rgba(197, 168, 128, 0.15);
}

.agatha-back-photo {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

/* ==========================================================================
   3. ATELIER PRINCIPAL
   ========================================================================== */
.main-atelier { max-width: 1140px; margin: 0 auto; padding: 100px 4% 40px 4%; opacity: 0; animation: fadeInLento 1.5s ease forwards; }
.atelier-section { margin-bottom: 120px; }
.protocol-box { text-align: center; max-width: 750px; margin: 0 auto; }
.atelier-pre { font-size: 0.7rem; letter-spacing: 6px; color: #C5A880; display: block; margin-bottom: 10px; text-transform: uppercase; }
.atelier-title { font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 400; letter-spacing: 4px; margin-bottom: 20px; color: #fff; }
.atelier-desc { font-size: 0.9rem; font-weight: 200; color: #B5AFAA; line-height: 1.8; text-align: justify; text-align-last: center; }

.section-title { font-family: 'Cinzel', serif; font-size: 1.8rem; letter-spacing: 3px; text-align: center; margin-bottom: 50px; font-weight: 400; color: #fff; }

/* ==========================================================================
   4. BAÚL DE LOS SECRETOS (GRID)
   ========================================================================== */
.catalog-visual-grid-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.catalog-visual-card { text-align: center; }

.catalog-photo-box { 
    width: 100%; 
    height: 360px; 
    background-color: #000000; 
    border: 1px solid #1A1A1A; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
}

.catalog-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    display: block;
}

.catalog-visual-card h4 { font-family: 'Cinzel', serif; font-size: 0.95rem; letter-spacing: 2px; font-weight: 400; color: #fff; margin-bottom: 5px; }

.stock-wa-link { display: inline-block; font-size: 0.68rem; letter-spacing: 1px; color: #555; text-decoration: none; text-transform: uppercase; transition: color 0.3s; font-weight: 400; }
.stock-wa-link:hover { color: #C5A880; }

/* ==========================================================================
   5. VÍNCULOS EDITORIALES & SECCIONES DE MANSIÓN
   ========================================================================== */
.section-bonds {
    padding-top: 40px;
    padding-bottom: 40px;
}

.bonds-header {
    text-align: center;
    margin-bottom: 40px;
}

.packages-editorial-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
    align-items: stretch; 
}

.package-editorial-card { 
    background-color: #050505; 
    border: 1px solid #1A1A1A; 
    padding: 35px 22px 30px 22px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    position: relative; 
    transition: border-color 0.4s; 
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-sizing: border-box;
    text-align: center;
}

.package-editorial-card:hover { border-color: rgba(197, 168, 128, 0.3); }

/* TARJETA DESTACADA (VÍNCULO II) */
.package-editorial-card.featured { 
    border-color: #C5A880; 
    box-shadow: 0 10px 30px rgba(197, 168, 128, 0.12); 
    position: relative;
}

/* ETIQUETA SUPERPUESTA SOBRE EL MARCO SUPERIOR */
.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0A0A0A;
    border: 1px solid #C5A880;
    color: #C5A880;
    font-size: 0.62rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    padding: 3px 14px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 10;
    font-weight: 400;
}

.package-editorial-card h4 { 
    font-family: 'Cinzel', serif; 
    font-size: 1.15rem; 
    letter-spacing: 1px; 
    margin-bottom: 15px; 
    font-weight: 400; 
    color: #fff; 
    text-align: center;
}

.pack-description { 
    font-size: 0.82rem; 
    font-weight: 200; 
    color: #888; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    text-align: center;
}

.pack-list { 
    list-style: none; 
    margin-bottom: 20px; 
    padding: 0;
}

.pack-list li { 
    font-size: 0.82rem; 
    font-weight: 200; 
    color: #B5AFAA; 
    margin-bottom: 10px; 
    line-height: 1.5; 
    text-align: center;
}

/* NOTA DE PRECIO CURSIVA Y ELEGANTE */
.pack-price-note {
    font-size: 0.78rem;
    color: #C5A880 !important;
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 25px;
}

.pack-action-container {
    margin-top: auto;
    padding-top: 20px;
}

.btn-pack-wa { 
    display: block; 
    width: 100%;
    text-align: center; 
    text-decoration: none; 
    font-size: 0.72rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: #C5A880; 
    border: 1px solid rgba(197, 168, 128, 0.4); 
    padding: 14px 20px; 
    transition: all 0.3s; 
    font-family: 'Montserrat', sans-serif; 
    box-sizing: border-box;
}

.btn-pack-wa:hover { 
    background-color: #C5A880; 
    color: #0A0A0A; 
}

/* ==========================================================================
   6. DISCRECIÓN ABSOLUTA Y COBERTURA GLOBAL
   ========================================================================== */
.section-discretion { 
    width: 100%;
    padding: 60px 0 100px 0; 
}

.discretion-wrapper { 
    display: flex; 
    justify-content: center; 
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 4%;
    box-sizing: border-box;
}

.discretion-card { 
    width: 100%; 
    max-width: 750px;
    margin: 0 auto;
    padding: 40px 30px; 
    text-align: center; 
    box-sizing: border-box;
}

.discretion-ornament { 
    font-size: 1.2rem; 
    color: #444; 
    margin-bottom: 20px; 
}

.discretion-title { 
    font-family: 'Cinzel', serif;
    font-size: 1.6rem; 
    letter-spacing: 3px; 
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.4;
}

.discretion-text { 
    font-size: 0.95rem; 
    line-height: 1.8; 
    color: #aaa; 
    margin-bottom: 20px; 
    font-weight: 200;
    text-align: center;
}

.highlight-white { 
    color: #ffffff; 
    font-weight: 400; 
}

.discretion-gold-note { 
    font-size: 0.85rem; 
    line-height: 1.6; 
    color: #d4af37 !important;
    font-style: italic; 
    margin-top: 15px;
    margin-bottom: 25px; 
    font-weight: 300;
    text-align: center;
}

.usage-days-box { 
    margin-top: 40px; 
    border-top: 1px solid #222; 
    padding-top: 35px; 
}

.gold-symbol { 
    color: #d4af37; 
    font-size: 1.2rem;
    margin-bottom: 15px; 
}

.usage-days-title { 
    font-family: 'Cinzel', serif;
    font-size: 1.2rem; 
    color: #ffffff; 
    margin-bottom: 20px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    font-weight: 400;
}

.usage-days-desc { 
    font-size: 0.95rem; 
    line-height: 1.8; 
    color: #ccc; 
    font-weight: 200;
    text-align: center;
}

.gold-text-highlight {
    color: #d4af37 !important;
    font-weight: 400;
}

/* FOOTER */
.atelier-footer { 
    text-align: center; 
    padding-top: 40px; 
    margin-top: 60px; 
    border-top: 1px solid rgba(255,255,255,0.02); 
    font-size: 0.7rem; 
    color: #444; 
    letter-spacing: 1px; 
}

/* ==========================================================================
   ANIMACIONES CLAVE
   ========================================================================== */
@keyframes fadeInFoto {
    from { opacity: 0; }
    to { opacity: 0.45; }
}

@keyframes fadeInLento {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVO COMPLETO
   ========================================================================== */
@media (max-width: 900px) {
    .agatha-entrance-screen { 
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch; 
    }
    .agatha-split-container { 
        flex-direction: column; 
        height: auto; 
        min-height: 100vh;
        gap: 20px;
    }
    .agatha-text-side { 
        width: 100%; 
        height: auto; 
        padding: 60px 6% 10px 6%; 
    }
    .agatha-photo-side { 
        width: 100%; 
        justify-content: center;
        padding: 10px 6% 40px 6%; 
    }
    .editorial-body-photo {
        max-width: 280px;
        height: auto;
    }
    .catalog-visual-grid-four { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    .catalog-photo-box { height: 320px; }
    .main-atelier { padding-top: 90px; }
}

/* Ajuste específico para celulares en horizontal */
@media (max-width: 900px) and (orientation: landscape) {
    .catalog-photo-box {
        height: 60vh;
    }
}
