/* BLOQUE 1: Variables de Diseño y Materiales ***************************************************************************************/
:root {
    --color-bg: #000;
    --color-text: #1a1a1a;
    --font-logo: 'Syncopate', sans-serif;
    --font-main: 'Montserrat', sans-serif;
    --font-geometric: 'Orbitron', sans-serif;
    --font-organic: 'Monoton', cursive;
    --font-figurative: 'Cinzel Decorative', serif;
    --font-abstract: 'Megrim', cursive;

    /* Gradientes de Materiales Realistas */
    --frame-geometric: linear-gradient(145deg, #ffffff, #e6e6e6);
    --frame-organic: linear-gradient(to right, #d2b48c, #bc9b6a, #d2b48c);
    --frame-figurative: linear-gradient(to right, #5d2906, #3a1a04, #5d2906);
    --frame-abstract: linear-gradient(145deg, #bdc3c7, #2c3e50);
    --frame-heritage: linear-gradient(145deg, #333, #000);
}



/* BLOQUE 2: Estilos Base y Resets ***************************************************************************************/
body {
    margin: 0; padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none !important; color: inherit; }
/* PROTECCIÓN DE MARCA: Evita traducciones automáticas */
.notranslate {
    unicode-bidi: isolate; /* Ayuda a que el traductor ignore el contenido */
}


/* BLOQUE 3: Navegación Superior (Actualizado con Estado Scrolled) ***************************************************/

#main-nav {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between;
    padding: 30px 50px; box-sizing: border-box;
    z-index: 10000; /* Por encima de todo */
    transition: all 0.5s ease; /* Transición suave para el cambio de fondo */
    mix-blend-mode: difference; /* Estado inicial */
}

/* ESTADO CUANDO EL USUARIO HACE SCROLL */
#main-nav.is-scrolled {
    padding: 15px 50px; /* Se encoge un poco para dar elegancia */
    background: rgba(0, 0, 0, 0.5); /* El negro al 50% que pediste */
    backdrop-filter: blur(15px); /* El toque de lujo: desenfoca lo que hay detrás */
    -webkit-backdrop-filter: blur(15px);
    mix-blend-mode: normal; /* Desactivamos el modo diferencia para legibilidad */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* BLOQUE 3: Navegación Superior - Estabilización de Logo Gráfico ***************************************************/

#main-nav .logo {
    display: flex;
    align-items: center;
    /* Mantenemos el ancho fluido para el contenedor */
    width: clamp(120px, 15vw, 220px); 
    text-decoration: none;
}

/* LA CLAVE: Controlar la imagen (WebP) dentro del link */
#main-nav .logo img {
    width: 100%; /* La imagen llena el ancho del contenedor clamp */
    height: auto;
    display: block;
    /* Filtro para que el logo WebP también reaccione al mix-blend-mode si es negro/blanco */
    filter: brightness(1); 
}

/* Ajuste cuando el header se encoge al hacer scroll */
#main-nav.is-scrolled .logo {
    width: clamp(100px, 10vw, 160px); /* Un poco más pequeño al bajar */
}

#main-nav .nav-right a {
    margin-left: 30px; font-size: 0.8rem; letter-spacing: 2px; color: white;
}

/* BLOQUE 3: Ajuste Responsivo del Nav */
@media (max-width: 768px) {
    #main-nav {
        padding: 15px 20px; /* Menos aire a los lados para que quepa todo */
    }
    #main-nav .logo {
        font-size: 1rem; /* Un poco más pequeño */
        letter-spacing: 4px; /* Menos espacio entre letras */
        width: 110px; /* Tamaño fijo y prudente para celulares */
    }
    #main-nav .nav-right a {
        font-size: 0.65rem;
        margin-left: 15px; /* Pegamos un poco más los links */
    }
    #main-nav.is-scrolled {
    padding: 15px 20px; /* Se encoge un poco para dar elegancia */
    }
}

/* Ajuste de Logo (Imagen + Fallback) */

/* BLOQUE 3: Ajuste Maestro del Logo (Respetando logo-wrapper) */

/* 1. El contenedor del link */
.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Definimos un ancho máximo estricto para el LOGO */
    width: 180px !important; /* Ajusta este número según el tamaño que desees */
    height: auto;
    overflow: hidden;
}

/* 2. La imagen dentro del wrapper */
.logo-img {
    width: 100% !important; /* La imagen se obliga a medir lo que mida el wrapper */
    height: auto !important;
    display: block !important;
    /* Eliminamos el mix-blend-mode en el checkout si el fondo es gris claro */
}

/* 3. Ajuste para páginas de WooCommerce (Checkout) */
.woocommerce-checkout .logo-wrapper,
.woocommerce-page .logo-wrapper {
    width: 130px !important; /* Lo hacemos un poco más pequeño en el pago para que sea discreto */
}

/* 4. Ajuste para Móvil */
@media (max-width: 768px) {
    .logo-wrapper {
        width: 120px !important;
    }
}

.logo-text {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 8px;
    color: white;
    text-transform: uppercase;
    /* Por defecto, el texto está ahí pero invisible si la imagen carga */
    position: absolute;
    top: 0; left: 0;
    opacity: 0; 
    pointer-events: none;
    white-space: nowrap;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .logo-text { font-size: 1rem; letter-spacing: 4px; }
}



/* BLOQUE 4: Motor de Enmarcado Realista (Corregido) ***************************************************************************************/
.artwork-container {
    position: relative;
    padding: 20px; 
    background: var(--frame-color);
    box-shadow: 10px 10px 25px rgba(0,0,0,0.25);
    display: flex; 
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease;
    box-sizing: border-box;
    cursor: pointer; /* <--- AÑADE ESTO: Convierte la flecha en manito */
}
.artwork-inner {
    position: relative;
    padding: 15px; 
    background: #fff;
    width: 100%; height: 100%;
    box-shadow: inset 3px 3px 8px rgba(0,0,0,0.1);
    display: flex; justify-content: center; align-items: center;
    box-sizing: border-box;
    overflow: hidden; /* Mantiene la imagen dentro */
}
.artwork-image {
    max-width: 90%; max-height: 90%;
    object-fit: contain;
    transition: transform 0.8s ease;
}



/* BLOQUE 5: Geometrías Proporcionales (16:9, 9:16, Círculos Perfectos) ***************************************************************************************/
.is-square { aspect-ratio: 1 / 1; }
.is-rect-v { aspect-ratio: 9 / 16; }
.is-rect-h { aspect-ratio: 16 / 9; }

.is-circle, .is-circle .artwork-inner { 
    aspect-ratio: 1 / 1 !important; 
    border-radius: 50% !important; 
}

.is-oval, .is-oval .artwork-inner { 
    aspect-ratio: 9 / 16 !important; 
    border-radius: 100% / 120% !important; 
}



/* BLOQUE 6: Estructura de Sala (Headers) ***************************************************************************************/
.museum-hall { padding: 150px 5%; min-height: 100vh; }


.hall-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 80px; padding-bottom: 15px;
}

