html,
body {
    overflow-x: clip;
}

.rt-page,
.rt-page * {
    box-sizing: border-box;
}

.rt-page {
    font-family: Lato, sans-serif;
    color: #1a1a1a;
    background: #fff;
}

.rt-page .rt-hero,
.rt-page .rt-seccion,
.rt-page .rt-contacto {
    margin: 0;
    min-height: 0;
    scroll-margin-top: 110px;
}

.rt-page .rt-seccion,
.rt-page .rt-contacto {
    max-width: 1440px;
    margin: 0 auto;
}

.rt-contenedor {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 70px;
}

.rt-page .rt-seccion {
    display: block;
    padding: 60px 0;
}

.rt-page .rt-titulo {
    font-family: Lato, sans-serif !important;
    font-weight: 700;
    font-size: 39.09px;
    line-height: 1.2;
    letter-spacing: -0.5864px;
    color: #1a1a1a;
    text-transform: none;
    margin: 0;
}

.rt-page .rt-titulo-card {
    font-family: Lato, sans-serif !important;
    font-weight: 700;
    font-size: 31.25px;
    line-height: 1.2;
    letter-spacing: -0.4688px;
    color: #1a1a1a;
    text-transform: none;
    margin: 0;
}

.rt-page .rt-subtitulo {
    font-weight: 700;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.375px;
    margin: 0;
}

.rt-contenido {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.24px;
    color: #1a1a1a;
}

.rt-contenido-18 {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.27px;
}

.rt-contenido p,
.rt-contenido ul,
.rt-contenido ol {
    margin: 0 0 24px;
}

.rt-contenido > :last-child {
    margin-bottom: 0;
}

.rt-page .rt-contenido p,
.rt-page .rt-contenido li {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.rt-page .rt-contenido li {
    margin: 0;
    padding: 0;
}

.rt-contenido ul,
.rt-contenido ol {
    padding-left: 24px;
}

.rt-contenido ul {
    list-style: disc;
}

.rt-contenido ol {
    list-style: decimal;
}

.rt-page .rt-postulacion-card .rt-contenido ol li + li {
    margin-top: 24px;
}

.rt-contenido strong,
.rt-contenido b {
    font-weight: 700;
}

.rt-page .rt-contenido a {
    margin: 0;
    padding: 0;
    color: inherit;
    font-style: normal;
    font-weight: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
}

.rt-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rt-icono img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.rt-icono-17 {
    width: 17px;
    height: 17px;
}

.rt-icono-24 {
    width: 24px;
    height: 24px;
}

.rt-icono-32 {
    width: 32px;
    height: 32px;
}

.rt-icono-33 {
    width: 33px;
    height: 33px;
}

.rt-icono-21 {
    width: 20.9px;
    height: 20.9px;
}

.rt-page .rt-boton {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 100px;
    font-family: Lato, sans-serif;
    cursor: pointer;
    background: #ffb800;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.24px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.rt-page .rt-boton:hover,
.rt-page .rt-boton:focus {
    background: #e6a600;
    color: #1a1a1a;
    text-decoration: none;
}

.rt-page .rt-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 518px;
    padding: 208px 70px 60px;
    overflow: hidden;
}

.rt-hero-imagen,
.rt-hero-imagen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rt-hero-imagen img {
    object-fit: cover;
    object-position: 50% 12%;
}

.rt-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(102, 102, 102, 0) 37.5%, rgba(102, 102, 102, 0.7) 70.192%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.rt-hero-contenido {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.rt-page .rt-hero-titulo {
    font-family: Lato, sans-serif !important;
    font-weight: 700;
    font-size: 61.04px;
    line-height: 1.2;
    letter-spacing: -0.9156px;
    color: #fff;
    text-transform: none;
    max-width: 640px;
    margin: 0;
}

.rt-hero-subtitulo {
    font-weight: 600;
    font-size: 25px;
    line-height: 1.2;
    color: #fff;
    max-width: 640px;
    margin: -10px 0 0;
}

.rt-menu {
    background: #000;
    padding: 16px 70px;
}

.rt-menu-toggle {
    display: none;
}

.rt-menu-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 40px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1300px;
}

.rt-menu-lista a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.27px;
    text-decoration: none;
}

