/* Tema de Galería de Arte Moderno */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Playfair+Display:wght@400;700&family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('http://www.gonzaloalbo.es/error.html');

:root {
    /* COMENTARIO: Define las variables globales de color y tipografía para todo el sitio web. 
       Cambiar estos valores afectará a todas las páginas. */
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #c0392b;
    /* Rojo Intenso para acciones/destacados */
    --gold: #d4af37;
    /* Sensación Premium */
    --text-color: #333333;
    --text-light: #777777;
    --white: #ffffff;

    /* Theme Colors */
    --bg-oleo: #fbfbf8;
    /* Lienzo Cálido */
    --bg-acuarela: #f4faff;
    /* Agua Fresca */
    --bg-digital: #1bd1aa;
    /* Verde Agua Oscuro */

    --bg-regalos: #fffafa;
    /* Tono Rosa Suave */

    --bg-home: #04a9f5;
    /* COMENTARIO PARA EL USUARIO: Aquí se define el color cielo para la página de inicio. */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
    --header-height: 80px;

    --radius: 4px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Restablecimiento y Base */
/* COMENTARIO: Reseteo básico para eliminar márgenes por defecto en todos los elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* COMENTARIO: Estilos base para el cuerpo de la página (fuente, color, fondo) */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utilidades */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.my-lg {
    margin: var(--spacing-lg) 0;
}

/* Sección de Título de Página */
.my-lg.text-center h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.my-lg.text-center p {
    font-family: var(--font-body);
    max-width: 1000px !important;
    margin: 0 auto !important;
    font-size: 1.1rem;
    color: var(--text-light) !important;
    font-style: italic;
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

/* Fondos del Tema */
body.theme-oleo {
    background-color: var(--bg-oleo);
}

body.theme-acuarela {
    background-color: var(--bg-acuarela);
}

body.theme-digital {
    background-color: var(--bg-digital);
    /* Eliminada la anulación de color blanco ya que ahora somos tema claro */
    color: var(--text-color);
}

body.theme-regalos {
    background-color: var(--bg-regalos);
}

/* COMENTARIO: Aplicación del fondo color cielo a la página de inicio */
body.theme-home {
    background-color: var(--bg-home);
}

/* Anulaciones Específicas del Tema - ELIMINADAS ANULACIONES DEL MODO OSCURO DIGITAL */
/*
body.theme-digital h1,
body.theme-digital h2,
body.theme-digital h3,
body.theme-digital .art-title,
body.theme-digital .logo,
body.theme-digital .my-lg.text-center h1 {
    color: #fff;
}

body.theme-digital .site-header {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-digital .art-card {
    background: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.theme-digital .main-nav a.active {
    color: #fff;
}
*/

/* Caja de Luz (Lightbox) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;

    /* Efecto de marco decorativo */
    padding: 20px;
    background: white;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 8px white,
        inset 0 0 0 9px rgba(0, 0, 0, 0.2);
    border-radius: 2px;

    /* Definición de animación */
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    transform-origin: center center;
}


.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s ease;
}

/* COMENTARIO: Estilos para el botón de cerrar el lightbox */
.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}


/* Componentes */

