/* ==========================================
   RESET Y VARIABLES
   ========================================== */

/* Reset básico para eliminar márgenes y paddings por defecto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS para colores y espaciados - fácil de modificar */
:root {
    --color-primary: #1a1a1a;      /* Negro suave */
    --color-secondary: #f5f5f5;    /* Blanco roto */
    --color-accent: #2c2c2c;       /* Gris oscuro */
    --color-text: #333;            /* Texto principal */
    --color-text-light: #666;      /* Texto secundario */
    --spacing-xl: 120px;
    --spacing-lg: 80px;
    --spacing-md: 40px;
    --spacing-sm: 20px;
    --max-width: 1200px;
}

/* ==========================================
   ESTILOS GENERALES
   ========================================== */

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-secondary);
}

/* Scroll suave al hacer clic en los enlaces del menú */
html {
    scroll-behavior: smooth;
}

h1, h2 {
    font-weight: 300;  /* Tipografía ligera = elegancia */
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* ==========================================
   NAVEGACIÓN
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);  /* Efecto de vidrio */
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

/* ==========================================
   HERO / PORTADA
   ========================================== */

.hero {
    height: 100vh;
    background: url('../images/obras/hero-image.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: var(--spacing-lg);
}

.hero-content {
    padding: var(--spacing-md);
    border-radius: 2px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}
/* ==========================================
   BLOQUES DE NAVEGACIÓN
   ========================================== */

.bloques-nav {
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: var(--color-secondary);
}

.bloques-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* Centra la última fila incompleta */
    gap: var(--spacing-md);
}

.bloque {
    position: relative;
    height: 350px;  /* Altura de los bloques */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background-size: cover;
    background-position: center;
    flex: 1 1 calc(33.333% - var(--spacing-md) * 2 / 3);
}

/* Imágenes de fondo para cada bloque */
.bloque-obras {
    background-image: url('../images/bloques/obras.jpg');
}

.bloque-exposiciones {
    background-image: url('../images/bloques/exposiciones.jpg');
}

.bloque-autor {
    background-image: url('../images/bloques/autor.jpg');
}

.bloque-libro {
    background-image: url('../images/bloques/libro.jpg');
}

.bloque-contacto {
    background-image: url('../images/bloques/contacto.jpg');
}

.bloque-iniciales {
    background-image: url('../images/bloques/iniciales.jpg');
}

.bloque-informalistas {
    background-image: url('../images/bloques/informalistas.jpg');
}

.bloque-grafica {
    background-image: url('../images/bloques/grafica.jpg');
}

.bloque-monocromos {
    background-image: url('../images/bloques/monocromos.jpg');
}

.bloque-textiles {
    background-image: url('../images/bloques/textiles.jpg');
}

.bloque-banales {
    background-image: url('../images/bloques/banales.jpg');
}
/* Overlay oscuro sobre la imagen */
.bloque-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);  /* Oscurecido por defecto */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    text-align: center;
    transition: background 0.3s ease;
}

/* Al pasar el ratón: se ilumina (menos oscuro) */
.bloque:hover .bloque-overlay {
    background: rgba(0, 0, 0, 0);  /* Más claro */
}

.bloque:hover {
    transform: translateY(-10px);  /* Se eleva */
}

.bloque h3 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.bloque p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* ==========================================
   RESPONSIVE - BLOQUES
   ========================================== */

@media (max-width: 768px) {
    .bloques-container {
        flex-direction: column;
    }
    
    .bloque {
        flex: none;      /* Anula el flex-grow/shrink/basis heredado */
        width: 100%;      /* Ancho completo */
        height: 250px;    /* Altura fija, como tenías antes */
    }
    
    .bloque h3 {
        font-size: 1.5rem;
    }
    
    .bloque p {
        font-size: 1rem;
    }
    
}
/* ==========================================
   GALERÍA
   ========================================== */