.rt-menu-lista a:hover,
.rt-menu-lista a:focus {
    color: #ffb800;
    text-decoration: none;
}

.rt-page .rt-bienvenida {
    padding: 50px 0;
}

.rt-bienvenida-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.rt-bienvenida-texto {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rt-bienvenida-texto .rt-contenido {
    color: #000;
}

.rt-bienvenida-imagen {
    flex: 0 0 620px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.rt-bienvenida-imagen img,
.rt-postulacion-imagen,
.rt-contacto-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px;
}

.rt-page .rt-postulacion {
    background: #fffcea;
}

.rt-postulacion .rt-titulo {
    margin-bottom: 30px;
}

.rt-postulacion-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rt-postulacion-imagen {
    height: 220px;
    border-radius: 20px;
}

.rt-postulacion-card .rt-titulo-card {
    margin-bottom: 6px;
}

.rt-page .rt-postula {
    display: flex;
    flex-direction: row;
    max-width: 1440px;
    min-height: 0;
    margin: 0 auto;
    background: #f9f7f7;
    scroll-margin-top: 110px;
}

.rt-postula-imagen {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
}

.rt-page .rt-postula-imagen img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rt-postula-imagen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.3) 20.673%, rgba(102, 102, 102, 0.18) 37.5%);
    pointer-events: none;
}

.rt-postula-texto {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 60px;
}

.rt-page .rt-postula-contenido {
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0;
}

.rt-page .rt-postula-boton {
    height: 44px;
    padding: 0 25px;
    color: #000;
}

/* Botón flotante: reintegros.js lo mueve junto al botón de accesibilidad (UserWay).
   Si UserWay no carga, queda fijo abajo a la derecha. */
.rt-flotante {
    position: fixed;
    right: 19px;
    bottom: 13px;
    z-index: 2147483000;
}

.userway_buttons_wrapper.rt-con-flotante {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
}

a.rt-flotante-boton {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 40px;
    background: #ffb800;
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.15));
    color: #000;
    font-family: Lato, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.userway_buttons_wrapper a.rt-flotante-boton {
    margin-right: 10px;
}

a.rt-flotante-boton:hover,
a.rt-flotante-boton:focus {
    background: #e6a600;
    color: #000;
    text-decoration: none;
}

.rt-etapas-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 90px;
}

.rt-etapas-intro .rt-contenido {
    color: #000;
}

