/* =========================================================================
   Página "La Radio" (/la-radio) y mapa de Contáctenos.
   En mobile/tablet la página no es el escritorio encogido: pasa a ser un
   stack de tarjetas agrupadas, con la portada a sangre, carruseles con snap
   y botones de 50px, como una pantalla nativa.
   ========================================================================= */

.about-page {
    --about-gap: 62px;
    /* Las bandas a sangre se salen del .shell; clip evita el scroll horizontal
       del ancho de la barra de scroll sin romper position: sticky. */
    overflow-x: clip;
}

/* ---------- Portada ---------- */

.about-hero {
    position: relative;
    height: 460px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .92) 8%, rgba(0, 0, 0, .72) 48%, rgba(0, 0, 0, .35) 100%),
        var(--about-cover) center/cover no-repeat;
    background-color: #0b0b0c;
    color: #fff;
}

.about-hero > .shell > span {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}

.about-hero h1 {
    font-size: 51px;
    max-width: 780px;
    line-height: 1.05;
    margin: 16px 0 18px;
}

.about-hero p {
    max-width: 620px;
    margin: 0;
    color: #dcdcdf;
    font-size: 17px;
    line-height: 1.6;
}

/* ---------- Estructura ---------- */

.about-content {
    padding: 58px 0 72px;
}

.about-content > section + section,
.about-content > div + section,
.about-content > section + div {
    margin-top: var(--about-gap);
}

.about-content h2 {
    margin: 10px 0 16px;
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.about-content p {
    color: #3b3d43;
    font-size: 15px;
    line-height: 1.8;
}

.about-history > div > span,
.about-video-head > span {
    display: inline-block;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

/* ---------- Historia: texto + video de YouTube ---------- */

.about-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.about-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #0b0b0c;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.about-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Hitos ---------- */

.about-timeline h2 {
    margin-bottom: 30px;
    text-align: center;
}

/* Tarjetas sueltas: si la cantidad de hitos no llena la última fila no queda
   ningún hueco gris a la vista. */
.about-timeline ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-timeline li {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 12px;
}

.about-timeline b {
    display: block;
    color: var(--red);
    font-size: 22px;
    letter-spacing: -.01em;
}

.about-timeline span {
    display: block;
    margin-top: 6px;
    color: #4a4c52;
    font-size: 13px;
    line-height: 1.55;
}

/* ---------- Números ---------- */

.about-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    background: var(--red);
    color: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.about-numbers article {
    padding: 30px 18px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .22);
}

.about-numbers article:last-child {
    border-right: 0;
}

.about-numbers b {
    display: block;
    font-size: 38px;
    line-height: 1;
}

.about-numbers span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .88;
}

/* ---------- Video institucional: banda oscura a sangre ---------- */

.about-video {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: 58px 23px 62px;
    background: var(--ink);
    color: #fff;
    text-align: center;
}

.about-video-head {
    max-width: 680px;
    margin: 0 auto 32px;
}

.about-video-head h2 {
    color: #fff;
}

.about-video-head p {
    margin: 0;
    color: #bcbec4;
}

/* object-fit: contain para que el poster 16:9 entre completo y nunca se
   recorte, pase lo que pase con el ancho disponible. */
.about-video video,
.about-video iframe {
    display: block;
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 14px;
    background: #000;
    object-fit: contain;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
}

/* ---------- Voces ---------- */

.about-voices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.about-voices img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 14px;
}

/* ---------- Hoy ---------- */

.about-today {
    padding: 42px 46px;
    background: var(--soft);
    border-radius: 14px;
}

.about-today h2 {
    margin-top: 0;
}

.about-today > div {
    columns: 2;
    column-gap: 46px;
}

.about-today p {
    margin: 0 0 16px;
    break-inside: avoid;
}

/* ---------- Cierre ---------- */

.about-cta {
    position: relative;
    padding: 52px 40px 54px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(16, 17, 20, .9) 0%, rgba(16, 17, 20, .97) 100%),
        var(--about-cover) center/cover no-repeat;
    background-color: var(--ink);
    color: #fff;
    border-radius: 18px;
    text-align: center;
}

.about-cta > div:first-child {
    max-width: 620px;
    margin: 0 auto 26px;
}

.about-cta h2 {
    margin: 0 0 10px;
    font-size: 30px;
    color: #fff;
}

.about-cta p {
    margin: 0;
    color: #c8cace;
    font-size: 15.5px;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.about-cta-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .18s, border-color .18s, transform .12s;
}

.about-cta-actions a.is-primary {
    background: var(--red);
    border-color: var(--red);
}

.about-cta-actions a:active {
    transform: scale(.97);
}