.galeria {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Grid responsive con CSS Grid */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.galeria-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efecto hover elegante */
.galeria-item:hover img {
    transform: scale(1.05);
}

/* Overlay con información al pasar el ratón */
.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.galeria-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ==========================================
   SOBRE MÍ
   ========================================== */

.sobre-mi {
    /* background-color: white; */
    padding: var(--spacing-xl) var(--spacing-md);
}

.sobre-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.sobre-imagen img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.sobre-texto h2 {
    text-align: left;
}

.sobre-texto p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* ==========================================
   CONTACTO
   ========================================== */

.contacto {
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.contacto-info {
    max-width: 600px;
    margin: 0 auto;
}

.contacto-info p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: var(--spacing-md);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    /* Menú más compacto en tablet */
    .nav-menu {
        gap: var(--spacing-sm);
    }
    
    /* Grid de galería más pequeño */
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-sm);
    }
    
    /* Sobre mí en una columna */
    .sobre-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* ==========================================
   RESPONSIVE - MÓVIL
   ========================================== */

@media (max-width: 480px) {
    :root {
        --spacing-xl: 60px;
        --spacing-lg: 40px;
    }
    
    .nav-menu {
        font-size: 0.8rem;
        gap: 15px;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: var(--spacing-sm);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}
/* ==========================================
   PÁGINAS INTERNAS
   ========================================== */

/* Espaciador para compensar el navbar fijo */
.navbar-spacer {
    height: 80px;
}

/* Header de páginas internas */
.page-header {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: white;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

/* Estilo para enlace activo en el menú */
.nav-menu a.active {
    color: var(--color-primary);
    font-weight: 500;
}

/* ==========================================
   GALERÍA (ya existe, pero aquí está completa)
   ========================================== */

.galeria {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.galeria-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.08);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: var(--spacing-sm);
    text-align: center;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.galeria-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

/* ==========================================
   RESPONSIVE - PÁGINAS INTERNAS
   ========================================== */

@media (max-width: 768px) {
    .navbar-spacer {
        height: 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-sm);
    }
}

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

/* ==========================================
   LIGHTBOX
   ========================================== */

.lightbox {
    display: none;  /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Botón de cerrar */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #bbb;
}

/* Imagen en el lightbox */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Título y descripción debajo de la imagen */
.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}

/* ==========================================
   PÁGINA SOBRE MÍ
   ========================================== */

.sobre-mi .sobre-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.sobre-imagen {
    position: sticky;
    top: 100px;
}

.sobre-imagen img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.sobre-texto h1 {
    font-size: 3rem;
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.sobre-texto p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}


/* ==========================================
   RESPONSIVE - SOBRE MÍ
   ========================================== */

@media (max-width: 768px) {
    .sobre-mi .sobre-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding-inline: var(--spacing-sm);
    }
    
    .sobre-imagen {
        position: relative;
        top: 0;
    }
    
    .sobre-texto h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .sobre-texto p {
        text-align: justify;
    }
    
    .trayectoria-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .trayectoria-columna h2 {
        text-align: center;
    }
}

/* Estilo base de la navbar */
.navbar {
    background-color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: #000;
}

/* Botón menú móvil escondido en escritorio */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}
/* ==========================================
   PÁGINA EXPOSICIONES
   ========================================== */

.exposiciones {
    padding: var(--spacing-lg) var(--spacing-md);
}

.exposiciones-alt {
    background-color: white;
}

.exposiciones-grupo {
    max-width: 800px;
    margin: 0 auto;
}