.rt-timeline {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.rt-page .rt-etapa {
    display: contents;
    margin: 0;
    padding: 0;
}

.rt-etapa-titulo {
    grid-row: 1;
    align-self: end;
    padding: 0 10px;
    font-weight: 700;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.375px;
    text-align: center;
}

.rt-etapa-marca {
    grid-row: 2;
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.rt-etapa:not(:last-child) .rt-etapa-marca::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 7px;
    background: #ffb800;
    transform: translateY(-50%);
}

.rt-etapa-circulo {
    position: relative;
    z-index: 1;
    display: flex;
    padding: 16.41px;
    border: 4px solid #ffb800;
    border-radius: 50%;
    background: #fff;
}

.rt-etapa-fecha {
    grid-row: 3;
    padding: 20px 10px 0;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    text-align: center;
}

.rt-etapa-fecha:empty {
    display: none;
}

.rt-page .rt-video {
    background: #f4f4f4;
    padding: 70px 0;
}

.rt-video-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.rt-video-intro .rt-contenido {
    color: #000;
}

.rt-video-marco {
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 800 / 504;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.rt-video-marco iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.rt-ecosistema .rt-titulo {
    margin-bottom: 40px;
}

.rt-ecosistema-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rt-ecosistema-card .rt-contenido {
    flex-grow: 1;
}

.rt-ecosistema-cabecera {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rt-ecosistema-circulo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1.5px solid #ffb800;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.rt-page .rt-contacto {
    display: flex;
    flex-direction: row;
    padding: 0;
}

.rt-contacto-info {
    flex: 0 0 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 60px 70px;
    background: #f4f4f4;
}

.rt-contacto-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rt-contacto-lista {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rt-page .rt-contacto-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 9px rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    text-decoration: none;
}

.rt-contacto-etiqueta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.27px;
}

.rt-contacto-numero {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    text-decoration: underline;
    white-space: nowrap;
}

.rt-page .rt-contacto-enlace {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.27px;
    text-decoration: underline;
}

.rt-contacto-imagen {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.rt-page .rt-contacto-imagen img {
    position: absolute;
    inset: 0;
}

html.rt-modal-abierto {
    overflow: hidden;
}

.rt-modal {
    width: 781px;
    max-width: calc(100% - 32px);
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 30px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: #1a1a1a;
    font-family: Lato, sans-serif;
    overflow: auto;
}

.rt-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.rt-modal-cerrar {
    position: absolute;
    top: 10px;
    right: 13px;
    display: flex;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.rt-modal-cabecera {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-right: 24px;
}

.rt-page .rt-modal-circulo {
    width: 38px;
    height: 38px;
    border-width: 0.95px;
}

.rt-page .rt-modal-contenido p,
.rt-page .rt-modal-contenido ul,
.rt-page .rt-modal-contenido ol {
    margin-bottom: 24px;
}

.rt-page .rt-modal-contenido > :last-child {
    margin-bottom: 0;
}

.rt-modal-contenido ol {
    list-style: decimal;
}

.rt-page .rt-modal-contenido .rt-texto-18 {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.27px;
}

.rt-page .rt-modal-contenido .rt-texto-18:first-child {
    margin-bottom: 20px;
}

.rt-page .rt-modal-contenido a {
    color: #4a88ed;
}

.rt-programa {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.rt-page .rt-programa h4 {
    margin: 0 0 8px;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.27px;
    color: #1a1a1a;
    text-transform: none;
}

.rt-page .rt-programa p {
    margin: 0 0 5px;
    color: #000;
}

.rt-page .rt-modal-contenido a.rt-enlace-externo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
}

.rt-enlace-externo::after {
    content: "";
    width: 17px;
    height: 17px;
    background: url("images/icon-enlace-externo.svg") center / 14px 14px no-repeat;
}

@media (max-width: 1199px) {
    .rt-bienvenida-imagen {
        flex-basis: 45%;
    }

    .rt-grid {
        gap: 40px;
    }

    .rt-menu-lista {
        column-gap: 20px;
    }
}

@media (max-width: 991px) {
    .rt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rt-contacto-info {
        flex-basis: 50%;
        padding: 60px 40px;
    }
}

@media (max-width: 767px) {
    .rt-page .rt-hero,
    .rt-page .rt-seccion,
    .rt-page .rt-postula,
    .rt-page .rt-contacto {
        scroll-margin-top: 80px;
    }

    /* En mobile la maqueta muestra Etapas antes que Ecosistema. */
    .rt-page {
        display: flex;
        flex-direction: column;
    }

    .rt-page > .rt-ecosistema,
    .rt-page > .rt-video,
    .rt-page > .rt-contacto {
        order: 1;
    }

    .rt-page .rt-seccion,
    .rt-page .rt-postula,
    .rt-page .rt-contacto {
        width: 100%;
    }

    .rt-page .rt-postula {
        flex-direction: column;
    }

    .rt-postula-imagen {
        flex: none;
        height: 286px;
    }

    .rt-postula-texto {
        flex: none;
        padding: 40px 20px;
    }

    .rt-contenedor {
        padding: 0 20px;
    }

    .rt-page .rt-seccion,
    .rt-page .rt-bienvenida,
    .rt-page .rt-video {
        padding: 30px 0;
    }

    .rt-page .rt-hero {
        min-height: 474px;
        padding: 182px 20px 60px;
    }

    .rt-hero-imagen img {
        object-position: 50% 50%;
    }

    .rt-hero::after {
        background: linear-gradient(to left, rgba(102, 102, 102, 0) 37.019%, rgba(102, 102, 102, 0.7) 57.212%, rgba(0, 0, 0, 0.7) 78.365%);
    }

    .rt-page .rt-hero-titulo {
        max-width: 330px;
        font-size: 48.83px;
        letter-spacing: -0.7325px;
    }

    .rt-menu {
        background: #fff;
        padding: 10px;
    }

    .rt-menu-caja {
        border-radius: 10px;
        background: #000;
        padding: 0 20px;
    }

    .rt-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 57px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        font-family: Lato, sans-serif;
        font-size: 18px;
        line-height: 1.5;
        text-align: left;
        cursor: pointer;
    }

    .rt-menu-toggle img {
        transition: transform 0.2s ease;
    }

    .rt-menu.is-open .rt-menu-toggle img {
        transform: rotate(180deg);
    }

    .rt-menu-lista {
        display: none;
        flex-direction: column;
        gap: 6px;
        padding-bottom: 20px;
    }

    .rt-menu.is-open .rt-menu-lista {
        display: flex;
    }

    .rt-menu-lista a {
        padding: 14px 10px 14px 0;
    }

    .rt-bienvenida-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .rt-bienvenida-imagen {
        flex: none;
        height: 200px;
    }

    .rt-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 60px;
    }

    .rt-etapas-intro {
        margin-bottom: 30px;
    }

    .rt-timeline {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .rt-page .rt-etapa {
        position: relative;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: 1fr auto auto 1fr;
        grid-template-areas: "marca ." "marca titulo" "marca fecha" "marca .";
        column-gap: 20px;
    }

    .rt-etapa:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 33px;
        width: 7px;
        height: calc(100% + 50px);
        background: #ffb800;
    }

    .rt-etapa:not(:last-child) .rt-etapa-marca::after {
        display: none;
    }

    .rt-etapa-marca {
        grid-area: marca;
        z-index: 1;
        margin-top: 0;
    }

    .rt-etapa-titulo {
        grid-area: titulo;
        align-self: center;
        padding: 0;
        text-align: left;
    }

    .rt-etapa-fecha {
        grid-area: fecha;
        padding: 6px 0 0;
        text-align: left;
    }

    .rt-video-intro {
        align-items: flex-start;
        text-align: left;
    }

    .rt-video-intro .rt-contenido {
        font-size: 18px;
        line-height: 1.2;
        letter-spacing: -0.27px;
    }

    .rt-video-marco {
        aspect-ratio: 508 / 320;
    }

    .rt-ecosistema-cabecera {
        flex-direction: row;
        align-items: center;
    }

    .rt-ecosistema-circulo {
        width: 46px;
        height: 46px;
        border-width: 1.15px;
    }

    .rt-ecosistema-circulo .rt-icono-33 {
        width: 25.3px;
        height: 25.3px;
    }

    .rt-page .rt-contacto {
        flex-direction: column;
    }

    .rt-contacto-info {
        flex: none;
        gap: 30px;
        padding: 30px 20px;
        background: #fff;
    }

    .rt-contacto-lista {
        display: flex;
        width: 100%;
    }

    .rt-contacto-imagen {
        flex: none;
        height: 300px;
    }

    .rt-modal {
        padding: 30px 20px;
    }

    .rt-page .rt-modal .rt-titulo-card {
        font-size: 25px;
        letter-spacing: -0.375px;
    }
}
