﻿/* ===========================================================
   red-nosotros.css
   Estilos de la sección NOSOTROS, separada de La Rioja en Red.
   Contiene TODO lo que antes vivía en red-larioja.css desde
   "Cómo opera la red" hacia abajo: Misión y visión, Cómo opera
   la red, Programas de la Red (bloque comentado, por si se
   reactiva), Segmentos objetivo, Sumate a la Red, De la propuesta
   al producto comercial (roadmap), CTA buscador IA y Cierre
   institucional.
   Se carga junto a red-larioja.css (comparten paleta/variables
   de color, no duplica nada de esa hoja) solo en la vista de
   Nosotros.
=========================================================== */

/* =========================================================
   Misión y visión — versión flotante, sin recuadros.
   ========================================================= */

.red-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 30px;
    position: relative;
}

    /* línea vertical separando las 2 columnas */
    .red-mv-grid::after {
        content: "";
        position: absolute;
        top: 6px;
        bottom: 6px;
        left: 50%;
        width: 1px;
        background: linear-gradient(to bottom, transparent, #D4AF37, transparent);
    }

.red-mv-card {
    position: relative;
    background: none;
    border: none;
    box-shadow: none;
    padding: 10px 40px;
    overflow: hidden;
}

    .red-mv-card:first-child {
        padding-left: 0;
    }

    .red-mv-card:last-child {
        padding-right: 0;
    }

.red-mv-icono-fondo {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 6rem;
    color: #8B1D1D;
    opacity: .06;
    pointer-events: none;
}

.red-mv-card:last-child .red-mv-icono-fondo {
    right: auto;
    left: 10px;
}

.red-mv-tag {
    display: inline-block;
    background: none;
    color: #8B1D1D;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0;
    margin-bottom: 10px;
    position: relative;
}

    .red-mv-tag::after {
        content: "";
        display: block;
        width: 38px;
        height: 3px;
        background: #D4AF37;
        margin-top: 8px;
        border-radius: 2px;
    }

.red-mv-card p {
    color: #4a4438;
    font-size: .95rem;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

.red-mv-principios {
    margin-top: 34px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

    .red-mv-principios span {
        background: #fdfaf3;
        border: 1px solid #D4AF37;
        color: #6e1616;
        font-size: .76rem;
        font-weight: 700;
        letter-spacing: .3px;
        padding: 6px 16px;
        border-radius: 999px;
        box-shadow: 0 3px 8px rgba(139, 29, 29, .08);
        transition: transform .2s ease, box-shadow .2s ease;
    }

        .red-mv-principios span:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(212, 175, 55, .3);
            background: #fff;
        }

@media (max-width: 767px) {
    .red-mv-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

        .red-mv-grid::after {
            display: none;
        }

    .red-mv-card,
    .red-mv-card:first-child,
    .red-mv-card:last-child {
        padding: 0 6px;
    }

    .red-mv-icono-fondo {
        font-size: 4.5rem;
    }
}

/* =========================================================
   Título de sección genérico (reutilizado en varios bloques
   de Nosotros). Si ya lo tenés global en red-larioja.css y lo
   dejaste cargado en esta vista también, esta regla es redundante
   pero inofensiva (mismos valores).
   ========================================================= */
.red-seccion-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #3a352c;
    margin-bottom: 4px;
}

.red-seccion-subtitulo {
    color: #7a7266;
    font-size: .88rem;
    margin-bottom: 18px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Cómo opera la red — timeline zigzag ===== */
.red-modelo-wrapper {
    margin-top: 90px !important;
    margin-bottom: 20px;
    text-align: center;
}

.red-modelo-timeline {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 46px 24px 56px;
    max-width: 900px;
    margin: 0 auto;
}

    .red-modelo-timeline::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 30px;
        right: 30px;
        height: 3px;
        background: linear-gradient(90deg, #D4AF37, #8B1D1D 50%, #D4AF37);
        transform: translateY(-50%);
        border-radius: 3px;
        z-index: 0;
    }

.red-modelo-item {
    position: relative;
    flex: 0 1 172px;
    min-width: 0;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity .6s ease, transform .6s ease;
}

.red-modelo-item-top {
    justify-content: flex-end;
    padding-bottom: 22px;
    transform: translateY(22px);
}

.red-modelo-item-bottom {
    justify-content: flex-start;
    padding-top: 22px;
    transform: translateY(-22px);
}

.red-modelo-item-top .red-modelo-nodo {
    order: -1;
}

.red-modelo-timeline.en-vista .red-modelo-item {
    opacity: 1;
    transform: translateY(0);
}

.red-modelo-timeline .red-modelo-item:nth-child(1),
.red-modelo-timeline .red-modelo-item:nth-child(1) .red-modelo-nodo {
    transition-delay: .05s;
}

.red-modelo-timeline .red-modelo-item:nth-child(2),
.red-modelo-timeline .red-modelo-item:nth-child(2) .red-modelo-nodo {
    transition-delay: .18s;
}

.red-modelo-timeline .red-modelo-item:nth-child(3),
.red-modelo-timeline .red-modelo-item:nth-child(3) .red-modelo-nodo {
    transition-delay: .31s;
}

.red-modelo-timeline .red-modelo-item:nth-child(4),
.red-modelo-timeline .red-modelo-item:nth-child(4) .red-modelo-nodo {
    transition-delay: .44s;
}

.red-modelo-timeline .red-modelo-item:nth-child(5),
.red-modelo-timeline .red-modelo-item:nth-child(5) .red-modelo-nodo {
    transition-delay: .57s;
}

.red-modelo-nodo {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #c9302c, #6e1616 85%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(139, 29, 29, .45), inset 0 2px 3px rgba(255, 255, 255, .25);
    border: 4px solid #fff;
    z-index: 2;
    margin-bottom: -19px;
    transform: scale(0);
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}

.red-modelo-timeline.en-vista .red-modelo-nodo {
    transform: scale(1);
}

.red-modelo-card {
    position: relative;
    width: 100%;
    max-width: 190px;
    text-align: center;
    background: linear-gradient(160deg, #ffffff 0%, #fdf6ec 55%, #f6e6cf 100%);
    border-radius: 16px;
    padding: 18px 14px 16px;
    border: 1px solid rgba(212, 175, 55, .35);
    box-shadow: 0 14px 26px rgba(139, 29, 29, .14), 0 4px 10px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 1;
}

    .red-modelo-card:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 22px 36px rgba(139, 29, 29, .22), 0 8px 18px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
    }

    .red-modelo-card h4,
    .red-modelo-card .red-modelo-titulo {
        font-size: .95rem;
        font-weight: 800;
        color: #6e1616;
        margin: 0 0 6px;
    }

    .red-modelo-card p,
    .red-modelo-card .red-modelo-texto {
        font-size: .8rem;
        color: #555;
        margin: 0;
        line-height: 1.35;
    }

.red-modelo-item-top .red-modelo-card::after,
.red-modelo-item-bottom .red-modelo-card::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 22px;
    transform: translateX(-50%);
}

.red-modelo-item-top .red-modelo-card::after {
    bottom: -22px;
    background: linear-gradient(180deg, rgba(139, 29, 29, .4), rgba(139, 29, 29, 0));
}

.red-modelo-item-bottom .red-modelo-card::after {
    top: -22px;
    background: linear-gradient(0deg, rgba(139, 29, 29, .4), rgba(139, 29, 29, 0));
}

/* punto de luz que recorre la línea, creado dinámicamente por
   initModeloTimeline() en el JS */
.red-modelo-pulso {
    position: absolute;
    top: 50%;
    left: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #D4AF37 55%, #8B1D1D);
    box-shadow: 0 0 10px 3px rgba(212, 175, 55, .7), 0 0 18px 6px rgba(139, 29, 29, .35);
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}

.red-modelo-timeline.en-vista .red-modelo-pulso {
    opacity: 1;
    animation: redModeloPulso 3.4s ease-in-out infinite;
    animation-delay: .9s;
}

@keyframes redModeloPulso {
    0% {
        left: 30px;
    }

    100% {
        left: calc(100% - 30px);
    }
}

/* variante vertical del pulso, usada en mobile */
@keyframes redModeloPulsoVertical {
    0% {
        top: 14px;
    }

    100% {
        top: calc(100% - 14px);
    }
}

/* =========================================================
   MOBILE: línea vertical a la derecha, tarjeta a la izquierda
   y número como insignia sobre el borde derecho de la tarjeta,
   apoyado sobre la línea. El pulso pasa a recorrer la línea
   de arriba hacia abajo (antes estaba oculto en mobile).
   ========================================================= */
@media (max-width: 820px) {
    .red-modelo-timeline {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 16px 24px 16px;
        gap: 30px;
        max-width: 420px;
    }

        .red-modelo-timeline::before {
            top: 14px;
            bottom: 14px;
            left: auto;
            right: 23px;
            width: 3px;
            height: auto;
            background: linear-gradient(180deg, #D4AF37, #8B1D1D 50%, #D4AF37);
            transform: none;
        }

    .red-modelo-item,
    .red-modelo-item-top,
    .red-modelo-item-bottom {
        height: auto;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 46px;
        align-items: center;
        column-gap: 14px;
        transform: none;
        flex-basis: auto;
        justify-content: initial;
    }

    /* ubicación explícita por columna: la tarjeta siempre a la izquierda,
       el número siempre a la derecha, sin importar el orden en el HTML */
    .red-modelo-card {
        grid-column: 1;
        grid-row: 1;
    }

    .red-modelo-item-top .red-modelo-nodo,
    .red-modelo-nodo {
        grid-column: 2;
        grid-row: 1;
        order: 0;
        margin-bottom: 0;
        justify-self: center;
    }

    .red-modelo-card {
        max-width: none;
        text-align: left;
    }

    .red-modelo-item-top .red-modelo-card::after,
    .red-modelo-item-bottom .red-modelo-card::after {
        display: none;
    }

    /* el pulso ahora recorre la línea vertical, de arriba a abajo */
    .red-modelo-pulso {
        top: 14px;
        left: auto;
        right: 23px;
        transform: translate(50%, -50%);
    }

    .red-modelo-timeline.en-vista .red-modelo-pulso {
        animation-name: redModeloPulsoVertical;
    }
}

/* ===== Programas de la Red (bloque HTML comentado por ahora;
   la CSS queda lista para cuando se reactive) ===== */
.red-programas-wrapper {
    text-align: center;
    margin-bottom: 8px;
}

.red-programas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
    margin-bottom: 8px;
    text-align: left;
}

.red-programa-card {
    border-radius: 18px;
    padding: 0;
    background: #fff;
    border: 1px solid #e8e2d6;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    transition: box-shadow .2s ease, transform .2s ease;
}

    .red-programa-card:hover {
        box-shadow: 0 14px 28px rgba(0, 0, 0, .1);
        transform: translateY(-3px);
    }

.red-programa-header {
    background: linear-gradient(120deg, #8B1D1D 0%, #6e1616 60%, #4a1010 100%);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
}

    .red-programa-header::after {
        content: "\f5a0";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: -10px;
        bottom: -18px;
        font-size: 5rem;
        color: rgba(255, 255, 255, .08);
    }

.red-programa-duracion {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    color: #4a1010;
    background: #D4AF37;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.red-programa-titulo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 1;
}

.red-programa-cuerpo {
    padding: 20px 22px;
}

.red-programa-recorrido {
    font-size: .84rem;
    color: #6b6257;
    line-height: 1.5;
    margin-bottom: 16px;
}

.red-programa-timeline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 18px;
}

.red-programa-timeline-punto {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.red-programa-timeline-linea {
    flex: 1;
    height: 2px;
    background: #ece5d6;
}

.red-programa-zonas-label {
    display: flex;
    justify-content: space-between;
    font-size: .68rem;
    font-weight: 700;
    color: #8a8171;
    margin-bottom: 16px;
}

.red-programa-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.red-programa-segmento {
    font-size: .72rem;
    color: #8a8171;
}

.red-programa-btn {
    font-size: .82rem;
    font-weight: 700;
    background: #8B1D1D;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 999px;
    white-space: nowrap;
}

    .red-programa-btn:hover {
        background: #6e1616;
    }

/* ===== Segmentos objetivo — acordeón ===== */
.red-segmentos-wrapper {
    margin-top: 110px !important;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 575px) {
    .red-segmentos-wrapper {
        margin-top: 70px !important;
    }
}

.red-acordeon {
    max-width: 720px;
    margin: 24px auto 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.red-acordeon-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    overflow: hidden;
    transition: box-shadow .2s ease;
}

    .red-acordeon-item.active {
        box-shadow: 0 10px 28px rgba(139, 29, 29, .12);
    }

.red-acordeon-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    padding: 16px 18px;
    cursor: pointer;
    text-align: left;
}

.red-acordeon-icono {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f7ece2;
    color: #8B1D1D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .2s ease, color .2s ease;
}

.red-acordeon-item.active .red-acordeon-icono {
    background: #8B1D1D;
    color: #fff;
}

.red-acordeon-titulo {
    flex: 1;
    font-size: .92rem;
    font-weight: 700;
    color: #3a352c;
}

.red-acordeon-chevron {
    color: #8a8171;
    transition: transform .25s ease;
}

.red-acordeon-item.active .red-acordeon-chevron {
    transform: rotate(180deg);
    color: #8B1D1D;
}

.red-acordeon-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.red-acordeon-body-inner {
    padding: 0 18px 18px 72px;
}

    .red-acordeon-body-inner p {
        font-size: .84rem;
        color: #6b6257;
        line-height: 1.5;
        margin: 0;
    }

.red-embudo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}

    .red-embudo span {
        font-size: .74rem;
        font-weight: 700;
        color: #5a5344;
        background: #f2efe9;
        padding: 6px 12px;
        border-radius: 999px;
    }

    .red-embudo i {
        color: #D4AF37;
        font-size: .7rem;
    }