/* Cabecera */
/* Cabecera */
/* COMENTARIO: Configuración de la barra de navegación superior (fija, fondo borroso) */
.site-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    /* Se mantiene pegada arriba al hacer scroll */
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-right: 15px;
    /* Espaciado desde la hamburguesa */
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Sección de Hero */
.hero {
    height: 80vh;
    min-height: 500px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero del Faro */
.hero-lighthouse {
    background-image: url('../css_files/luzfaro.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    /*especificar el ancho del contenedor*/
    position: relative;
    z-index: 2;
    margin-left: auto;
    /* Empuja el bloque a la derecha */
    text-align: left;
    /* Mantiene el texto justificado a la izquierda dentro del bloque */
}

.hero-lighthouse .hero-content h1,
.hero-lighthouse .hero-content p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.btn-hero {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

.btn-hero:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Superposiciones de Degradado de Página */
.page-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Óleo - Tonos tierra cálidos */
.gradient-oleo {
    background:
        radial-gradient(circle at 10% 20%, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(160, 82, 45, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(184, 134, 11, 0.08) 0%, transparent 70%);
}

/* Acuarela - Tonos acuáticos frescos */
.gradient-acuarela {
    background:
        radial-gradient(circle at 15% 25%, rgba(64, 156, 189, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(135, 206, 235, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(100, 149, 237, 0.08) 0%, transparent 70%);
}

/* Digital - Tonos tecnológicos modernos */
.gradient-digital {
    background:
        radial-gradient(circle at 20% 30%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(147, 112, 219, 0.08) 0%, transparent 70%);
}

/* Regalos - Tonos cálidos festivos */
.gradient-regalos {
    background:
        radial-gradient(circle at 12% 22%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 88% 78%, rgba(255, 127, 80, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 165, 0, 0.08) 0%, transparent 70%);
}

/* Contacto - Tonos verde azulado profesionales */
.gradient-contacto {
    background:
        radial-gradient(circle at 18% 28%, rgba(0, 128, 128, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 82% 72%, rgba(72, 209, 204, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(32, 178, 170, 0.08) 0%, transparent 70%);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Cuadrícula de Categorías (Inicio) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.category-title {
    color: var(--white);
    font-size: 2.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.category-card:hover .category-title {
    transform: translateY(0);
    opacity: 1;
}

/* Cuadrícula de Galería de Arte (Páginas Interiores) */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
}

/* COMENTARIO: Estilos de la tarjeta individual de cada obra de arte */
.art-card {
    background: var(--white);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, z-index 0s 0.4s;
    border-radius: var(--radius);
    transform-origin: center;
    position: relative;
    z-index: 1;
}

/* COMENTARIO: Efecto HOVER en la tarjeta completa (escala y sombra) */
.art-card:hover {
    transform: scale(2.2);
    /* Aumenta el tamaño de toda la tarjeta */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, z-index 0s;
}

/* COMENTARIO: Contenedor específico de la imagen dentro de la tarjeta */
.art-image-wrapper {
    overflow: hidden;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    background: #f0f0f0;
    aspect-ratio: 1;
    cursor: zoom-in;
    position: relative;
}

/* COMENTARIO: La imagen dentro del contenedor */
.art-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* COMENTARIO: Efecto HOVER específico en la imagen (Zoom interno) */
.art-image-wrapper:hover img {
    transform: scale(1.15);
    /* Aumentado a 1.15 para mayor efecto de zoom solicitado */
}

.art-info {
    padding: var(--spacing-sm);
}

.art-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.art-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.art-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tooltip de Imagen */
/* Tooltip de Imagen */
/* COMENTARIO: Estilo de la caja de información flotante (Tooltip) */
.image-tooltip {
    position: fixed;
    background: rgba(60, 60, 60, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 20vw;
    /* COMENTARIO: Limitado al 20% del ancho de pantalla según petición */
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.image-tooltip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: white;
}

/* Pie de página */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    margin-top: 0;
    /* Eliminado spacing-xl para eliminar el espacio en blanco */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-col a {
    color: #aaa;
}

.footer-col a:hover {
    color: var(--white);
}

/* Ocultar Sección de Copyright para limpiar el pie de página */
.site-footer .container:last-child {
    display: none;
}

/* Responsivo */
/* Diseño de Carrusel para Móvil y Tablet */
@media (min-width: 1201px) {

    .menu-toggle,
    .mobile-carousel-container {
        display: none;
    }
}

.site-header .container {
    /* Alinear elementos correctamente con el nuevo botón */
    justify-content: space-between;
}

/* Estilos del Menú Hamburguesa Móvil */
@media (max-width: 1200px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    /* Lógica de Carrusel Restaurada - Bloqueo de desplazamiento deshabilitado para página de inicio */
    /* conjunto de reglas body.carousel-active eliminado */

    .site-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        background: rgba(255, 255, 255, 0.95);
        height: 60px;
        padding: 0 1rem;
        display: flex;
        align-items: center;
    }

    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;
        position: relative;
        /* Ancla para el menú desplegable */
    }

    .logo {
        font-size: 1.2rem;
        z-index: 2001;
        position: relative;
    }

    /* Botón Hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2002;
        padding: 0;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
        transform-origin: 1px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Menú Desplegable */
    .main-nav {
        position: absolute;
        top: 100%;
        /* Cae desde la cabecera */
        right: 0;
        /* Alineado a la derecha */
        width: 220px;
        /* Ancho del menú desplegable */
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex !important;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 1.5rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        border-bottom-left-radius: 8px;

        /* Estado Oculto */
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    /* COMENTARIO: Estilo del MENÚ cuando está ACTIVO (desplegado) en móvil */
    .main-nav.active {
        /* Estado Visible */
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-color);
        display: block;
        padding: 5px 0;
    }

    .hero {
        /* Asegurar que la página de inicio NO esté oculta */
        display: flex;
        min-height: 100vh;
        /* Forzar altura de pantalla completa en móvil */
        /* height: 100vh; Eliminado para permitir el flujo */
        width: 100%;
        padding: 0;
        margin: 0;
        flex-direction: column;
        /* Apilar contenido */
        justify-content: center;
    }

    .hero-lighthouse {
        background-image: url('../css_files/faromovil.gif');
        background-position: center center;
        background-size: cover;
        /* ¿Cover o auto 100vh? El usuario quería sensación de pantalla completa */
        background-attachment: scroll;
    }

    /* Ajustes de Título de Página para móvil */
    .my-lg {
        display: block;
        margin: 110px 0 1rem 0;
        padding: 0 1rem;
        position: absolute;
        /* ¿Mantenerlo si es para páginas interiores? */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 400;
        pointer-events: none;
    }

    /* Ocultar Botones de Escritorio en Móvil */
    .desktop-only {
        display: none !important;
    }

    /* Visibilidad del Carrusel Móvil - AHORA DISEÑO ESTÁTICO */
    .mobile-carousel-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        /* No absoluto */
        width: 100%;
        height: auto;
        overflow: visible;
        /* Permitir desbordamiento */
        z-index: 800;
        padding: 80px 0 40px 0;
        /* Espacio para la cabecera */
        gap: 20px;
    }

    /* Tarjeta de Botón de Carrusel - AHORA ELEMENTO ESTÁTICO */
    .app-card {
        position: relative;
        /* No absoluto */
        top: auto;
        left: auto;
        transform: none;
        width: 90%;
        max-width: 400px;
        text-align: center;
        opacity: 1 !important;
        /* Forzar visible */
        z-index: 10;
        pointer-events: auto;
        margin: 0;
    }

    /* Estilos específicos de la Tarjeta de Introducción */
    .intro-card {
        width: 90%;
        pointer-events: none;
        margin-bottom: 2rem;
    }

    .intro-card h1 {
        color: white;
        font-family: 'Dancing Script', cursive;
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .intro-card p,
    .intro-card .hero-subtitle {
        color: white;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }

    .intro-card .hero-subtitle {
        color: var(--gold);
        /* Mantener acento dorado */
    }

    .app-card .btn-hero {
        background-color: transparent;
        /* Fondo transparente */
        border: none;
        /* Sin borde */
        color: white;
        width: 100%;
        padding: 1rem;
        font-family: 'Dancing Script', cursive;
        /* Fuente manuscrita */
        font-size: 2.5rem;
        /* Texto grande */
        font-weight: 700;
        letter-spacing: 2px;
        backdrop-filter: none;
        transition: all 0.3s ease;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
        /* Sombra fuerte para legibilidad */
        text-transform: uppercase;
        /* ¿Mantener mayúsculas o eliminar si el usuario quiere coincidencia estricta con la cabecera? La cabecera suele ser mixta o mayúsculas. */
    }

    /* Estado activo (manejado por JS añadiendo una clase o escala física) */
    .app-card.active-item .btn-hero {
        background-color: transparent;
        color: white;
        /* ¿Mantener blanco, tal vez más brillante? */
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0, 0, 0, 1);
        /* Efecto de resplandor */
        box-shadow: none;
        transform: scale(1.1);
    }

    .my-lg h1 {
        font-size: 2rem;
        margin-bottom: 0.2rem;
    }

    .my-lg p {
        font-size: 0.9rem;
        display: none;
        /* Ocultar descripción para ahorrar espacio, usuario enfocado en la distancia a la imagen */
    }

    /* Contenedor de Carrusel Vertical Móvil */
    .art-grid {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        overflow: hidden;
        padding: 0;
        margin: 0;
        background: inherit;
        touch-action: none;
        z-index: 100;
        /* ¿Detrás del título? ¿O título encima? El contenido debe ser interactivo. */
    }

    /* 
       Adjust Card Position:
       Moved up to 22% to sit immediately below the title.
       Header (~60px) + Title (~80px) + Gap (~20px) = ~160px.
       160px / 800px = 20%.
    */
    .art-card {
        position: absolute;
        top: 40%;
        /* Bajado del 20% para desbloquear cabecera expandida y título */
        left: 50%;
        width: 70vw;
        max-width: 450px;
        /* Ligeramente más ancho para tablets */
        transform-origin: center center;
        transform: translate(-50%, -50%);
        opacity: 0;
        will-change: transform, opacity, filter;
        z-index: 10;
        transition: none;
        pointer-events: auto;
    }

    .art-image-wrapper {
        width: 100%;
        background: transparent;
        border-radius: 4px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .art-info,
    .mobile-tooltip {
        display: none !important;
    }

    /* Flecha de Pista de Deslizamiento */
    .swipe-hint {
        position: absolute;
        top: 70%;
        /* Bajado para mantenerse debajo de las imágenes desplazadas */
        left: 50%;
        transform: translateX(-50%);
        color: rgba(0, 0, 0, 0.3);
        font-size: 2rem;
        animation: swipeUp 2s infinite;
        pointer-events: none;
        z-index: 50;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        /* JS lo mostrará */
        transition: opacity 0.5s ease;
    }

    .swipe-hint span {
        font-size: 0.8rem;
        text-transform: uppercase;
        margin-top: 5px;
        letter-spacing: 1px;
    }

    @keyframes swipeUp {
        0% {
            transform: translateX(-50%) translateY(0);
            opacity: 0;
        }

        50% {
            opacity: 1;
        }

        100% {
            transform: translateX(-50%) translateY(-20px);
            opacity: 0;
        }
    }

    /* Panel de Información Fijo */
    #mobile-info-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #0d0d0d;
        color: #fff;
        padding: 20px 20px 30px 20px;
        z-index: 1000;
        transform: translateY(105%);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
        /* Asegurar que cubre el espaciado mencionado por el usuario */
        /* COMENTARIO: Control del tamaño del panel de información móvil.
           - 'height: 15vh' significa que ocupa el 15% de la altura de la pantalla.
           - Para hacerlo MÁS PEQUEÑO, reduce el número (ej. 10vh).
           - Para hacerlo MÁS GRANDE, aumenta el número (ej. 25vh).
           Modifica SOLO el número antes de 'vh'. */
        height: 15vh;

        min-height: auto;
        /* Eliminamos la altura mínima forzada */
    }

    #mobile-info-panel.visible {
        transform: translateY(0);
    }

    .panel-title {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: #fff;
    }

    .panel-desc {
        font-family: var(--font-body);
        font-size: 0.95rem;
        color: #aaa;
        line-height: 1.4;
    }

    /* COMENTARIO: Ocultar el pie de página en versión móvil para evitar superposiciones */
    .site-footer {
        display: none !important;
    }

    .lightbox {
        z-index: 3000;
    }

    .image-tooltip.mobile-fixed {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        background: rgba(0, 0, 0, 0.9) !important;
        padding: 1rem !important;
        text-align: center !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5) !important;
        z-index: 5000 !important;
    }
}

/* Sección de Enlaces de Imágenes */
.image-links-section {
    background-color: var(--white);
    padding: var(--spacing-lg) 0;
}

.image-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    justify-items: center;
}

.image-link-item {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.image-link-item:hover {
    transform: scale(1.03);
}

.image-link-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Asegurar responsabilidad incluso si el usuario pidió paralelo */
@media (max-width: 768px) {
    .image-links-grid {
        grid-template-columns: 1fr;
        /* Apilar verticalmente en móvil según lo solicitado */
        gap: 20px;
        padding: 0 1rem;
        /* Añadir relleno lateral */
    }
}