@media (hover: hover) {
    .about-cta-actions a:hover {
        background: rgba(255, 255, 255, .14);
        border-color: rgba(255, 255, 255, .5);
    }

    .about-cta-actions a.is-primary:hover {
        background: var(--deep-red);
        border-color: var(--deep-red);
    }
}

/* ---------- Mapa de Contáctenos ---------- */

.contact-map {
    position: relative;
    margin-top: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    filter: grayscale(.25);
}

.contact-map-card {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 272px;
    padding: 22px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.contact-map-card span {
    display: block;
    color: var(--red);
    font-size: 22px;
    line-height: 1;
}

.contact-map-card b {
    display: block;
    margin: 10px 0 4px;
    font-size: 15px;
}

.contact-map-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.contact-map-card a {
    display: inline-flex;
    align-items: center;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================================
   Tablet ancha
   ========================================================================= */

@media (max-width: 1024px) {
    .about-page { --about-gap: 48px; }
    .about-hero { height: 400px; }
    .about-hero h1 { font-size: 42px; }
    .about-history,
    .about-voices { gap: 36px; }
    .about-video { padding: 48px 23px 52px; }
    .about-today { padding: 34px 32px; }
    .about-cta { padding: 42px 32px 44px; }
}

/* =========================================================================
   Tablet y mobile: stack de tarjetas agrupadas sobre fondo gris, al estilo
   de una lista "inset grouped" de iOS. Nada de 100vw acá: el gutter del
   .shell es exactamente 23px, así que margin-inline: -23px va a sangre sin
   sumar el ancho de la barra de scroll.
   ========================================================================= */

@media (max-width: 900px) {
    .about-page {
        --about-gap: 14px;
        background: #eef0f2;
    }

    /* Portada: foto a sangre con el texto apoyado abajo, como un header de app. */
    .about-hero {
        height: auto;
        min-height: 52vh;
        padding: 92px 0 30px;
        align-items: flex-end;
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .7) 52%, rgba(0, 0, 0, .95) 100%),
            var(--about-cover) center/cover no-repeat;
    }

    .about-hero h1 {
        font-size: 33px;
        margin: 14px 0 12px;
        letter-spacing: -.015em;
    }

    .about-hero p { font-size: 15px; line-height: 1.65; }

    .about-content { padding: 14px 0 30px; }
    .about-content h2 { font-size: 24px; margin: 8px 0 14px; }
    .about-content p { font-size: 15.5px; line-height: 1.72; }

    /* --- Cada bloque es una tarjeta --- */
    .about-history,
    .about-timeline,
    .about-voices,
    .about-today,
    .about-content > .rich-content {
        display: block;
        width: auto;
        margin-inline: 0;
        padding: 20px;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 1px 2px rgba(16, 17, 20, .07), 0 10px 24px rgba(16, 17, 20, .05);
        overflow: hidden;
    }

    /* Video y cierre: la misma tarjeta, pero oscura. Van aparte para no
       pisarles el fondo con el blanco de la regla de arriba. */
    .about-video,
    .about-cta {
        display: block;
        width: auto;
        margin-inline: 0;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 10px 26px rgba(16, 17, 20, .14);
    }

    /* Las tarjetas con media son columnas flex: así el video o la foto suben
       arriba de todo con order y el texto queda debajo, con su padding. */
    .about-history,
    .about-voices,
    .about-video {
        display: flex;
        flex-direction: column;
        padding-top: 0;
    }

    /* El media toca los bordes de la tarjeta. El ancho va explícito: con
       width:auto el <video> se planta en el tamaño del poster (1280px). */
    .about-history .about-embed,
    .about-voices img,
    .about-video video,
    .about-video iframe {
        order: -1;
        display: block;
        width: calc(100% + 40px);
        max-width: none;
        height: auto;
        margin: 0 -20px 18px;
        border-radius: 18px 18px 0 0;
        box-shadow: none;
    }

    .about-voices img {
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }

    .about-history > div > span,
    .about-video-head > span { font-size: 10.5px; }

    .about-history p:last-child,
    .about-voices p:last-child,
    .about-today p:last-child { margin-bottom: 0; }

    /* Video institucional: tarjeta oscura con el video arriba. */
    .about-video {
        padding: 0 20px 24px;
        background: var(--ink);
        text-align: left;
    }

    .about-video video,
    .about-video iframe { aspect-ratio: 16 / 9; }

    .about-video-head { max-width: none; margin: 0; }

    /* Hitos: carrusel horizontal con snap dentro de la tarjeta. */
    .about-timeline h2 { text-align: left; margin: 0 0 16px; }

    .about-timeline ol {
        display: flex;
        gap: 10px;
        margin: 0 -20px -4px;
        padding: 2px 20px 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .about-timeline ol::-webkit-scrollbar { display: none; }

    .about-timeline li {
        flex: 0 0 60%;
        max-width: 240px;
        padding: 16px 18px;
        background: #f7f8f9;
        border: 0;
        border-left: 3px solid var(--red);
        border-radius: 4px 14px 14px 4px;
        scroll-snap-align: start;
    }

    .about-timeline b { font-size: 20px; }

    /* Números: cuatro tiles rojos, sin tarjeta blanca detrás. */
    .about-numbers {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        background: none;
        border-radius: 0;
        overflow: visible;
    }

    .about-numbers article {
        padding: 20px 14px;
        border: 0;
        border-radius: 16px;
        background: var(--red);
        box-shadow: 0 8px 20px rgba(227, 6, 19, .22);
    }

    .about-numbers b { font-size: 30px; }
    .about-numbers span { font-size: 10.5px; }

    .about-today > div { columns: 1; }

    /* Cierre: tarjeta oscura con los botones apilados a todo el ancho. */
    .about-cta {
        padding: 26px 20px 24px;
        text-align: center;
    }

    .about-cta > div:first-child { margin: 0 0 18px; }
    .about-cta h2 { font-size: 23px; }
    .about-cta p { font-size: 15px; }

    .about-cta-actions { flex-direction: column; gap: 10px; }

    .about-cta-actions a {
        width: 100%;
        min-height: 52px;
        padding: 0 18px;
        border-radius: 14px;
        font-size: 15px;
    }

    /* Mapa: tarjeta con el mapa arriba y la ficha apoyada encima del borde. */
    .contact-map {
        border: 0;
        border-radius: 18px;
        box-shadow: 0 1px 2px rgba(16, 17, 20, .07), 0 10px 24px rgba(16, 17, 20, .05);
    }

    .contact-map iframe { height: 42vh; min-height: 260px; filter: none; }

    .contact-map-card {
        position: relative;
        top: -18px;
        left: 0;
        width: auto;
        margin: 0 14px -18px;
        padding: 18px 20px;
        border-radius: 16px;
    }

    .contact-map-card a {
        justify-content: center;
        width: 100%;
        min-height: 50px;
        margin-top: 2px;
        border-radius: 14px;
        background: var(--red);
        color: #fff;
        font-size: 15px;
    }

    .contact-map-card a:active { transform: scale(.98); }
}

/* -------------------------------------------------------------------------
   Tablet angosta (iPad retrato): la tarjeta es ancha, así que el texto va
   al lado del media para que el renglón no mida 90 caracteres.
   ------------------------------------------------------------------------- */

@media (min-width: 681px) and (max-width: 900px) {
    /* Historia: el video va arriba a todo el ancho y el texto abajo en dos
       columnas, como una nota de revista. Puesto al costado, el 16:9 deja un
       hueco blanco enorme contra una columna de texto mucho más alta. */
    .about-history { display: flex; flex-direction: column; padding: 0 0 26px; }

    .about-history .about-embed {
        width: 100%;
        margin: 0 0 22px;
        border-radius: 18px 18px 0 0;
    }

    .about-history > div {
        padding: 0 26px;
        columns: 2;
        column-gap: 30px;
    }

    .about-history > div > span,
    .about-history > div > h2 { column-span: all; }

    .about-history p { margin: 0 0 14px; break-inside: avoid; }

    /* Voces: la foto sí estira a lo alto, así que puede ir al costado. */
    .about-voices {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: stretch;
        padding: 0;
    }

    .about-voices > div {
        order: -1;
        align-self: center;
        padding: 26px;
    }

    .about-voices img {
        order: 0;
        width: 100%;
        height: 100%;
        min-height: 320px;
        margin: 0;
        aspect-ratio: auto;
        border-radius: 0 18px 18px 0;
    }

    .about-video { padding: 0 26px 26px; }
    .about-video video,
    .about-video iframe { width: calc(100% + 52px); margin: 0 -26px 22px; }

    .about-timeline,
    .about-today,
    .about-cta { padding: 26px; }

    .about-timeline ol { margin: 0 -26px -4px; padding: 2px 26px 10px; }
    .about-timeline li { flex-basis: 38%; max-width: 250px; }

    .about-numbers { grid-template-columns: repeat(4, 1fr); }

    .about-cta { padding: 34px 26px 32px; }
    .about-cta h2 { font-size: 26px; }
    .about-cta-actions { flex-direction: row; }
    .about-cta-actions a { width: auto; flex: 1 1 180px; }
}

/* =========================================================================
   Mobile
   ========================================================================= */

@media (max-width: 600px) {
    .about-hero { min-height: 46vh; padding: 76px 0 26px; }
    .about-hero h1 { font-size: 28px; }
    .about-content h2 { font-size: 22px; }
    .about-timeline li { flex-basis: 70%; }
}