/* BLOQUE 6: Ajuste de enlaces */
.hall-link, .artist-link {
    position: relative;
    display: inline-block; /* Vital para el parallax */
    text-decoration: none;
    will-change: transform; /* Optimización de rendimiento */
}
.hall-title, .hall-curator {
    margin: 0; 
    display: block; /* El texto llena el enlace */
}
.hall-title {font-size: clamp(1.2rem, 6vw, 3.5rem); white-space: nowrap; /* PROHIBIMOS que salte a dos renglones */}
.hall-curator { font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; }

/* Fuentes y Materiales por Sala */
.geometric-hall .hall-title { font-family: var(--font-geometric); color: #ccc;}
.geometric-hall { --frame-color: var(--frame-geometric); }

.organic-hall .hall-title { font-family: var(--font-organic); text-transform: uppercase; color: #CDB590}
.organic-hall { --frame-color: var(--frame-organic); }

.figurative-hall .hall-title { font-family: var(--font-figurative); }
.figurative-hall { --frame-color: var(--frame-figurative); }

.abstract-hall .hall-title { font-family: var(--font-abstract); }
.abstract-hall { --frame-color: var(--frame-abstract); }

/*Utilidades y hover*/
.hall-link:hover, .artist-link:hover { opacity: 0.5; transition: 0.3s; }



/* BLOQUE 7: Etiqueta de Museo Estilo Overlay ***************************************************************************************/
.museum-label {
    position: absolute;
    bottom: 10%; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    width: 80%; /* Esto define el límite de los caracteres */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 2px;
    z-index: 10;
    box-sizing: border-box; /* Asegura que el padding no ensanche la etiqueta */
}

.work-title {
    display: block;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    
    /* Control estricto de una sola línea */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-artist {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 1px;
    margin-top: 4px;
    color: #666;

    /* Control estricto de una sola línea */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* BLOQUE 8: El Grid Maestro Unificado (Desktop - Optimizado) *******************************************************************************/
.hall-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 100px; 
    gap: 20px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 1. REGLA MAESTRA: Las obras llenan exactamente su espacio en el Grid */
.grid-item .artwork-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. COORDENADAS Escritorio HALLS (Aquí es donde se define la forma automáticamente) */
.pos-1 { grid-column: 1 / 3; grid-row: 3 / 5; } 
.pos-2 { grid-column: 3 / 6; grid-row: 2 / 6; } 
.pos-3 { grid-column: 6 / 9; grid-row: 1 / 4; } .pos-3 .artwork-container, .pos-3 .artwork-inner { aspect-ratio: 1 / 1; border-radius: 50%; } 
.pos-4 { grid-column: 6 / 9; grid-row: 4 / 7; } 
.pos-5 { grid-column: 9 / 13; grid-row: 3 / 5; } 
/*
.pos-6 { grid-column: 7 / 9; grid-row: 3 / 5; } 
.pos-7 { grid-column: 5 / 9; grid-row: 5 / 7; } 
.pos-8 { grid-column: 9 / 11; grid-row: 2 / 4; } 
.pos-9 { grid-column: 9 / 11; grid-row: 4 / 6; } 
.pos-10 { grid-column: 11 / 13; grid-row: 3 / 5; } .pos-10 .artwork-container, .pos-10 .artwork-inner {aspect-ratio: 1 / 1; border-radius: 50%; }
*/



/* BLOQUE 9: Responsive Móvil (3 Columnas) ****************************************************************************************/
@media (max-width: 768px) {
    body { overflow-x: hidden; }

    .hall-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr)); 
        grid-auto-rows: 50px; /* Filas cortas para estirar el diamante verticalmente */
        gap: 12px;
        padding: 15px;
    }

    .pos-1 { grid-column: 4 / 10; grid-row: 5 / 8; } 
    .pos-2 { grid-column: 1 / 7; grid-row: 8 / 12; } 
    .pos-3 { grid-column: 7 / 13; grid-row: 8 / 12; } .pos-3 .artwork-container, .pos-3 .artwork-inner { aspect-ratio: 1 / 1; border-radius: 50%; } 
    .pos-4 { grid-column: 2 / 12; grid-row: 12 / 15;} 
    .pos-5 { grid-column: 4 / 10; grid-row: 15 / 18;} 
    /*
    .pos-6 { grid-column: 9 / 13; grid-row: 13 / 17;} 
    .pos-7 { grid-column: 2 / 12; grid-row: 18 / 21;} 
    .pos-8 { grid-column: 2 / 7; grid-row: 23 / 26;} 
    .pos-9 { grid-column: 7 / 12; grid-row: 22 / 27;} 
    .pos-10 { grid-column: 3 / 11; grid-row: 28 / 33;} .pos-10 .artwork-container, .pos-10 .artwork-inner { aspect-ratio: 1 / 1; border-radius: 50%; }
    */
    
    /* Ajuste de Etiquetas */
    .museum-label { 
        width: 90%; 
        padding: 6px; 
        bottom: 5%; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    }
    .work-title { font-size: 0.55rem; }
    .work-artist { font-size: 0.45rem; }
}



/* BLOQUE 10: Hero Section (Core Aesthetics) *******************************************************************/

#hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000; /* Fondo base negro */
    color: white;
    position: relative; 
    overflow: hidden;
    z-index: 10;
}

/* LA CAPA DEL FONDO (Solo para el Index) */
#hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(var(--hero-blur, 0px)); 
    z-index: -1;
    transition: filter 0.2s linear;
}

/* --- REGLA MAESTRA DE HERITAGE --- */
/* En la página Heritage, el Hero es transparente para ver el fondo global del Bloque 19 */
.heritage-hero::before {
    display: none !important; /* Matamos el fondo duplicado */
}
.heritage-hero {
    background: transparent !important;
}

/* CONTENIDO DEL HERO */
.hero-content {
    padding: 0 5%;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    position: relative;
    z-index: 20;
}

/* --- DENTRO DEL BLOQUE 10 --- */

.hero-title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    width: 100%;
}

.hero-logo-img {
    /* Ajustamos el tamaño para que coincida visualmente con el texto */
    /* De 3rem/15vw/10rem bajamos a: */
    height: clamp(2rem, 11vw, 6.5rem); 
    width: auto;
    display: block;
    /* Mantenemos el drop-shadow pero un poco más sutil */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4)); 
    transition: transform 0.3s ease;
}

.hero-logo-fallback {
    font-family: var(--font-logo);
    font-size: clamp(1.8rem, 10vw, 8rem);
    letter-spacing: clamp(4px, 3vw, 20px);
    text-transform: uppercase;
    color: white;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    padding-bottom: 50px;
}

/* --- DENTRO DEL BLOQUE 10 --- */

/* Estilo para cuando el Hero usa Texto en lugar de Imagen (Página Heritage) */
.hero-text-display {
    font-family: var(--font-logo);
    /* Usamos el mismo clamp que el fallback del logo para consistencia total */
    font-size: clamp(1.8rem, 10vw, 6.5rem); 
    letter-spacing: clamp(4px, 3vw, 20px);
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
    line-height: 1;
}

/* Ajuste específico para que el subtítulo no se pegue al título en Heritage */
.heritage-hero .hero-subtitle {
    margin-top: 35px;
}

.hero-subtitle {
    font-size: clamp(0.55rem, 1.8vw, 0.8rem);
    max-width: 600px;
    margin: 25px auto 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
    line-height: 1.6;
}