/* ===== Sumate a la Red ===== */
.red-unite-wrapper {
    margin: 40px auto;
}

.red-unite-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: linear-gradient(135deg, #1f1c17 0%, #2a2620 100%);
    border-radius: 20px;
    overflow: hidden;
}

.red-unite-texto {
    padding: 36px 34px;
}

.red-unite-titulo {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.red-unite-parrafo {
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
    line-height: 1.55;
    margin-bottom: 22px;
}

.red-unite-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D4AF37;
    color: #2a2620;
    font-weight: 700;
    font-size: .88rem;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
}

    .red-unite-cta:hover {
        background: #e6c455;
        color: #2a2620;
    }

.red-unite-beneficios {
    background: rgba(255, 255, 255, .04);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.red-unite-beneficios-6 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.red-unite-beneficio {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

    .red-unite-beneficio i {
        color: #D4AF37;
        font-size: 1.15rem;
        margin-top: 2px;
        flex: 0 0 auto;
        width: 20px;
        text-align: center;
    }

    .red-unite-beneficio strong {
        display: block;
        color: #fff;
        font-size: .85rem;
        margin-bottom: 2px;
    }

    .red-unite-beneficio span {
        color: rgba(255, 255, 255, .65);
        font-size: .76rem;
        line-height: 1.4;
    }

@media (max-width: 767px) {
    .red-unite-card {
        grid-template-columns: 1fr;
    }

    .red-unite-beneficios {
        padding: 26px 28px 34px;
    }

    .red-unite-beneficios-6 {
        grid-template-columns: 1fr;
    }
}

/* ===== CTA buscador IA =====
   OJO: esta sección depende del JS de búsqueda IA del Home
   (formBusquedaIa / resultados.js / mostrarTabResultadosIA) para
   que los chips funcionen. Si esta página Nosotros no carga esos
   scripts, los chips van a quedar visualmente bien pero sin acción
   al hacer click — avisame si querés que los conecte también acá
   o que se saquen de esta sección movida. */
.red-ia-cta {
    text-align: center;
    padding: 28px 16px 8px;
}

.red-ia-cta-titulo {
    font-weight: 700;
    color: #3a352c;
    margin-bottom: 14px;
}

.red-ia-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.red-ia-chip {
    background: #fff;
    border: 1.5px solid #D4AF37;
    color: #8B1D1D;
    font-size: .82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all .2s ease;
}

    .red-ia-chip:hover {
        background: #D4AF37;
        color: #fff;
    }

/* ===== Cierre institucional ===== */
.red-cierre {
    text-align: center;
    padding: 50px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #1f1c17 0%, #2a2620 100%);
    border-radius: 20px;
}

.red-cierre-titulo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 14px;
}

.red-cierre-sub {
    font-size: .88rem;
    color: rgba(255,255,255,.7);
    max-width: 480px;
    margin: 0 auto;
}

/* =========================================================
   "DE LA PROPUESTA AL PRODUCTO COMERCIAL" — abanico de tarjetas 3D
   con flechas conectoras entre pasos consecutivos.
   ========================================================= */

.red-roadmap-wrapper {
    margin: 100px auto 40px !important;
    text-align: center;
}

.red-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px 40px;
    max-width: 1020px;
    margin: 34px auto 0;
    text-align: left;
}

