/* ==========================================================================
   ESTILOS EXCLUSIVOS - DÍA INTERNACIONAL DE LAS VÍCTIMAS
   DE DESAPARICIONES FORZADAS
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --negro-memoria: #0d0d0d;
    --gris-carbon: #1a1a1a;
    --gris-piedra: #3a3a3a;
    --blanco-hueso: #f5f4f0;
    --rojo-cr: #E50914;
}

html {
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--blanco-hueso);
    color: var(--negro-memoria);
}

/* Compensación del header fijo del sitio (ver ../style.css) */
body {
    padding-top: 75px;
}
@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }
}

/* Barra de retorno a la cartelera de eventos */
.barra-retorno {
    background-color: var(--negro-memoria);
    padding: 0.8rem 2rem;
    border-bottom: 3px solid var(--rojo-cr);
}

.barra-retorno a {
    color: var(--blanco-hueso);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.barra-retorno a:hover {
    color: var(--rojo-cr);
}

.dia-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* --------------------------------------------------------------------------
   HERO CONMEMORATIVO
   -------------------------------------------------------------------------- */
.dia-hero {
    position: relative;
    background: linear-gradient(rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.82)), url('../imagenes/desaparicion_hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--blanco-hueso);
    padding: 6rem 2rem 5rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--rojo-cr);
}

.dia-hero-fecha {
    display: inline-block;
    border: 1px solid rgba(245, 244, 240, 0.5);
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--blanco-hueso);
}

.dia-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.25;
    max-width: 850px;
    margin: 0 auto 1.5rem auto;
}

.dia-hero p {
    font-size: 1.15rem;
    color: #e4e2db;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
}

.dia-hero-linea {
    width: 70px;
    height: 3px;
    background-color: var(--rojo-cr);
    margin: 2rem auto 0 auto;
}

/* --------------------------------------------------------------------------
   TIPOGRAFÍA GENERAL DE SECCIONES
   -------------------------------------------------------------------------- */
.dia-seccion {
    padding: 4.5rem 2rem;
}

.dia-seccion.oscura {
    background-color: var(--negro-memoria);
    color: var(--blanco-hueso);
}

.dia-etiqueta {
    display: inline-block;
    color: var(--rojo-cr);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.dia-seccion h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    max-width: 750px;
}

.dia-seccion.centrado h2 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.dia-seccion p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4a4a4a;
    max-width: 780px;
}

.dia-seccion.oscura p {
    color: #fefefd;
}

.dia-seccion.centrado p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.dia-grid-dos {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.dia-grid-dos.invertido {
    grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 900px) {
    .dia-grid-dos,
    .dia-grid-dos.invertido {
        grid-template-columns: 1fr;
    }
}

.dia-cita {
    border-left: 4px solid var(--rojo-cr);
    padding-left: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 2rem 0;
    max-width: 780px;
    color: var(--negro-memoria);
}

.dia-seccion.oscura .dia-cita {
    color: var(--blanco-hueso);
}

/* Tarjetas de acción / programas */
.dia-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.dia-tarjeta {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 244, 240, 0.15);
    border-radius: 8px;
    padding: 1.8rem 1.5rem;
}

.dia-seccion:not(.oscura) .dia-tarjeta {
    background-color: #ffffff;
    border: 1px solid #e2e0d8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dia-tarjeta .icono {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.8rem;
}

.dia-tarjeta h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: inherit;
}

.dia-tarjeta p {
    font-size: 0.95rem;
    max-width: none;
}

/* --------------------------------------------------------------------------
   CARRUSEL DE FOTOGRAFÍAS DE LA JORNADA
   -------------------------------------------------------------------------- */
.dia-galeria {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background-color: var(--negro-memoria);
}

.dia-track {
    display: flex;
    height: 100%;
    /* El ancho y el flex-basis de cada foto se calculan por JavaScript
       según cuántas fotos haya (incluyendo los clones del bucle infinito) */
}

.dia-slide {
    position: relative;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--negro-memoria);
}

/* Capa de fondo: ya no se usa (las fotos ahora se expanden a pantalla
   completa), se deja oculta por si se necesita en el futuro */
.dia-slide-fondo {
    display: none;
}

/* La foto ahora se expande y cubre todo el espacio del slide */
.dia-slide-imagen {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.dia-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.25) 45%, rgba(10, 10, 10, 0) 70%);
}

.dia-slide-texto {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
    padding: 2.5rem;
    color: var(--blanco-hueso);
}

.dia-slide-texto span {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rojo-cr);
    margin-bottom: 0.5rem;
}

.dia-slide-texto p {
    font-size: 1.1rem;
    max-width: 650px;
    color: #f0efe9;
    margin: 0;
}