/* Indicador de Scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%); 
    font-size: 0.6rem;
    letter-spacing: 3px;
    white-space: nowrap;
    animation: nudge 2s infinite ease-in-out;
    opacity: 0.6;
    z-index: 25;
}

@keyframes nudge {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* --- AJUSTES RESPONSIVOS MÓVIL --- */
@media (max-width: 768px) {
    #hero::before {
        background-image: url('assets/img/hero-bg-mobile.webp');
        background-attachment: scroll !important; /* Estable en móvil */
    }
    
    #hero {
        height: -webkit-fill-available; 
        min-height: 100vh;
    }

    .hero-title {
        letter-spacing: 2px !important;
    }
}



/* BLOQUE 11: Fondos de Salas y Colores de Respaldo ***************************************************************************************/
.museum-hall {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-color 1s ease;
}
/* --- DENTRO DEL BLOQUE 13 (Ajuste Móvil) --- */

@media (max-width: 768px) {
    .museum-hall::before {
        /* ESTA ES LA CLAVE: El ancho es 100% de la pantalla, el alto es automático */
        background-size: 100% auto !important; 
        
        /* Tu idea: Si la sala es más alta que la foto, que se repita */
        background-repeat: repeat-y !important; 
        
        /* Empezamos a ver la imagen desde arriba para que no se corte la cabeza del personaje */
        background-position: top center !important; 
        
        /* En móvil, 'scroll' es más estable para evitar saltos */
        background-attachment: scroll !important; 
    }
}
.geometric-hall { 
    background-image: url('assets/img/geometric-hall.webp'); 
    background-color: #e8e8e8; 
}
@media (max-width: 768px) {
    .geometric-hall {
        background-image: url('assets/img/geometric-hall-mobile.webp');
        background-attachment: scroll; /* En móvil es mejor que el fondo no sea fijo para evitar saltos de imagen */
    }
}

.organic-hall { 
    background-color: #d2c5b1; 
    background-image: url('assets/img/organic-hall.webp'); 
    color: #3e3a35;
}
@media (max-width: 768px) {
    .organic-hall {
        background-image: url('assets/img/organic-hall-mobile.webp');
        background-attachment: scroll; /* En móvil es mejor que el fondo no sea fijo para evitar saltos de imagen */
    }
}


.figurative-hall { 
    background-image: url('assets/img/figurative-hall.webp'); 
    background-color: #2a1a1a; 
    color: #e0d5c1;
}
@media (max-width: 768px) {
    .figurative-hall {
        background-image: url('assets/img/figurative-hall-mobile.webp');
        background-attachment: scroll; /* En móvil es mejor que el fondo no sea fijo para evitar saltos de imagen */
    }
}


.abstract-hall { 
    background-image: url('assets/img/abstract-hall.webp'); 
    background-color: #1a1c1e; 
    color: #ffffff;
}
@media (max-width: 768px) {
    .abstract-hall {
        background-image: url('assets/img/abstract-hall-mobile.webp');
        background-attachment: scroll; /* En móvil es mejor que el fondo no sea fijo para evitar saltos de imagen */
    }
}



/* BLOQUE 12: Scrollytelling & Animaciones ***************************************************************************************/
/* 1. Reset de estado para todos los cuadros */
.grid-item {
    opacity: 0 !important; /* Empezamos invisibles */
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    will-change: transform, opacity;
}

/* 2. Definición de los puntos de partida (Solo si NO tienen .is-visible) */
.grid-item.reveal-fade:not(.is-visible)  { transform: translateY(100px); }
.grid-item.reveal-left:not(.is-visible)  { transform: translateX(-150px); }
.grid-item.reveal-right:not(.is-visible) { transform: translateX(150px); }
.grid-item.reveal-zoom:not(.is-visible)  { transform: scale(0.5); }

/* 3. El estado final (Cuando el JS añade la clase) */
.grid-item.is-visible, .hall-header.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1); /* Quitamos el !important de aquí */
}

/* Corrección para que el parallax sea fluido y visible */
.hall-title, .hall-curator {
    display: inline-block;
    /* Quitamos el feno de 1.5s y ponemos uno de 0.1s para suavidad */
    transition: transform 0.1s linear !important; 
    will-change: transform;
}

/* Evitar que el link padre bloquee el movimiento */
.hall-link, .artist-link {
    display: inline-block;
    text-decoration: none;
}

/* 4. Desaparición sutil al subir (Opcional) */
.grid-item.is-hidden {
    opacity: 0 !important;
    transform: translateY(30px) scale(0.95);
}

/* BLOQUE 13: Atmósfera y Parallax de Texto (Final Clean Version) *******************************************************************/

/* 1. Fondo con capacidad de Blur (Scrollytelling) */
.museum-hall {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.museum-hall::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(var(--blur-amount, 0px));
    z-index: -1;
    transition: filter 0.4s ease-out;
}

/* 2. Configuración de Headers (Parallax Ready) */
.hall-header {
    will-change: transform, opacity;
    z-index: 10;
}

.hall-title, .hall-curator {
    position: relative; /* Importante: Ancla para el cristal */
    display: inline-block;
    will-change: transform;
}

/* BLOQUE 13 (Sección 3 y 4): Cristal Clickable */

/* 3. El cristal ahora vive en el enlace para ser 100% clickable */
/* BLOQUE 13: El cristal pegado al enlace */
.hall-link::before, .artist-link::before {
    content: "";
    position: absolute;
    top: -5px; bottom: -5px; /* Un poco de aire */
    z-index: -1;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    pointer-events: auto;
    cursor: pointer;
}

/* Cristal Izquierdo (Sala) */
.hall-link::before {
    left: -10vw; right: -40px;
    background: linear-gradient(to right, rgba(255,255,255,0.02), rgba(255,255,255,0.1));
    border-radius: 0 4px 4px 0;
}

/* BLOQUE 13: Ajuste de Firma Institucional */

.hall-signature {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

/* Solo mantenemos el cristal izquierdo (Título de Sala) */
/* El derecho lo quitamos para que el diseño no se vea simétrico y aburrido */
.hall-curator {
    font-family: var(--font-main);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff; /* Blanco por defecto para salas oscuras */
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* 4. Ajustes Dinámicos de Contraste según la Sala */
.geometric-hall .hall-link::before, .geometric-hall .artist-link::before,
.organic-hall .hall-link::before, .organic-hall .artist-link::before {
    background: rgba(0, 0, 0, 0.08); 
}

.figurative-hall .hall-link::before, .figurative-hall .artist-link::before,
.abstract-hall .hall-link::before, .abstract-hall .artist-link::before {
    background: rgba(255, 255, 255, 0.08);
}


/* BLOQUE 14: Sistema de Modales DEUSI (Evolución) *******************************************************************/

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(15px);
    display: none; justify-content: center; align-items: center;
    z-index: 10000;
}

/* Dimensiones Estrictas */
.modal-container {
    background: #fff;
    width: 80%; height: 90vh;
    position: relative;
    display: flex;
    border: none !important; 
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    overflow: visible; /* <-- AÑADE ESTA: Permite que la X se vea completa */
}

.modal-content { display: flex; width: 100%; height: 100%; }

/* Lado A: Media + Paspartú */
.modal-media { 
    width: 55%; height: 100%; 
    background: #ececec; /* Color base del paspartú */
    display: flex; align-items: center; justify-content: center; 
    padding: 40px; /* El margen del paspartú */
    box-sizing: border-box;
    background-clip: padding-box;
}

.paspartu-frame {
    width: 100%; height: 100%;
    background: #fff;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05); 
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
    border: none !important; /* Aseguramos que no haya bordes accidentales */
    outline: none !important;
}
.paspartu-frame img {
    max-width: 90%; max-height: 90%;
    object-fit: contain;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    will-change: transform, opacity;    
}

.paspartu-frame:hover img {
   /* transform: scale(2.5); /* Nivel de zoom a la prenda imagen*/
}

.paspartu-frame iframe { width: 100%; height: 100%; border: none; }

/* Lado B: Información */
.modal-info { 
    width: 45%; height: 100%; 
    padding: 50px; 
    display: flex; flex-direction: column; 
    background: #fff;
    box-sizing: border-box;
}

/* 1. Aseguramos que el contenedor de scroll ocupe el espacio disponible */
.info-scrollable {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px;
    font-size: 0.9rem; line-height: 1.6;
    color:#444;
}


/* 2. Ajustamos el título ahora que vive dentro del scroll */
#modal-title { 
    font-family: var(--font-logo); 
    font-size: 1.2rem; 
    letter-spacing: 1px; 
    text-transform: uppercase;
    margin-bottom: 20px; /* Espacio con la descripción */
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Línea divisoria interna */
    display: block;
}