.red-roadmap-card {
    position: relative;
    background: linear-gradient(160deg, #fdfaf3 0%, #f7ecd8 55%, #f0e0bd 100%);
    border: 1px solid rgba(212, 175, 55, .4);
    border-radius: 18px;
    padding: 22px 20px 22px;
    box-shadow: 0 14px 26px rgba(40, 20, 10, .12), 0 4px 10px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: visible;
}

    .red-roadmap-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 38px rgba(139, 29, 29, .18), 0 8px 16px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .8);
    }

    /* flecha conectora entre pasos consecutivos de la misma fila
   (1→2, 2→3, 4→5, 5→6). El último de cada fila (3 y 6) no la lleva */
    .red-roadmap-card:not(:nth-child(3n))::after {
        content: "\f061";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 44px;
        right: 0;
        transform: translate(50%, -50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid #D4AF37;
        color: #8B1D1D;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .62rem;
        z-index: 3;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    }

.red-roadmap-ghost {
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(139, 29, 29, .10);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
}

.red-roadmap-card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.red-roadmap-icono {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #c9302c, #6e1616 85%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(139, 29, 29, .35), inset 0 2px 3px rgba(255, 255, 255, .25);
}

.red-roadmap-card-header strong {
    font-size: .98rem;
    font-weight: 800;
    color: #3a352c;
    line-height: 1.3;
}

.red-roadmap-card > span {
    position: relative;
    display: block;
    font-size: .84rem;
    color: #6b6257;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .red-roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 36px;
    }

    /* en 2 columnas la última de cada fila es la de índice par (2,4,6) */
    .red-roadmap-card:not(:nth-child(3n))::after {
        display: none;
    }

    .red-roadmap-card:nth-child(odd)::after {
        content: "\f061";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 44px;
        right: 0;
        transform: translate(50%, -50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid #D4AF37;
        color: #8B1D1D;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .62rem;
        z-index: 3;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    }
}

@media (max-width: 560px) {
    .red-roadmap-grid {
        grid-template-columns: 1fr;
        gap: 40px 0;
    }

    /* en 1 columna no hay flechas horizontales entre pasos */
    .red-roadmap-card::after,
    .red-roadmap-card:nth-child(odd)::after,
    .red-roadmap-card:not(:nth-child(3n))::after {
        content: "\f063";
        top: auto;
        bottom: -30px;
        right: 50%;
        transform: translate(50%, 0);
    }

    .red-roadmap-card:last-child::after {
        display: none;
    }
}

/* ===== Responsive general (reglas que no tenían ya su propio
   @media dentro del bloque correspondiente) ===== */
@media (max-width: 767px) {
    .red-cierre-titulo {
        font-size: 1.25rem;
    }
}
