/* =========================================================
   PÁGINA "LO QUE DISTRIBUIMOS"
   1) Carrusel de 3 banners grandes que rotan
   2) Bloques de GIF vertical + texto, alternados (zigzag)
   ========================================================= */

/* ---------- 1) Carrusel de banners ---------- */
.dist-banners {
    position: relative;
    width: 100%;
    aspect-ratio: 2000 / 900;   /* misma proporción que las imágenes (20:11) */
    max-height: 93vh;            /* tope: no ocupa más del 70% del alto de la pantalla */
    overflow: hidden;
    margin: 0 auto;
}
/* al limitar la altura, la imagen se centra sin recortarse feo */
.dist-banner { background-position: center; }

.dist-banner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* degradado de respaldo, se ve si el banner no tiene imagen aún */
    background-color: var(--navy-900);
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s;
}
.dist-banner.activo { opacity: 1; visibility: visible; }

/* si el banner no tiene imagen, un degradado de marca de fondo */
.dist-banner.sin-img { background-image: linear-gradient(135deg, #14395f, #0b2447 60%, #071a30); }

.dist-banner-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    color: #fff;
}
.dist-banner-eyebrow {
    display: inline-block;
    color: var(--gold-500);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .82rem;
    margin-bottom: 16px;
}
.dist-banner h2 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    max-width: 16ch;
    margin-bottom: 18px;
    line-height: 1.15;
}
.dist-banner p {
    color: #d5e0f0;
    font-size: 1.1rem;
    max-width: 48ch;
    margin-bottom: 28px;
}

/* puntitos indicadores del carrusel */
.dist-puntos {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.dist-puntos button {
    width: 10px; height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background .25s ease, width .25s ease;
}
.dist-puntos button.activo { background: var(--gold-500); width: 28px; border-radius: 999px; }

/* flechas laterales */
.dist-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(6, 16, 33, .35);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background .2s ease, border-color .2s ease;
}
.dist-flecha:hover { background: rgba(6, 16, 33, .6); border-color: #fff; }
.dist-flecha.prev { left: 22px; }
.dist-flecha.next { right: 22px; }

@media (max-width: 700px) {
    .dist-banners { height: 68vh; }
    .dist-banner-inner { padding: 0 24px; }
    .dist-flecha { display: none; }
}

/* ---------- 2) Bloques de GIF vertical + texto (alternados) ---------- */
.dist-bloques {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* En el HTML el orden es: .dist-gif primero, .dist-texto después.
   Base (bloques impares): GIF a la izquierda (40%) | TEXTO a la derecha (60%). */
.dist-bloque {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 48px;
    align-items: center;
}
.dist-bloque .dist-gif   { order: 1; }
.dist-bloque .dist-texto { order: 2; }

/* Bloques pares: se invierte -> TEXTO a la izquierda (60%) | GIF a la derecha (40%). */
.dist-bloque:nth-child(even) {
    grid-template-columns: 60% 40%;
}
.dist-bloque:nth-child(even) .dist-gif   { order: 2; }
.dist-bloque:nth-child(even) .dist-texto { order: 1; }

.dist-gif {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;              /* vertical */
    background: linear-gradient(135deg, #14395f, #0b2447 60%, #071a30);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;                  /* mismo tamaño para los dos recuadros */
    margin: 0 auto;
}
.dist-gif img,
.dist-gif video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dist-texto h3 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    color: var(--navy-900);
    margin-bottom: 16px;
}
.dist-texto h3::after {
    content: '';
    display: block;
    width: 52px; height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--gold-500), var(--sky-400));
}
.dist-texto p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
    text-align: justify;
    margin: 0;
}

/* en móvil todo se apila: gif arriba, texto abajo (sin alternar) */
@media (max-width: 800px) {
    .dist-bloque,
    .dist-bloque:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .dist-bloque:nth-child(even) .dist-gif   { order: 0; }
    .dist-bloque:nth-child(even) .dist-texto { order: 0; }
    .dist-gif { max-width: 300px; }
}