/* 3. Eliminamos cualquier margen viejo del info-header que ya no existe */
.info-header { display: none; }

/* Personalización del Scrollbar */
.info-scrollable::-webkit-scrollbar { width: 3px; }
.info-scrollable::-webkit-scrollbar-thumb { background: #000; }

.info-footer { padding-top: 30px; }

/* BOTÓN ACQUIRE PIECE */
.acquire-btn {
    width: 100%;
    padding: 18px;
    background: #000;
    color: #fff;
    border: none;
    font-family: var(--font-logo);
    font-size: 0.7rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease; /* Solo transicionamos color y fondo */
    text-transform: uppercase;
    white-space: nowrap; /* Evita que el texto salte de línea */
}

.acquire-btn:hover { 
    background: #6b6b6b; 
}

/* FLECHAS DE NAVEGACIÓN */
.modal-nav {
    position: absolute; top: 40%; transform: translateY(-50%);
    background: rgba(26, 58, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 65px; height: 65px; /* Un poco más grandes */
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-nav span { 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; 
    line-height: 0; /* Mata el espacio extra del carácter */
    height: 100%;
    width: 100%;
    padding-bottom: 4px; /* Ajuste óptico para flechas unicode que suelen "caer" un poco */
}
/*.modal-nav:hover { background: rgba(26, 58, 42, 0.4) }*/
.nav-prev { left: 10px; }
.nav-next { right: 10px; }

.modal-close {
    position: absolute; 
    top: 5px; right: 5px; 
    background: #fff;
    color: #000;
    border: none;
    width: 45px; height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10005; /* Un nivel muy alto */
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.modal-close:hover { transform: scale(1.1); background: #000; color: #fff; }

/* RESPONSIVE MÓVIL (80% ancho / 90% alto) */
@media (max-width: 768px) {
    .modal-container { 
        flex-direction: column; 
        width: 100%; height: 90vh; 
        margin: auto;
    }
    .modal-content { flex-direction: column; }
    .modal-media { width: 100%; height: 40%; padding: 20px; }
    .modal-info { width: 100%; height: 60%; padding: 30px; }
    
    #modal-title { font-size: 1rem; padding-bottom: 15px; }
    .modal-nav { display: none; } /* En móvil usamos Swipe */
}

/* SELECTORES DE VARIACIÓN DEUSI (Versión Minimalista Compacta) */

.variation-selectors {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.attribute-label {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    color: #1a1a1a; /* Más oscuro */
    font-weight: 600;
}

.selector-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Forzamos a que intenten estar en una línea */
    gap: 4px; /* Espacio mínimo de 4px */
    margin-bottom: 20px;
    overflow-x: auto; /* Si de plano no caben en un móvil muy pequeño, permite scroll lateral */
}
/* Para los colores no queremos que se estiren, solo que quepan */
.selector-group:not(.is-size) .swatch-item {
    flex: 0 1 auto; 
}

/* El Chip Base */
.swatch-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #1a1a1a;
}

/* Cuadro de Textura (Solo para colores) */
.chip-texture {
    width: 32px; /* Más pequeño */
    height: 32px;
    background-size: 1000%;
    background-position: center 85%;
    border-right: 1px solid #e0e0e0;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Texto dentro del botón */
.chip-name {
    padding: 0 5px;
    font-size: 0.8rem;
    letter-spacing: 0.2px; /* Menos espaciado para que sea compacto */
    text-transform: uppercase;
    font-family: var(--font-main);
}

/* Ajuste específico para que las tallas sean pequeñas y uniformes */
.is-size .swatch-item {
    padding: 6px 4px; /* Casi sin margen lateral */
    min-width: 32px;  /* Ancho mínimo pequeño para letras solas */
    justify-content: center;
    flex: 1; /* Esto hace que todos tengan el mismo ancho y se repartan el espacio */
    max-width: 45px; /* Evitamos que se estiren de más */
}

.is-size .chip-name {
    padding: 0; /* Quitamos el padding del texto interno */
    font-size: 1rem; /* Un punto más pequeña */
    letter-spacing: 0; /* Sin espacio entre letras para ganar ancho */
    font-weight: 500;
}
.is-size .chip-texture { display: none; }

/* ESTADO SELECCIONADO (Negro Sólido) */
.swatch-item.selected {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.swatch-item.selected .chip-texture {
    border-right-color: rgba(255,255,255,0.2);
}

.swatch-item:hover:not(.selected) {
    border-color: #000;
}

/* MÓDULO DE ACCIÓN 80/20 */
.action-module {
    display: flex;
    width: 100%;
    gap: 2px; /* Pequeña línea de división */
    background: #000;
}

/* Botón Acquire (80%) */
.acquire-btn-split {
    flex: 5;
    padding: 15px;
    background: #2a5e44;
    color: #fff;
    font-weight: 600;
    border: none;
    font-family: var(--font-logo);
    font-size: 0.65rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
}

.acquire-btn-split:disabled {
    background-color: #1a3a2a;
    opacity: 1;
    cursor: not-allowed;
}
.acquire-btn-split:hover {
    opacity: 0.5;    
}

/* Botón Cart (20%) - Verde Elegante */
.cart-trigger-btn {
    flex: 3;
    padding: 15px;
    background: #000; /* Verde Bosque / Galería Elegante */
    color: #fff;
    border: none;
    font-family: var(--font-main);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.4s ease;
}

.cart-trigger-btn:hover {
    background: #254d38; /* Un poco más claro al pasar el mouse */
}

.silhouette-label {
    /* CAMBIO: de inline-block a block con width fit-content */
    display: block; 
    width: fit-content; 
    
    padding: 4px 12px;
    background: #f0f0f0;
    color: #000;
    font-family: var(--font-main);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-top: 30px; /* Un poco más de aire arriba */
    margin-bottom: 25px;
    border-left: 3px solid #000;
    text-transform: uppercase;
}
/* PASPARTÚ DINÁMICO POR SALA */
.modal-media.geometric-hall  { background: var(--frame-geometric); }
.modal-media.organic-hall    { background: var(--frame-organic); }
.modal-media.figurative-hall { background: var(--frame-figurative); }
.modal-media.abstract-hall   { background: var(--frame-abstract); }
.modal-media.heritage-hall   { background: var(--frame-heritage); }

/* Para que la transición de color sea elegante al navegar con flechas */
.modal-media {
    transition: background 0.8s ease;
}

/* ETIQUETA DE PRECIO EN MODAL */
.modal-price-tag {
    display: block;
    font-family: var(--font-main);
    font-size: 0.85rem; /* Un poco más pequeño que el título */
    font-weight: 800;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin-top: 10px;
    opacity: 0.6; /* Sutil, como una nota técnica */
}

/* Limpieza de etiquetas nativas de WooCommerce */
.modal-price-tag ins { text-decoration: none; }
.modal-price-tag del { font-size: 0.7rem; opacity: 0.4; margin-right: 8px; }


/* --- NAVEGACIÓN POR PREVISUALIZACIÓN (Miniatura Inclinada) --- */

/* --- NAVEGACIÓN POR PREVISUALIZACIÓN (Versión Centro-Derecha) --- */

.next-view-container {
    position: absolute;
    top: 50%; /* Centrado vertical */
    right: 30px; /* Pegado a la derecha del paspartú */
    transform: translateY(-50%); /* Ajuste fino de centrado */
    width: 90px;
    height: 90px;
    z-index: 150;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.next-view-thumb {
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 3px;
    border: 1px solid #ddd;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    object-fit: contain;
    /* Inclinación de 5 grados */
    transform: rotate(5deg); 
    transition: all 0.3s ease;
}

.next-view-container:hover {
    transform: translateY(-50%) scale(1.1);
}

.next-view-container:hover .next-view-thumb {
    transform: rotate(0deg); /* Se endereza al invitar al click */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Ajuste Móvil: Un poco más pequeña pero en la misma posición */
@media (max-width: 768px) {
    .next-view-container {
        right: 15px;
        width: 70px;
        height: 70px;
    }
}

/* BLOQUE 15: SISTEMA UNIFICADO DE TEASERS (Heritage & Manifesto) ***************************************************************/

#heritage-teaser, #manifesto-teaser {
    height: 80vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

.teaser-link {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    /* Zoom 300% para ver el detalle macro */
    background-size: 300%; 
    background-position: center;
    /* Quitamos el parallax (fixed) para que se mueva con el scroll */
    background-attachment: scroll; 
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.teaser-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transition: background 0.6s ease;
}

.teaser-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 10%;
}

.teaser-title {
    font-family: var(--font-logo);
    font-size: clamp(2.5rem, 8vw, 6rem);
    letter-spacing: 5px;
    margin-bottom: 20px;
    margin-top: 20px;
    transition: letter-spacing 0.8s ease;
}

.teaser-subtitle {
    font-size: clamp(0.6rem, 1.8vw, 0.8rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 800;
}

.teaser-btn {
    display: inline-block;
    padding: 15px 50px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 4px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* --- TEMA HERITAGE (Oscuro) --- */
/*.heritage-theme { background-image: url('assets/img/heritage-hall.webp'); }*/
.heritage-theme .teaser-overlay { background: rgba(0,0,0,0.6); }
.heritage-theme .teaser-content { color: #fff; }
.heritage-theme .teaser-btn { border: 1px solid rgba(255,255,255,0.3); color: #fff; }

.heritage-theme:hover .teaser-overlay { background: rgba(0,0,0,0.4); }
.heritage-theme:hover .teaser-btn { background: #fff; color: #000; }

/* --- TEMA MANIFESTO (Blancusco) --- */
/*.manifesto-theme { background-image: url('assets/img/manifesto-bg.webp'); }*/
.manifesto-theme .teaser-overlay { background: rgba(255,255,255,0.7); } /* Fondo claro */
.manifesto-theme .teaser-content { color: #000; } /* Texto negro */
.manifesto-theme .teaser-btn { border: 1px solid rgba(0,0,0,0.2); color: #000; }

.manifesto-theme:hover .teaser-overlay { background: rgba(255,255,255,0.5); }
.manifesto-theme:hover .teaser-btn { background: #000; color: #fff; }

/* Efecto común al pasar el mouse */
.teaser-link:hover .teaser-title { letter-spacing: 10px; }

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    #heritage-teaser, #manifesto-teaser { height: 60vh; }
    .teaser-link { background-size: 400%; } /* En móvil el zoom debe ser mayor para el detalle */
    /*
    .manifesto-theme { background-image: url('assets/img/manifesto-bg-mobile.webp'); }
    .heritage-theme { background-image: url('assets/img/heritage-hall-mobile.webp'); }
    */
}


/* BLOQUE 16: Footer Sobrio y Minimalista ***************************************************************************/

#main-footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 100px 5% 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-main);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* La marca ocupa más espacio */
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}


/* BLOQUE 16: Ajuste de Logo en Footer (Resiliente a WooCommerce) */

.footer-logo-wrapper {
    display: inline-block;
    text-decoration: none;
    position: relative;
    /* Definimos una altura física clara */
    height: 1.5rem; 
    /* Añadimos un ancho máximo de seguridad para que no se desborde nunca */
    max-width: 250px; 
    margin-bottom: 25px; /* Un poco más de espacio hacia el lema */
}

.footer-logo-img {
    /* Forzamos que la altura sea SIEMPRE la del contenedor wrapper */
    height: 100% !important; 
    width: auto !important; /* Que el ancho se calcule solo según la altura */
    display: block;
    opacity: 0.6; 
    transition: opacity 0.4s ease;
}

/* --- EL "GOLPE DE MANDO" PARA WOOCOMMERCE --- */
/* Forzamos estas medidas incluso si estamos en el Checkout o Carrito */
.woocommerce-checkout .footer-logo-img,
.woocommerce-page .footer-logo-img {
    max-width: 180px !important; /* Límite estricto en páginas de pago */
    height: 1.5rem !important;
}

.footer-logo-img:hover {
    opacity: 1;
}

/* Fallback (Texto) */
.footer-logo-fallback {
    font-family: var(--font-logo);
    font-size: 1.2rem;
    letter-spacing: 8px;
    color: #fff;
    text-transform: uppercase;
    position: absolute;
    top: 0; left: 0;
    opacity: 0; /* Oculto mientras la imagen funcione */
    pointer-events: none;
    white-space: nowrap;
}

/* Ajuste para móvil en el footer */
@media (max-width: 768px) {
    .footer-logo-wrapper { 
        height: 1.2rem; 
        margin-bottom: 20px; 
    }
    .footer-logo-img {
        height: 1.2rem !important;
    }
}

.footer-motto {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.4;
    max-width: 250px;
    line-height: 1.8;
}

/* Listas de Navegación */
.footer-label {
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: #fff;
    font-weight: 800;
    display: block;
    margin-bottom: 25px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0; margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: #fff;
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 10px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.03);
    text-align: center;
}

.copyright {
    font-size: 0.5rem;
    letter-spacing: 3px;
    opacity: 0.2;
    text-transform: uppercase;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-motto { margin: 0 auto; }
    .footer-links a:hover { transform: none; }
}


/* BLOQUE 17: Notificaciones de Reserva ***************************************************************************/

.toast-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 15px 40px; /* Aumentamos un poco el padding lateral para más elegancia */
    z-index: 20000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: top 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid #eee;
    
    /* ESTA ES LA CLAVE: El ancho se ajusta al contenido, no al dispositivo */
    width: max-content; 
    max-width: 90vw; /* Evita que en pantallas micro se salga del borde */
}

.toast-notification.is-visible {
    top: 40px; /* Baja a su posición */
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-mark {
    font-size: 0.6rem;
    color: #1a3a2a; /* El mismo verde elegante del botón Cart */
}

.toast-msg {
    font-family: var(--font-main);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    
    /* EVITA EL SALTO DE LÍNEA */
    white-space: nowrap; 
}



/* BLOQUE 18: The iith (Side-Cart) ***************************************************************************/

.monolith-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* Fondo oscurecido sutil */
    z-index: 15000;
    display: none; /* Oculto por defecto */
    justify-content: flex-end; /* Alinea el contenedor a la derecha */
}

.monolith-container {
    background: #fff;
    width: 35%; height: 100%; /* Escritorio */
    position: relative;
    box-shadow: -20px 0 50px rgba(0,0,0,0.2);
    display: flex; flex-direction: column;
    animation: slideMonolith 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Encabezado y Cuerpo */
.monolith-header { padding: 40px; border-bottom: 1px solid #eee; }
.monolith-title { font-family: var(--font-logo); font-size: 1rem; letter-spacing: 1px; margin: 0; }

.monolith-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px;
}

/* Pie de Carrito */
.monolith-footer { 
    padding: 40px; 
    background: #fff; /* Lo ponemos blanco igual al resto */
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Vital para que el padding no "empuje" al botón hacia afuera */
}

.monolith-total-row {
    display: flex; justify-content: space-between;
    margin-bottom: 30px;
    font-family: var(--font-main);
    font-weight: 800; font-size: 0.7rem; letter-spacing: 2px;
}
.monolith-checkout-btn {
    display: block; 
    width: 100%; 
    padding: 20px 0; /* Solo padding vertical */
    background: #000; 
    color: #fff; 
    text-align: center;
    font-family: var(--font-logo); 
    font-size: 0.7rem; 
    letter-spacing: 4px; /* Un poco más de aire para el lujo */
    text-decoration: none; 
    transition: background 0.3s;
    box-sizing: border-box; /* Asegura que el botón no crezca más de su 100% */
    border: none;
    margin: 0 auto; /* Centrado absoluto */
}

.monolith-checkout-btn:hover { background: #333; }

/* Botón Cerrar Monolith */
.monolith-close-btn {
    position: absolute; top: 30px; left: -50px; /* Sale por la izquierda del panel */
    background: #000; color: #fff; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer;
}

/* Animación y Responsive */
@keyframes slideMonolith {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@media (max-width: 768px) {
    .monolith-container { width: 80%; height: 90vh; margin-top: 1vh; border-radius: 20px 0 0 20px; }
    .monolith-close-btn { left: 20px; top: 20px; background: #eee; color: #000; }
    .monolith-header { padding: 60px 30px 20px; }
}

/* DISEÑO TIPO FACTURA / ARCHIVO */
.monolith-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px; /* Añadimos un poco de padding interno */
    border-bottom: 1px solid #f2f2f2;
    position: relative;
    cursor: pointer; /* Toda la fila ahora tiene manito */
    transition: background 0.3s ease;
    margin: 0 -20px; /* Truco para que el hover llegue hasta los bordes */
}

.monolith-item:hover {
    background: #fafafa; /* Un gris casi blanco, muy sutil */
}

/* La miniatura ya no necesita su propio hover, se mueve con la fila */
.monolith-thumb {
    width: 60px; height: 60px;
    background: #f9f9f9;
    object-fit: contain;
}

/* Aseguramos que la X roja esté por encima y sea clara */
.monolith-remove {
    position: relative;
    z-index: 10; /* Importante para que el click de borrar no se confunda */
    color: #a32a2a;
    font-size: 1.5rem;
    padding: 10px;
}

.monolith-details {
    flex-grow: 1;
}

.monolith-item-name {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Fuente Monoespaciada para Especificaciones Técnicas */
.monolith-item-specs {
    display: block;
    font-family: "Courier New", Courier, monospace; /* Estilo técnico */
    font-size: 0.6rem;
    color: #888;
    line-height: 1.4;
}

.monolith-item-price {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
}

/* La X Roja de Eliminación */
.monolith-remove {
    color: #a32a2a; /* Rojo Óxido Profundo */
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}
.monolith-remove:hover { transform: scale(1.2); }

.monolith-disclaimer {
    display: block; /* Obliga a bajar a la siguiente línea */
    font-size: 0.5rem;
    opacity: 0.7;
    letter-spacing: 0.5px; /* Un poco más de aire para el lujo */
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 5px;
}


/* BLOQUE 19: The Heritage - Arquitectura del Santuario ******************************************************/

/* 1. EL LIENZO GLOBAL */
.heritage-page-container {
    position: relative;
    background-color: transparent; /* Fondo de seguridad negro */
    min-height: 100vh;
    overflow-x: hidden; 
}

/* 2. EL FONDO FIJO (REPARADO PARA ESCRITORIO) */
.heritage-page-container::before {
    content: "";
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    
    /* IMAGEN PARA ESCRITORIO */
    background-image: url('assets/img/heritage-hall.webp'); 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    
    z-index: -2; /* Detrás de todo */
    filter: blur(var(--heritage-blur, 0px));
    transition: filter 0.2s ease;
    
    will-change: transform;
    transform: translateZ(0); 
}

/* 3. CAPA DE CONTRASTE (Opcional: puedes subir el 0.4 si quieres que sea más oscuro) */
.heritage-page-container::after {
    content: "";
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); 
    z-index: -1;
}

/* --- AJUSTE PARA MÓVIL --- */
@media (max-width: 768px) {
    .heritage-page-container::before {
        /* IMAGEN PARA MÓVIL */
        background-image: url('assets/img/heritage-hall-mobile.webp') !important;
        height: 110vh; /* Un poco de sobra para el salto de la barra de direcciones */
        top: -5vh;
    }
}


/* EL CONTENEDOR MAESTRO */
.heritage-grid-archive {
    display: block; /* Ya no es grid, ahora los grupos se apilan */
    padding: 100px 5% 150px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* EL GRUPO DE 5 (Este sí es el Grid) */
.heritage-row-group {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 80px); /* 6 filas fijas para crear el diamante */
    gap: 25px;
    margin-bottom: 50px; /* Espacio entre un diamante y el siguiente */
}

/* COORDENADAS EXACTAS (Igual al Index) */
.h-pos-1 { grid-column: 1 / 3;  grid-row: 3 / 5; } /* Centrada */
.h-pos-2 { grid-column: 3 / 6;  grid-row: 2 / 6; } /* La más alta */

.h-pos-3 { grid-column: 6 / 9;  grid-row: 1 / 4; } /* Círculo Arriba */
.h-pos-3 .artwork-container, .h-pos-3 .artwork-inner { aspect-ratio: 1/1; border-radius: 50%; }

.h-pos-4 { grid-column: 6 / 9;  grid-row: 4 / 7; } /* Cuadro Abajo */

.h-pos-5 { grid-column: 9 / 13; grid-row: 3 / 5; } /* Centrada */

/* --- AJUSTE MÓVIL HERITAGE (Diamante Vertical) --- */
@media (max-width: 768px) {
    
    .heritage-grid-archive {
        padding: 50px 15px; /* Menos margen lateral en móvil */
    }

    /* Convertimos el grupo en un lienzo de 12 columnas */
    .heritage-row-group {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: 50px; /* Filas cortas para dar forma de diamante */
        gap: 12px;
        margin-bottom: 80px; /* Espacio entre cada diamante vertical */
    }

    /* Reseteamos anchos para que las coordenadas de Grid manden */
    .heritage-item { width: auto !important; height: auto !important; }

    /* COORDENADAS DEL DIAMANTE VERTICAL (Reset de filas para cada bloque) */
    
    /* h-pos-1: El pico superior */
    .h-pos-1 { grid-column: 4 / 10; grid-row: 1 / 4; } 

    /* h-pos-2: Centro Izquierda */
    .h-pos-2 { grid-column: 1 / 7; grid-row: 4 / 7; } 

    /* h-pos-3: Centro Derecha (Círculo) */
    .h-pos-3 { grid-column: 7 / 13; grid-row: 4 / 7; } 
    .h-pos-3 .artwork-container, .h-pos-3 .artwork-inner { aspect-ratio: 1/1 !important; border-radius: 50% !important; }

    /* h-pos-4: El bloque ancho del centro */
    .h-pos-4 { grid-column: 2 / 12; grid-row: 7 / 10; } 

    /* h-pos-5: El pico inferior */
    .h-pos-5 { grid-column: 4 / 10; grid-row: 10 / 13; }

    /* Forzamos que las imágenes no se deformen */
    .heritage-item .artwork-container { aspect-ratio: unset !important; }
}

/* BLOQUE 20: Páginas Estándar DEUSI *******************************************************************************/

.deusi-standard-page {
    padding: 150px 10% 100px;
    min-height: 80vh;
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.page-title {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.page-content {
    line-height: 1.8;
    font-size: 0.9rem;
    color: #444;
}

.page-content h2, .page-content h3 {
    font-family: var(--font-logo);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-top: 40px;
    color: #000;
}



/* BLOQUE 21: Checkout Blocks Aesthetics (DEUSI Style) ***************************************************************/

#deusi-checkout-page {
    padding: 150px 5% 100px;
    background-color: #f9f9f9; /* Un gris muy claro para diferenciarlo de las salas */
    min-height: 100vh;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-header-title {
    text-align: center;
    margin-bottom: 60px;
}

.checkout-header-title .entry-title {
    font-family: var(--font-logo);
    font-size: 2rem;
    letter-spacing: 10px;
    margin-bottom: 15px;
}

.checkout-header-title .entry-subtitle {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* --- ESTILOS DE LOS BLOQUES DE WOOCOMMERCE (.wc-block) --- */

/* 1. Contenedores Principales */
.wc-block-checkout__main, 
.wc-block-checkout__sidebar {
    background: #fff !important;
    padding: 40px !important;
    border: 1px solid #eee !important; /* Contorno elegante */
    box-shadow: 10px 10px 30px rgba(0,0,0,0.02);
}

/* 2. Tipografía de Títulos de Sección */
.wc-block-checkout h2, 
.wc-block-checkout h3 {
    font-family: var(--font-main) !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid #000;
    padding-bottom: 15px;
    margin-bottom: 30px !important;
}

/* 3. Inputs y Casillas (Más grandes y elegantes) */
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input {
    border-radius: 0 !important; /* Bordes afilados */
    border: 1px solid #e0e0e0 !important;
    padding: 15px !important;
    font-family: var(--font-main) !important;
    font-size: 1rem !important; /* Fuente no pequeña */
}

.wc-block-components-text-input input:focus {
    border-color: #000 !important;
    outline: none;
}

/* 4. El Botón Final (Convertirlo en un Acquire Piece) */
.wc-block-checkout__add-to-cart,
.wc-block-components-checkout-place-order-button {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 25px !important;
    font-family: var(--font-logo) !important;
    font-size: 0.8rem !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    transition: background 0.4s ease !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background-color: #F6C757 !important;
    color: #000 !important;
}

/* 4A. El Botón volver al carrito */
.wc-block-components-checkout-return-to-cart-button {
    display: none !important;
}


/* 5. Sidebar (Resumen de pedido) */
.wc-block-checkout__sidebar {
    background-color: #fafafa !important;
}

.wc-block-components-totals-item {
    font-family: var(--font-main) !important;
    font-size: 0.8rem !important;
}

/* 6. Ajuste de las 2 columnas */
@media (min-width: 768px) {
    .wc-block-checkout {
        display: flex !important;
        gap: 40px !important;
    }
    .wc-block-checkout__main { flex: 7; }
    .wc-block-checkout__sidebar { flex: 4; }
}



/* BLOQUE 22: Order Received / Thank You Page (DEUSI Style) *********************************************************/

/* 1. Contenedor Maestro del Pedido */
.woocommerce-order {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 60px;
    background: #ffffff;
    border: 1px solid #eee;
    text-align: center; /* Centramos todo el contenido */
}

/* 2. El Mensaje de Éxito (Con fondo de color) */
.woocommerce-notice--success {
    font-family: var(--font-logo);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background-color: #f2f2f2; /* El fondo de color que pediste */
    padding: 30px !important;
    margin-bottom: 50px !important;
    border-left: 5px solid #000; /* Detalle técnico de marca */
    color: #000;
}

/* 3. Lista de Detalles Rápidos (Número, Fecha, Total) */
.woocommerce-order-overview {
    display: flex;
    justify-content: center; /* Centramos la lista */
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.woocommerce-order-overview__item {
    text-align: left;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
}

.woocommerce-order-overview__item strong {
    display: block;
    font-size: 0.8rem;
    color: #000;
    margin-top: 5px;
    font-family: var(--font-main);
    font-weight: 800;
}

/* 4. Títulos de secciones inferiores */
.woocommerce-order-details__title,
.woocommerce-column__title {
    font-family: var(--font-logo) !important;
    font-size: 1rem !important;
    letter-spacing: 5px;
    margin: 60px 0 30px !important;
    text-transform: uppercase;
}

/* 5. Tabla de productos final */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    text-align: left;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 20px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.8rem;
}


/* BLOQUE 23: Teaser Back to Halls (Aesthetic Unity) ***************************************************************/

#exhibition-teaser {
    height: 80vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exhibition-link {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    text-decoration: none;
}

/* LA IMAGEN CON BLUR FIJO (20%) */
.exhibition-link::before {
    content: "";
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%; 
    background-image: url('assets/img/halls-collage.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(0.1px); /* Restaurado a 20px para el efecto 20% que pediste */
    opacity: 0.6;
    z-index: 1;
    
    /* SOLUCIÓN AL SALTO: Declaramos el estado inicial de transformación */
    transform: scale(1); 
    transform-origin: center;
    will-change: transform; /* Avisa al navegador que use la tarjeta de video */
    transition: transform 2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1s ease;
}

/* Efecto al pasar el mouse - Zoom Suave */
.exhibition-link:hover::before {
    /* Si quieres que se agrande suavemente, usa 1.05 o 1.1 */
    transform: scale(1.05); 
    filter: blur(10px); /* Se aclara un poco al acercarse, toque de lujo */
}

.exhibition-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 0 5%;
}

.exhibition-title {
    font-family: var(--font-logo); /* Syncopate / Fuente DEUSI */
    font-size: clamp(2.2rem, 10vw, 6rem); /* Responsive total */
    letter-spacing: clamp(10px, 3vw, 25px);
    line-height: 1.1;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.exhibition-subtitle {
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 40px;
}

.exhibition-btn {
    display: inline-block;
    padding: 18px 50px;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: var(--font-main);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 4px;
    transition: all 0.4s ease;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    #exhibition-teaser { height: 70vh; }
    
    .exhibition-link::before {
        background-image: url('assets/img/halls-collage-mobile.webp') !important;
        background-attachment: scroll !important;
    }
    
    .exhibition-title { letter-spacing: 8px; }
}


/* BLOQUE 24: TRUST BAR (Logos debajo del título) ***************************************************************/

.payment-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 30px 0 60px;
    opacity: 0.5;
    /*filter: grayscale(1);*/
}

.payment-trust-bar img {
    height: 18px; /* Un pelín más grandes para legibilidad */
    width: auto;
}

.trust-text {
    font-size: 0.5rem;
    letter-spacing: 2px;
    font-weight: 800;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}

/* --- AJUSTE DEL BOTÓN 'CONTINUE EXPLORING' - FOOTER DEL CHECKOUT (Link Volver)--- */
.checkout-footer-nav {
    margin-top: 60px; /* Separación generosa de los bloques de pago */
    padding-top: 30px;
    border-top: 1px solid #eee; /* Línea divisoria sutil */
    text-align: center; /* Centrado para que rime con el título */
}

.continue-exploring {
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: opacity 0.3s;
}

.continue-exploring:hover { opacity: 0.5; }

/* --- OCULTAR EL LINK ORIGINAL DE WOOCOMMERCE --- */
/* Esta clase es la que inyecta el bloque de checkout por defecto */
.wc-block-checkout__back-to-cart-link {
    display: none !important;
}

/* Ajuste extra para los botones de PayPal (hacerlos más limpios) */
.wc-block-components-express-checkout {
    border: 1px solid #eee !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
}
.wc-block-components-checkout-place-order-button {
    background-color: #000 !important;
    font-family: var(--font-logo) !important;
    height: 60px !important;
    letter-spacing: 5px !important;
}


/* BLOQUE 25: Manifesto Sanctuary & Anatomy ************************************************************************/

body.manifesto-page-body { background-color: #000 !important; }

.manifesto-page-container {
    position: relative;
    background-color: transparent;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* El Fondo Fijo (Mantenemos tu lógica de 110vh para el Atelier) */
.manifesto-page-container::before {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 110vh;
    background-image: url('assets/img/manifesto-bg.webp');
    background-size: cover; background-position: center;
    z-index: -2;
    filter: blur(var(--manifesto-blur, 0px));
    transition: filter 0.2s ease;
}

.manifesto-page-container::after {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); 
    z-index: -1;
}

.manifesto-inner { max-width: 900px; margin: 0 auto; }

/* SECCIÓN 1: TEXTO */
.manifesto-hero { padding: 180px 10% 100px; }

.manifesto-label {
    font-family: var(--font-main); font-size: 0.6rem; letter-spacing: 5px;
    font-weight: 800; opacity: 0.5; display: block; margin-bottom: 25px;
}

.manifesto-title {
    font-family: var(--font-logo); font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: clamp(5px, 2vw, 15px); line-height: 1.1; margin-bottom: 80px;
    text-transform: uppercase;
}

.manifesto-text-block p {
    font-family: var(--font-main); font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 2; margin-bottom: 45px; opacity: 0.8; font-weight: 200;
}

/* SECCIÓN 2: ANATOMÍA (Diagrama) */
.manifesto-anatomy {
    padding: 100px 10%;
    background: rgba(255,255,255,0.03); /* Un sutil cambio de fondo para la zona técnica */
    backdrop-filter: blur(5px);
}

.anatomy-title {
    font-family: var(--font-logo); font-size: 1.5rem; letter-spacing: 8px;
    margin-bottom: 60px; text-transform: uppercase;
}

.anatomy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.anatomy-zone {
    border-top: 1px solid rgba(255,255,255,0.2); /* Línea técnica fina */
    padding-top: 25px;
}

.zone-tag {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.55rem; color: #aaa; letter-spacing: 2px;
}

.zone-title {
    font-family: var(--font-main); font-size: 0.8rem; font-weight: 800;
    letter-spacing: 2px; margin: 15px 0; text-transform: uppercase;
}

.zone-desc {
    font-size: 1rem; line-height: 1.6; opacity: 1; font-weight: 200;
}

/* SECCIÓN 3: CIERRE */
.manifesto-closure { padding: 100px 10% 150px; }
.manifesto-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; }
.manifesto-signature { font-family: var(--font-logo); font-size: 0.75rem; letter-spacing: 4px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .anatomy-grid { grid-template-columns: 1fr; gap: 60px; }
    .manifesto-hero { padding-top: 140px; }
}

/* AJUSTES ADICIONALES EN BLOQUE 25 */

.anatomy-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff; /* Fondo blanco tipo paspartú */
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.1);
}

.anatomy-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* O 'contain' si prefieres ver la prenda completa en el cuadrito */
    filter: brightness(0.95);
    transition: transform 0.8s ease;
}

.anatomy-zone:hover .anatomy-img-wrapper img {
    transform: scale(1.1); /* Sutil zoom al pasar el mouse por la zona */
}

/* Ajuste de opacidad para los textos de la zona */
.anatomy-zone {
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.anatomy-zone:hover {
    opacity: 1;
}


/* BLOQUE 26: LINK AL MANIFIESTO DENTRO DEL MODAL ************************************************************************/
.modal-manifesto-call {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.manifesto-mini-link {
    font-family: var(--font-main);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.manifesto-mini-link:hover {
    opacity: 0.5;
}

.manifesto-mini-link span:last-child {
    font-size: 1rem; /* La flecha un poco más grande */
}


/* BLOQUE 27: Modal printful description - Technical Sheet Styling (Post +++) *******************************************************************/

/* Separador Visual */
.tech-sheet-separator {
    margin: 60px 0 30px;
    border-top: 1px solid #eee;
}

/* Título de la Ficha */
.tech-sheet-title {
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Contenido Técnico (El texto después de +++) */
.tech-sheet-content {
    font-family: var(--font-main);
    font-size: 0.75rem; /* Un poco más pequeña que la nota */
    line-height: 1.6;
    color: #888; /* Color gris para no competir con el arte */
    font-weight: 400;
}

/* Ajuste para las listas y párrafos dentro de la ficha */
.tech-sheet-content p, 
.tech-sheet-content ul {
    margin-bottom: 15px;
}

/* La parte legal de Europa (hacerla aún más discreta pero legible) */
.tech-sheet-content:last-child {
    font-size: 0.65rem;
    opacity: 0.8;
}