.exposiciones-grupo h2 {
    font-size: 2rem;
    text-align: left;
    margin-bottom: var(--spacing-lg);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

/* Cada bloque de año */
.exposiciones-año {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #e0e0e0;
}

.exposiciones-año:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Número del año, estilo etiqueta fija a la izquierda */
.año-numero {
    flex-shrink: 0;
    width: 70px;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: 1px;
}

/* Lista de exposiciones de ese año */
.exposiciones-lista-año {
    list-style: none;
    flex: 1;
}

.exposiciones-lista-año li {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

/* Pequeño guión decorativo en lugar de bullet */
.exposiciones-lista-año li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.2rem;
    line-height: 1;
}

.exposiciones-lista-año li:last-child {
    margin-bottom: 0;
}


/* --- MEDIA QUERY para móviles --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        /*background-color: #fff;*/
        background-color: var(--color-secondary);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        border-top: 1px solid #ddd;
        padding: 10px 0; /* agrega padding vertical */
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: var(--color-primary); /* mejor visibilidad */
    }
    .exposiciones-grupo h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .exposiciones-año {
        flex-direction: column;
        gap: 8px;
    }
    
    .año-numero {
        width: auto;
        font-size: 1.5rem;
    }
    
    .exposiciones-lista-año li {
        font-size: 0.95rem;
    }
}
/* ==========================================
   PÁGINA LIBRO / FLIPBOOK
   ========================================== */

.libro-seccion {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
    background-color: var(--color-secondary);
}

.libro-container {
    max-width: var(--max-width);
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.libro-iframe {
    width: 100%;
    height: 600px;  /* Ajusta esta altura a tu gusto */
    border: none;
    display: block;
}

/* ==========================================
   RESPONSIVE - LIBRO
   ========================================== */

@media (max-width: 768px) {
    .libro-iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .libro-iframe {
        height: 300px;
    }
}
/* ==========================================
   FORMULARIO DE CONTACTO
   ========================================== */

.contacto-form-seccion {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
}

.contacto-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-grupo {
    margin-bottom: var(--spacing-sm);
}

.form-grupo label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
}

.form-grupo input,
.form-grupo textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-secondary);
    transition: border-color 0.3s ease;
}

.form-grupo input:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-grupo textarea {
    resize: vertical;
}

.form-boton {
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.form-boton:hover {
    background-color: var(--color-accent);
}

.form-boton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-resultado {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
}

.form-resultado.exito {
    color: #2e7d32;
}

.form-resultado.error {
    color: #c62828;
}

/* ==========================================
   RESPONSIVE - FORMULARIO
   ========================================== */

@media (max-width: 768px) {
    .contacto-form-container {
        padding: var(--spacing-md);
    }
}
/* ==========================================
   VÍDEO DE PRESENTACIÓN
   ========================================== */

.video-seccion {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
    background-color: white;
    text-align: center;
}

.video-seccion h2 {
    margin-bottom: var(--spacing-lg);
}

/* Contenedor responsive que mantiene la proporción 16:9 */
.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding-bottom: 45%;  /* Proporción 16:9 (56.25% sobre max-width) */
    height: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   RESPONSIVE - VÍDEO
   ========================================== */

@media (max-width: 768px) {
    .video-container {
        padding-bottom: 56.25%;  /* 16:9 completo en pantallas pequeñas */
    }
}

/* ==========================================
   LAYOUT EXPOSICIONES: CARTELES + LISTADO
   ========================================== */

.exposiciones-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;  /* Carteles a la izquierda, listado a la derecha */
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    align-items: start;
}

/* Columna de carteles */
.carteles-sidebar {
    position: sticky;
    top: 100px;  /* Se queda fija bajo el navbar mientras haces scroll */
}

.carteles-grid {
    display: grid;
    grid-template-columns: 1fr;  /* Una sola columna */
    gap: 12px;  /* Un poco más de espacio entre carteles al ir en vertical */
}

.carteles-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;  /* Proporción típica de cartel */
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.carteles-grid img:hover {
    transform: scale(1.05);
}

/* Como ahora el listado va dentro de esta columna, quitamos su max-width propio */
.exposiciones-contenido .exposiciones {
    padding: 0 0 var(--spacing-lg);
    max-width: none;
}

.exposiciones-contenido .exposiciones-grupo {
    max-width: none;
    margin: 0;
}

/* ==========================================
   RESPONSIVE - LAYOUT EXPOSICIONES
   ========================================== */

@media (max-width: 992px) {
    .exposiciones-layout {
        grid-template-columns: 1fr;  /* Una sola columna */
    }
    
    .carteles-sidebar {
        position: relative;
        top: 0;
    }
    
    .carteles-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .carteles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}