        /* ==========================================================================
           1. VARIABLES Y CONFIGURACIÓN GLOBAL
           Define la paleta de colores, animaciones base y resets de estilos.
           ========================================================================== */

        :root {
            --color-primary: #8B5A2B;
            --color-secondary: #D2B48C;
            --color-accent: #A52A2A;
            --color-light: #F5F5DC;
            --color-dark: #3E2723;
            --color-text: #333;
            --transition: all 0.3s ease;
        }
        
        @keyframes buttonGlow {
            0%, 100% {
                box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
            }
            50% {
                box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 0 20px rgba(255, 243, 229, 0.5);
            }
        }
        
        /* ==========================================================================
           2. ESTILOS BASE Y NORMALIZACIÓN
           Estilos fundamentales para elementos HTML y tipografía general.
           ========================================================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--color-text);
            background-color: var(--color-light);
            overflow-x: hidden;
        }
        
        a {
            text-decoration: none;
            color: inherit;
        }
        
        .poema {
            white-space: pre-wrap;
            line-height: 1.8;
            color: var(--color-text);
        }

        ul {
            list-style: none;
        }
        
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        /* ==========================================================================
           3. COMPONENTES REUTILIZABLES
           Contenedores, botones generales y clases de utilidad.
           ========================================================================== */
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        .btn,
        .tienda-action-btn,
        .btn-pago,
        .btn-whatsapp {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            min-width: 220px;
            padding: 13px 24px;
            border: 1px solid rgba(139, 90, 43, 0.24);
            border-radius: 999px;
            background: linear-gradient(180deg, #fffdf9 0%, #f4e8da 100%);
            color: var(--color-dark);
            cursor: pointer;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-align: center;
            text-decoration: none;
            box-shadow: 0 10px 22px rgba(62, 39, 35, 0.08);
            transition: var(--transition);
        }
        
        .btn:hover,
        .tienda-action-btn:hover,
        .btn-pago:hover,
        .btn-whatsapp:hover {
            transform: translateY(-3px);
            background: linear-gradient(180deg, #fff8f1 0%, #ead4bd 100%);
            color: var(--color-accent);
            box-shadow: 0 14px 28px rgba(62, 39, 35, 0.12);
        }

        .home-page .btn {
            background: linear-gradient(180deg, #4d332d 0%, var(--color-dark) 100%);
            color: white;
            border-color: rgba(62, 39, 35, 0.5);
            box-shadow: 0 12px 24px rgba(62, 39, 35, 0.2);
        }

        .home-page .btn:hover {
            background: linear-gradient(180deg, #5a3b34 0%, #2f1d19 100%);
            color: white;
        }
        
        /* ==========================================================================
           4. TÍTULOS DE SECCIÓN Y TIPOGRAFÍA ESPECIAL
           Diseño de los encabezados principales y alineaciones.
           ========================================================================== */
        .section-title {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: var(--color-dark);
            margin-bottom: 15px;
        }
        
        .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 3px;
            background-color: var(--color-accent);
            margin: 0 auto;
        }
        
        .justificado {
            text-align: justify;
        }

        /* ==========================================================================
           5. HEADER Y NAVEGACIÓN
           Barra de navegación fija, logo (incluyendo firma) y links.
           ========================================================================== */

        header {
            background-color: rgba(62, 39, 35, 0.9);
            color: white;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--color-secondary);
        }
        
        .logo span {
            color: var(--color-accent);
        }

        @import url('https://fonts.googleapis.com/css2?family=La+Belle+Aurore&display=swap');

        .logo-subtitle {
            display: inline-block;
            font-family: 'La Belle Aurore', cursive;
            font-size: 1.2rem; /* Estas fuentes suelen ser muy finas, necesitan más tamaño */
            margin-top: 0.1rem;
            text-decoration: none; /* Sugiero quitar el subrayado para que parezca firma real */
            color: #444;
        }

        .nav-links {
            display: flex;
        }
        
        .nav-links li {
            margin-left: 30px;
        }
        
        .nav-links a {
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--color-secondary);
            transition: var(--transition);
        }
        
        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }
        
        .nav-links a:hover,
        .nav-links a.active {
            color: var(--color-secondary);
        }
        
        .cart-icon {
            position: relative;
            font-size: 1.3rem;
        }
        
        .cart-count {
            position: absolute;
            top: -10px;
            right: -10px;
            background-color: var(--color-accent);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
        }
        
        /* ==========================================================================
           6. SECCIÓN HERO (PORTADA)
           Imagen de fondo a pantalla completa y títulos de bienvenida.
           ========================================================================== */

        .hero {
            height: 100vh;
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80') no-repeat center center/cover;
            color: white;
            display: flex;
            align-items: center;
    text-align: center;
            padding-top: 80px;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .hero h1 {
            text-align: center;
            font-size: 3.5rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        }

.hero p {
    margin-bottom: 100px; /* Aumentamos el espacio para que el botón respire mejor */
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
}

.hero .btn {
    display: block !important; /* Forzamos comportamiento de bloque */
    width: fit-content !important; /* El ancho se ajusta al texto */
    margin: 0 auto !important; /* Centrado horizontal absoluto */
    padding: 18px 52px; /* Un poco más de aire dentro del botón */
}

        
        /* ==========================================================================
           7. SECCIÓN SOBRE MÍ / PERSONAL
           Layout para biografías y secciones de texto personal.
           ========================================================================== */

        .about {
            padding: 100px 0;
            background-color: white;
        }
        
        .about-content {
            display: flex;
            align-items: center;
            gap: 50px;
        }
        
        .about-text {
            flex: 1;
            padding-left: 0%;
            padding-right: 0%;
            text-align: center;
        }
        
        .about-text h2 {
            font-size: 2.5rem;
            color: var(--color-dark);
            margin-bottom: 20px;
        }

        .personal {
            margin-left: auto;
            margin-right: auto;
        }

        .titulo {
            padding-top: 80px;
        }
        
        .titulo h1 {
            margin-bottom: 20px;
        }
        .titulo h2 {
            margin-bottom: 15px;
        }
        .titulo h3 {
            margin-bottom: 15px;
        }
        .titulo p {
            margin-bottom: 30px;
        }
        /* ==========================================================================
           8. GALERÍA DE OBRAS
           Filtros, grid de imágenes, overlays de información y videos de YouTube.
           ========================================================================== */

        .gallery {
            padding: 100px 0;
            background-color: #f9f5f0;
        }
        
        .gallery-filters {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .filter-btn {
            background: none;
            border: 2px solid var(--color-primary);
            padding: 8px 20px;
            cursor: pointer;
            font-weight: 500;
            transition: var(--transition);
            border-radius: 30px;
            color: var(--color-primary);
        }
        
        .filter-btn.active, .filter-btn:hover {
            background-color: var(--color-primary);
            color: white;
        }
        
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 25px;
            align-items: stretch;
        }
        
        .gallery-item {
            position: relative;
            aspect-ratio: 4 / 3;
            height: 100%;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
        }
        
        .gallery-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .gallery-video,
        .youtube-gallery {
            margin-top: 50px;
        }

        .gallery-video h3,
        .youtube-gallery h3 {
            margin-bottom: 20px;
            text-align: center;
            color: var(--color-dark);
        }

        .youtube-gallery-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 24px;
            align-items: start;
        }

        .youtube-video-card {
            background-color: white;
            border-radius: 12px;
            padding: 14px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        }

        .youtube-video-card iframe {
            display: block;
            width: 100%;
            aspect-ratio: 9 / 16;
            border: 0;
            border-radius: 8px;
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: var(--transition);
        }
        
        .gallery-item:hover img {
            transform: scale(1.1);
        }
        
        .item-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding: 20px;
            transform: translateY(100%);
            transition: var(--transition);
        }
        
        .gallery-item:hover .item-info {
            transform: translateY(0);
        }

        .gallery-item img {
            cursor: zoom-in;
        }

        /* ==========================================================================
           9. MODAL DE IMÁGENES (ZOOM)
           Interfaz de visualización ampliada para la galería con navegación.
           ========================================================================== */
        .image-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: 20px;
        }

        .image-modal.open {
            display: flex;
        }

        .image-modal-content {
            position: relative;
            max-width: 95%;
            max-height: 95%;
        }

        .image-modal-content img {
            width: 100%;
            height: auto;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            object-fit: contain;
        }

        .image-modal-close {
            position: absolute;
            top: -10px;
            right: -10px;
            color: white;
            background: rgba(0, 0, 0, 0.6);
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 1.8rem;
            cursor: pointer;
            z-index: 2;
        }

        .image-modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .image-modal-next {
            position: absolute;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.95);
            color: var(--color-dark);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, color 0.2s ease;
            z-index: 2;
        }

        .image-modal-next:hover {
            background: rgba(255, 255, 255, 1);
            color: var(--color-accent);
        }

        .image-modal-next:hover,
        .image-modal-prev:hover {
            background: rgba(255, 255, 255, 0.22);
        }

        .image-modal-prev {
            position: absolute;
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.95);
            color: var(--color-dark);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, color 0.2s ease;
            z-index: 2;
        }

        .image-modal-prev:hover {
            background: rgba(255, 255, 255, 1);
            color: var(--color-accent);
        }
        
        /* ==========================================================================
           10. SECCIÓN TIENDA / VENTAS
           Estilos para la página de productos, tarjetas de venta y detalles técnicos.
           ========================================================================== */

        .shop {
            padding: 100px 0;
            background-color: white;
        }

        .tienda-page {
            background-color: #ffffff;
            color: #1f1a17;
        }

        .tienda-page header {
            background-color: rgba(255, 255, 255, 0.96);
            color: var(--color-dark);
            box-shadow: none;
            border-bottom: 1px solid rgba(62, 39, 35, 0.12);
            backdrop-filter: blur(10px);
        }

        .tienda-page .logo,
        .tienda-page .logo span,
        .tienda-page .logo-subtitle,
        .tienda-page .nav-links a,
        .tienda-page .mobile-menu-btn {
            color: var(--color-dark);
        }

        .tienda-page .nav-links a:hover,
        .tienda-page .nav-links a.active {
            color: var(--color-accent);
        }

        .tienda-info {
            padding: 130px 0 110px;
            background-color: white;
        }

        .tienda-page .section-title {
            margin-bottom: 38px;
        }

        .tienda-page .section-title::after {
            width: 56px;
            height: 1px;
            background-color: rgba(62, 39, 35, 0.4);
        }

        .tienda-page .section-title h2 {
            font-size: clamp(2.4rem, 4vw, 4.4rem);
            font-weight: 500;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        .tienda-info-hero {
            max-width: 760px;
            margin: 0 auto 64px;
            text-align: center;
        }

        .tienda-info-hero p {
            font-size: 1.12rem;
            line-height: 1.95;
            color: var(--color-text);
            margin-bottom: 28px;
        }

        .tienda-info-actions {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 14px;
            margin-top: 52px;
            padding-top: 30px;
            border-top: 1px solid rgba(62, 39, 35, 0.12);
            text-align: center;
        }

        .tienda-action-btn-secondary {
            background: #ffffff;
        }

        .tienda-info-highlight {
            display: inline-block;
            padding: 16px 22px;
            border-radius: 0;
            background: transparent;
            border-top: 1px solid rgba(62, 39, 35, 0.2);
            border-bottom: 1px solid rgba(62, 39, 35, 0.2);
            color: var(--color-dark);
            box-shadow: none;
        }

        .tienda-info-grid {
            column-count: 2;
            column-gap: 34px;
            display: block;
        }

        .tienda-info-card {
            display: inline-block;
            width: 100%;
            margin-bottom: 30px;
            background-color: #fff;
            border: 1px solid rgba(62, 39, 35, 0.12);
            border-radius: 0;
            padding: 10px 20px 50px 30px;
            box-shadow: none;
        }

        .tienda-info-card h3 {
            margin-bottom: 18px;
            color: var(--color-dark);
            font-size: 1.55rem;
            font-weight: 500;
        }

        /* Ajuste para títulos en la sección personal */
        .personal .tienda-info-card h3 {
            text-align: left;
            margin-bottom: 35px;
            padding-bottom: 10px;
        }

        .tienda-info-card p {
            margin-bottom: 16px;
            line-height: 1.9;
            color: var(--color-text);
            white-space: pre-wrap;
            text-align: justify;
        }

        .tienda-info-list {
            margin: 0;
            padding-left: 20px;
            padding-left: 0;
            color: var(--color-text);
        }

        .tienda-info-list li {
            margin-bottom: 12px;
            line-height: 1.7;
        }

        .tienda-info-note {
            margin: 18px 0 0;
            padding: 18px 0 0;
            border-left: none;
            border-top: 1px solid rgba(62, 39, 35, 0.16);
            background-color: transparent;
            border-radius: 0;
            color: var(--color-dark);
            font-style: italic;
        }

        .tienda-page .btn,
        .tienda-page .tienda-action-btn,
        .tienda-page .btn-pago,
        .tienda-page .btn-whatsapp {
            min-width: 210px;
            padding: 12px 22px;
            border: 1px solid rgba(62, 39, 35, 0.18);
            border-radius: 0;
            background: #ffffff;
            color: var(--color-dark);
            box-shadow: none;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.82rem;
        }

        .tienda-page .btn:hover,
        .tienda-page .tienda-action-btn:hover,
        .tienda-page .btn-pago:hover,
        .tienda-page .btn-whatsapp:hover {
            background: #f5f1eb;
            color: var(--color-dark);
            box-shadow: none;
        }
        
        .shop-preview {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }
        
        .product-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            position: relative;
        }
        
        .product-card:hover {
            transform: translateY(-10px);
        }
        
        /* ==========================================================================
           11. TARJETAS DE PRODUCTO
           Contenedores individuales de ítems de la tienda.
           ========================================================================== */
         .product-image {
            height: 250px;
            overflow: hidden;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.1);
        }
        
        .product-info {
            padding: 20px;
        }
        
        .product-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--color-dark);
        }
        
        .view-more {
            text-align: center;
        }

        .contenedor-compra {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        /* ==========================================================================
           12. SECCIÓN DE CONTACTO
           Formularios, iconos de redes sociales y mapa.
           ========================================================================== */

        .contact {
            padding: 100px 0;
            background-color: #f9f5f0;
        }
        
        .contact-container {
            display: flex;
            gap: 50px;
        }
        
        .contact-info {
            flex: 1;
        }
        
        .contact-form {
            flex: 1;
        }
        
        .social-links {
            display: flex;
            margin-top: 20px;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: var(--color-primary);
            color: white;
            border-radius: 50%;
            margin-right: 15px;
            transition: var(--transition);
        }
        
        .social-links a:hover {
            background-color: var(--color-accent);
            transform: translateY(-5px);
        }
        
        /* ==========================================================================
           13. PIE DE PÁGINA (FOOTER)
           Secciones de información, enlaces rápidos y copyright.
           ========================================================================== */

        footer {
            background-color: var(--color-dark);
            color: white;
            padding: 50px 0 20px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            color: var(--color-secondary);
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        /* ==========================================================================
           14. NAVEGACIÓN MÓVIL
           Botón hamburguesa y ajustes de visualización en dispositivos pequeños.
           ========================================================================== */

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        /* ==========================================================================
           15. CONSULTAS DE MEDIOS (RESPONSIVE DESIGN)
           Ajustes de layout para tablets y teléfonos móviles.
           ========================================================================== */
        
        @media (max-width: 992px) {
            .about-content,
            .contact-container {
                flex-direction: column;
            }
            
            .about-image {
                order: -1;
            }
            
            .form-row {
                flex-direction: column;
                gap: 0;
            }
            }
        
        @media (max-width: 768px) {
            .personal {
                padding: 0 15px;
                margin-left: 0;
                margin-right: 0;
            }
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--color-dark);
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            }
            
            .nav-links.active {
                display: flex;
            }
            
            .nav-links li {
                margin: 15px 0;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }

            .gallery-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .youtube-gallery-grid {
                grid-template-columns: 1fr;
            }

            .tienda-info-grid {
                column-count: 1;
            }
            }
            
        @media (max-width: 560px) {
            .gallery-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ==========================================================================
           16. PÁGINAS DE ENTRADA Y HUB DE GALERÍAS
           Estilos para index.html (mosaico) y sub-galerías (ajedrez/juegos).
           ========================================================================== */
        .gallery-hub-page {
            background:
                radial-gradient(circle at top, rgba(210, 180, 140, 0.42), transparent 34%),
                linear-gradient(180deg, #f7f1e8 0%, #eadcc8 48%, #f3ede2 100%);
        }

        .site-entry-page {
            min-height: 100vh;
            background:
                radial-gradient(circle at top left, rgba(139, 90, 43, 0.16), transparent 24%),
                radial-gradient(circle at bottom right, rgba(165, 42, 42, 0.16), transparent 24%),
                #120d0c;
        }

        .site-entry {
            min-height: 100vh;
        }

        .site-entry-link {
            position: relative;
            display: block;
            min-height: 100vh;
            color: white;
            overflow: hidden;
        }

        .site-entry-grid {
            position: absolute;
            inset: 0;
            display: grid;
            grid-template-columns: 1.15fr 0.85fr 1fr;
            grid-template-rows: repeat(3, 1fr);
            gap: 12px;
            padding: 12px;
            transform: scale(1.02);
            --entry-move-x: 0px;
            --entry-move-y: 0px;
        }

        .entry-cell {
            position: relative;
            overflow: hidden;
            border-radius: 22px;
        }

        .entry-cell img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: saturate(0.92) brightness(0.72);
            transform: translate(var(--img-shift-x, 0px), var(--img-shift-y, 0px)) scale(1);
            transition: transform 0.7s ease, filter 0.7s ease;
            will-change: transform, filter;
        }

        .cell-a img {
            --img-shift-x: calc(var(--entry-move-x) * -0.035);
            --img-shift-y: calc(var(--entry-move-y) * -0.035);
        }

        .cell-b img {
            --img-shift-x: calc(var(--entry-move-x) * 0.02);
            --img-shift-y: calc(var(--entry-move-y) * -0.025);
        }

        .cell-c img {
            --img-shift-x: calc(var(--entry-move-x) * 0.04);
            --img-shift-y: calc(var(--entry-move-y) * -0.03);
        }

        .cell-d img {
            --img-shift-x: calc(var(--entry-move-x) * -0.025);
            --img-shift-y: calc(var(--entry-move-y) * 0.03);
        }

        .cell-e img {
            --img-shift-x: calc(var(--entry-move-x) * -0.018);
            --img-shift-y: calc(var(--entry-move-y) * 0.022);
        }

        .cell-f img {
            --img-shift-x: calc(var(--entry-move-x) * 0.028);
            --img-shift-y: calc(var(--entry-move-y) * 0.025);
        }

        .cell-a {
            grid-row: 1 / span 2;
        }

        .cell-b {
            grid-column: 2;
            grid-row: 1;
        }

        .cell-c {
            grid-column: 3;
            grid-row: 1 / span 2;
        }

        .cell-d {
            grid-column: 2;
            grid-row: 2 / span 2;
        }

        .cell-e {
            grid-column: 1;
            grid-row: 3;
        }

        .cell-f {
            grid-column: 3;
            grid-row: 3;
        }

        .site-entry-overlay {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(18, 13, 12, 0.28) 0%, rgba(18, 13, 12, 0.42) 28%, rgba(18, 13, 12, 0.86) 100%);
        }

        .site-entry-content {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: min(760px, calc(100% - 40px));
            margin: 0 auto;
            text-align: center;
        }

        .site-entry-kicker {
            margin-bottom: 18px;
            color: rgba(245, 245, 220, 0.85);
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.34em;
            text-transform: uppercase;
        }

        .site-entry-content h1 {
            margin-bottom: 18px;
            font-size: clamp(2.8rem, 7vw, 6.5rem);
            line-height: 0.92;
            color: #f8efe5;
            text-wrap: balance;
        }

        .site-entry-copy {
            max-width: 34ch;
            margin-bottom: 28px;
            color: rgba(255, 244, 233, 0.86);
            font-size: 1.05rem;
        }

        .site-entry-cta {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 14px 28px;
            border: 1px solid rgba(255, 243, 229, 0.3);
            border-radius: 999px;
            background: rgba(255, 248, 241, 0.12);
            backdrop-filter: blur(10px);
            color: #fff7ef;
            font-weight: 600;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
            transition: transform 0.35s ease, background-color 0.35s ease;
            animation: pulse 2s infinite;
            animation: buttonPulse 2s infinite;
        }

        .site-entry-cta::after {
            content: "↗";
            font-size: 1rem;
        }

        .site-entry-link:hover .site-entry-cta {
            transform: translateY(-3px);
            background: rgba(255, 248, 241, 0.2);
        }

        .site-entry-link:hover .entry-cell img {
            transform: translate(var(--img-shift-x, 0px), var(--img-shift-y, 0px)) scale(1.06);
            filter: saturate(1) brightness(0.78);
        }

        .site-entry-link.is-pointer-active .entry-cell img {
            transform: translate(var(--img-shift-x, 0px), var(--img-shift-y, 0px)) scale(1.045);
            filter: saturate(0.98) brightness(0.76);
        }

        @keyframes buttonPulse {
            0%, 100% {
                box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
            }
            50% {
                box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 0 20px rgba(255, 243, 229, 0.4);
            }
        }

        .gallery-hub {
            min-height: 100vh;
            padding: 120px 0 80px;
        }

        .hub-hero {
            position: relative;
            overflow: hidden;
        }

        .hub-hero::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 18% 20%, rgba(165, 42, 42, 0.1), transparent 18%),
                radial-gradient(circle at 84% 28%, rgba(139, 90, 43, 0.15), transparent 22%),
                radial-gradient(circle at 50% 100%, rgba(62, 39, 35, 0.12), transparent 28%);
            pointer-events: none;
        }

        .hub-hero-inner {
            position: relative;
            display: grid;
            grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.2fr);
            gap: 42px;
            align-items: center;
        }

        .hub-copy {
            max-width: 460px;
        }

        .hub-kicker {
            margin-bottom: 18px;
            color: var(--color-accent);
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 0.28em;
            text-transform: uppercase;
        }

        .hub-copy h1 {
            margin-bottom: 18px;
            color: var(--color-dark);
            font-size: clamp(2.6rem, 5vw, 5rem);
            line-height: 0.95;
        }

        .hub-intro {
            max-width: 42ch;
            color: rgba(62, 39, 35, 0.86);
            font-size: 1.03rem;
        }

        .hub-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 22px;
            align-items: stretch;
        }

        .hub-card {
            position: relative;
            display: block;
            min-height: 280px;
            border-radius: 26px;
            overflow: hidden;
            box-shadow: 0 22px 48px rgba(62, 39, 35, 0.16);
            isolation: isolate;
            transform: translateY(0);
            transition: transform 0.35s ease, box-shadow 0.35s ease;
        }

        .hub-card-main {
            grid-row: span 2;
            min-height: 580px;
        }

        .hub-card img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: scale(1.01);
            transition: transform 0.45s ease, filter 0.45s ease;
        }

        .hub-card-shadow {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(34, 23, 20, 0.08) 0%, rgba(34, 23, 20, 0.18) 38%, rgba(34, 23, 20, 0.82) 100%);
        }

        .hub-card-content {
            position: absolute;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 1;
            padding: 28px;
            color: #fff7f0;
        }

        .hub-card-content p {
            margin-bottom: 8px;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: rgba(255, 240, 228, 0.86);
        }

        .hub-card-content h2 {
            margin-bottom: 8px;
            font-size: clamp(1.8rem, 3vw, 3rem);
            line-height: 0.95;
        }

        .hub-card-content span {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-size: 0.98rem;
            color: rgba(255, 244, 233, 0.92);
        }

        .hub-card-content span::after {
            content: "↗";
            font-size: 1rem;
        }

        .hub-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 28px 54px rgba(62, 39, 35, 0.2);
        }

        .hub-card:hover img {
            transform: scale(1.06);
            filter: saturate(1.05);
        }

        @media (max-width: 980px) {
            .hub-hero-inner {
                grid-template-columns: 1fr;
            }

            .hub-copy {
                max-width: none;
            }
        }

        @media (max-width: 720px) {
            .hub-grid {
                grid-template-columns: 1fr;
            }

            .hub-card-main {
                grid-row: span 1;
                min-height: 420px;
            }

            .hub-card {
                min-height: 320px;
            }
        }

        @media (max-width: 760px) {
            .site-entry-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(4, 1fr);
            }

            .cell-a {
                grid-column: 1 / span 2;
                grid-row: 1;
            }

            .cell-b {
                grid-column: 1;
                grid-row: 2;
            }

            .cell-c {
                grid-column: 2;
                grid-row: 2 / span 2;
            }

            .cell-d {
                grid-column: 1;
                grid-row: 3 / span 2;
            }

            .cell-e {
                grid-column: 2;
                grid-row: 4;
            }

            .cell-f {
                display: none;
            }
        }

        /* ==========================================================================
           17. COMPONENTES EXTRA DE CONTACTO
           Tarjetas de información detallada y marcos de mapa de Google.
           ========================================================================== */

            .contact-card {
                background-color: white;
                border-radius: 8px;
                padding: 30px;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            }

            .contact-card h3 {
                margin-bottom: 20px;
                color: var(--color-dark);
            }

            .contact-details p {
                margin-bottom: 15px;
                display: flex;
                align-items: center;
                gap: 10px;
                color: var(--color-text);
            }

            .contact-details a {
                color: var(--color-dark);
                font-weight: 500;
            }

            .btn-secondary {
                display: inline-flex;
                align-items: center;
                gap: 10px;
                background-color: var(--color-secondary);
                color: var(--color-dark);
                margin-bottom: 25px;
            }

            .btn-secondary:hover {
                background-color: var(--color-accent);
                color: white;
            }

            .map-container {
                margin-top: 40px;
            }

            .map-container h3 {
                margin-bottom: 20px;
                color: var(--color-dark);
            }

            .map-frame {
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
            }

        /* ==========================================================================
           18. SECCIONES COLAPSABLES (ENSAYOS PERSONALES)
           Acordeones para los capítulos de "Historia de una vida".
           ========================================================================== */

        .collapsible {
            background-color: var(--color-dark);
            color: white;
            cursor: pointer;
            padding: 22px 25px;
            width: 100%;
            border: none;
            text-align: left;
            border-radius: 8px;
            outline: none;
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .collapsible:hover {
            background-color: var(--color-accent);
            transform: translateY(-2px);
        }

        .collapsible.active {
            background-color: var(--color-accent);
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            margin-bottom: 0;
        }

        .collapsible::after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            font-size: 0.9rem;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .collapsible.active::after {
            transform: rotate(180deg);
        }

        .content {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.4s ease-in-out, padding 0.4s ease;
            overflow: hidden;
            background-color: rgba(255, 255, 255, 0.5);
            padding: 0 25px;
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
            margin-bottom: 20px;
        }

        .collapsible.active + .content {
            grid-template-rows: 1fr;
            padding-top: 25px;
            padding-bottom: 25px;
            border: 1px solid rgba(62, 39, 35, 0.1);
            border-top: none;
        }

        .content > * {
            min-height: 0;
        }

        /* Evita el colapso de márgenes que oculta el título al abrir el acordeón */
        .content h3 {
            margin-top: 0;
            padding-top: 12px;
            color: var(--color-dark);
        }