.dia-galeria-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(245, 244, 240, 0.12);
    border: 2px solid rgba(245, 244, 240, 0.45);
    color: var(--blanco-hueso);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dia-galeria-flecha:hover {
    background-color: var(--rojo-cr);
    border-color: var(--rojo-cr);
}

.dia-galeria-anterior { left: 1.5rem; }
.dia-galeria-siguiente { right: 1.5rem; }

.dia-galeria-puntos {
    position: absolute;
    bottom: 1.2rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.dia-galeria-punto {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(245, 244, 240, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dia-galeria-punto.active {
    background-color: var(--rojo-cr);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .dia-hero {
        padding: 4.5rem 1.3rem 3.5rem 1.3rem;
    }
    .dia-hero h1 {
        font-size: 2.1rem;
    }
    .dia-hero p {
        font-size: 1rem;
    }
    .dia-seccion {
        padding: 3rem 1.3rem;
    }
    .dia-seccion h2 {
        font-size: 1.6rem;
    }
    .dia-galeria {
        height: 420px;
    }
    .dia-slide-texto {
        padding: 1.5rem;
    }
    .dia-slide-texto p {
        font-size: 0.95rem;
    }
}

/* --------------------------------------------------------------------------
   GALERÍA COMPLETA EN CUADRÍCULA
   -------------------------------------------------------------------------- */
.dia-scroll-hint {
    display: none;
}
.dia-grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.7rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4.5rem 2rem;
}

.dia-grid-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 6px;
    background-color: var(--gris-carbon);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.dia-grid-item::after {
    content: '\002B';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    background-color: rgba(13, 13, 13, 0);
    transition: background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.dia-grid-item:hover {
    transform: scale(1.03);
}

.dia-grid-item:hover::after {
    background-color: rgba(13, 13, 13, 0.35);
    opacity: 1;
}

@media (max-width: 768px) {
    .dia-scroll-hint {
        display: block;
        text-align: center;
        font-size: 0.85rem;
        font-weight: 600;
        color: #8a8a8a;
        margin: -1.8rem 0 1.2rem 0;
        padding: 0 1.3rem;
    }

    .dia-grid-galeria {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.6rem;
        padding: 0 1.3rem 3rem 1.3rem;
        /* Deja ver un pedacito de la siguiente foto como pista de que se puede deslizar */
        scroll-padding-left: 1.3rem;
    }

    .dia-grid-item {
        flex: 0 0 42%;
        aspect-ratio: 1 / 1;
        scroll-snap-align: start;
    }

    /* En pantallas muy angostas mostramos un poco menos de cada foto,
       para que se note más claramente que hay más a los lados */
    @media (max-width: 420px) {
        .dia-grid-item {
            flex: 0 0 58%;
        }
    }
}

/* --------------------------------------------------------------------------
   LIGHTBOX (VISOR DE FOTOS EN GRANDE)
   -------------------------------------------------------------------------- */
.dia-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(10, 10, 10, 0.94);
    align-items: center;
    justify-content: center;
}

.dia-lightbox.active {
    display: flex;
}

.dia-lightbox-imagen {
    max-width: 88%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dia-lightbox-cerrar {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.dia-lightbox-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(245, 244, 240, 0.12);
    border: 2px solid rgba(245, 244, 240, 0.45);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dia-lightbox-flecha:hover {
    background-color: var(--rojo-cr);
    border-color: var(--rojo-cr);
}

.dia-lightbox-anterior { left: 1.5rem; }
.dia-lightbox-siguiente { right: 1.5rem; }

@media (max-width: 600px) {
    .dia-lightbox-flecha {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .dia-lightbox-cerrar {
        top: 1rem;
        right: 1rem;
        font-size: 1.8rem;
    }
}

/* --------------------------------------------------------------------------
   LLAMADO A LA ACCIÓN / CONTACTO
   -------------------------------------------------------------------------- */
.dia-cta {
    background: linear-gradient(135deg, #1A2530 0%, #2A3B4C 100%);
    color: var(--blanco-hueso);
    padding: 4rem 2rem;
    text-align: center;
}

.dia-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.dia-cta p {
    color: #e2e8f0;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.dia-cta-botones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.dia-btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.dia-btn-primario {
    background-color: var(--rojo-cr);
    color: #ffffff;
}

.dia-btn-primario:hover {
    background-color: #B90710;
    transform: translateY(-1px);
}

.dia-btn-secundario {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.dia-btn-secundario:hover {
    background-color: #ffffff;
    color: #1A2530;
}

.logo-rcf {
    display: block;
    width: min(100%, 650px);
    height: auto;
    margin: 25px auto 30px;
}