.uce-residencies-v2 {
    --rn: #081638;
    --rn-light: #10254b;
    --rg: #7eb280;
    --rs: #edf4ee;
    --rm: #64748b;
    color: var(--rn);
    overflow: hidden;
}

.uce-residencies-v2 * {
    box-sizing: border-box;
}

.uce-residencies-v2 .container {
    width: min(1440px,92%);
    margin-inline: auto;
}

.uce-residencies-v2 .section {
    padding: 95px 0;
}

.uce-residencies-v2 img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.uce-residencies-v2 h1,
.uce-residencies-v2 h2,
.uce-residencies-v2 h3 {
    color: inherit;
    line-height: 1.15;
}

.uce-residencies-v2 h2 {
    font-size: clamp(30px,3.3vw,48px);
    letter-spacing: -1.4px;
    margin: 15px 0 25px;
}

.uce-residencies-v2 p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--rm);
}

.uce-residencies-v2 .eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: #537d58;
}

.uce-residencies-v2 .eyebrow--light {
    color: #b6d8b7;
}

.uce-residencies-v2 .section-heading {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
    gap: 45px;
    margin-bottom: 45px;
}

/* PORTADA */

.uce-residencies-v2 .residency-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 550px;
    background: var(--rn);
    color: white;
}

.uce-residencies-v2 .inner-hero__background,
.uce-residencies-v2 .inner-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.uce-residencies-v2 .inner-hero__background img {
    height: 100%;
}

.uce-residencies-v2 .inner-hero__overlay {
    background: linear-gradient(
        90deg,
        rgba(8,22,56,.98),
        rgba(8,22,56,.8) 50%,
        rgba(8,22,56,.15)
    );
}

.uce-residencies-v2 .inner-hero__content {
    padding: 80px 0;
}

.uce-residencies-v2 .inner-hero__content h1 {
    font-size: clamp(38px,4.6vw,68px);
    letter-spacing: -2px;
    max-width: 850px;
    margin: 20px 0;
}

.uce-residencies-v2 .inner-hero__content p {
    color: #dce4f0;
    max-width: 650px;
    font-size: 18px;
}

/* PILARES ACADEMICOS */

.uce-residencies-v2 .residency-stats-section {
    background: var(--rn);
    color: white;
}

.uce-residencies-v2 .residency-stats-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.uce-residencies-v2 .residency-stat {
    padding: 35px 28px;
    border-right: 1px solid rgba(255,255,255,.15);
}

.uce-residencies-v2 .residency-stat:last-child {
    border-right: 0;
}

.uce-residencies-v2 .residency-stat > span {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--rg);
    margin-bottom: 18px;
}

.uce-residencies-v2 .residency-stat strong {
    font-size: 19px;
}

.uce-residencies-v2 .residency-stat p {
    color: #b9c6d9;
    font-size: 14px;
    margin-top: 10px;
}

/* INTRODUCCION */

.uce-residencies-v2 .residency-introduction__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.uce-residencies-v2 .residency-introduction__media {
    position: relative;
}

.uce-residencies-v2 .residency-introduction__media img {
    height: 620px;
    border-radius: 20px;
}

.uce-residencies-v2 .residency-introduction__card {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;
    padding: 25px;
    border-radius: 13px;
    background: var(--rn);
    color: white;
}

.uce-residencies-v2 .residency-introduction__card span {
    display: block;
    font-size: 12px;
    color: var(--rg);
    margin-bottom: 10px;
}

.uce-residencies-v2 .residency-introduction__card strong {
    font-size: 24px;
}

.uce-residencies-v2 .residency-introduction__features {
    margin-top: 30px;
}

.uce-residencies-v2 .residency-introduction__features > div {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.uce-residencies-v2 .residency-introduction__features > div > span {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--rs);
    color: #426c49;
    font-weight: 700;
}

.uce-residencies-v2 .residency-introduction__features strong {
    font-size: 19px;
}

.uce-residencies-v2 .residency-introduction__features p {
    margin: 5px 0 0;
}

/* PROGRAMAS DISPONIBLES */

.uce-residencies-v2 .residency-programs {
    background: #f4f7f8;
}

.uce-residencies-v2 .residency-programs-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}

.uce-residencies-v2 .residency-program-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    transition: transform .3s, box-shadow .3s;
}

.uce-residencies-v2 .residency-program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(8,22,56,.07);
}

.uce-residencies-v2 .residency-program-card__top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.uce-residencies-v2 .residency-program-card__top > span {
    font-size: 30px;
    color: #cbd5e1;
    font-weight: 700;
}

.uce-residencies-v2 .residency-program-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--rs);
    color: #426c49;
    font-size: 30px;
}

.uce-residencies-v2 .residency-program-card__category {
    padding: 7px 12px;
    background: var(--rs);
    color: #426c49;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.uce-residencies-v2 .residency-program-card h3 {
    font-size: 26px;
    margin: 22px 0 12px;
}

.uce-residencies-v2 .residency-program-card p {
    font-size: 15px;
    margin-bottom: 20px;
}

.uce-residencies-v2 .residency-program-card__details {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding: 18px 0;
    border-top: 1px solid #e2e8f0;
}

.uce-residencies-v2 .residency-program-card__details span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--rm);
    margin-bottom: 7px;
}

.uce-residencies-v2 .residency-program-card__details strong {
    font-size: 14px;
}

.uce-residencies-v2 .residency-program-card > a {
    display: block;
    width: 100%;
    background: var(--rn);
    color: white;
    text-align: center;
    padding: 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
}

.uce-residencies-v2 .residency-empty {
    padding: 25px;
    background: white;
    border-radius: 12px;
}

/* REQUISITOS */

.uce-residencies-v2 .residency-requirements__grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: 65px;
}

.uce-residencies-v2 .residency-requirements-list {
    display: grid;
    gap: 10px;
    margin: 30px 0;
}

.uce-residencies-v2 .residency-requirements-list > div {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f5f8f6;
    padding: 15px;
    border-radius: 10px;
}

.uce-residencies-v2 .residency-requirements-list span {
    flex: 0 0 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--rn);
    border-radius: 8px;
    color: white;
    font-size: 12px;
}

.uce-residencies-v2 .residency-requirements-list p {
    color: var(--rn);
    margin: 0;
    font-size: 15px;
}

.uce-residencies-v2 .residency-requirements__media img {
    height: 650px;
    border-radius: 20px;
}

.uce-residencies-v2 .residency-requirements__note {
    padding: 18px;
    border-left: 4px solid var(--rg);
    background: var(--rs);
    font-size: 14px;
}

/* PROCESO DE INGRESO */

.uce-residencies-v2 .residency-process {
    background: var(--rn);
    color: white;
    scroll-margin-top: 120px;
}

.uce-residencies-v2 .residency-process p {
    color: #cbd5e1;
}

.uce-residencies-v2 .residency-process-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 15px;
}

.uce-residencies-v2 .residency-process-step {
    position: relative;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: var(--rn-light);
    padding: 27px;
}

.uce-residencies-v2 .residency-process-step__number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--rg);
    margin-bottom: 35px;
}

.uce-residencies-v2 .residency-process-step h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.uce-residencies-v2 .residency-process-step p {
    font-size: 14px;
}

/* BENEFICIOS */

.uce-residencies-v2 .residency-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 22px;
}

.uce-residencies-v2 .residency-benefit-card {
    padding: 35px;
    border-radius: 16px;
    background: var(--rs);
}

.uce-residencies-v2 .residency-benefit-card > span {
    font-size: 32px;
    font-weight: 700;
    color: #537d58;
}

.uce-residencies-v2 .residency-benefit-card h3 {
    margin: 30px 0 18px;
    font-size: 24px;
}

/* CONTACTO ACADEMICO */

.uce-residencies-v2 .residency-contact {
    padding: 75px 0;
    background: var(--rn);
    color: white;
}

.uce-residencies-v2 .residency-contact__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 45px;
    align-items: center;
}

.uce-residencies-v2 .residency-contact p {
    color: #cbd5e1;
}

.uce-residencies-v2 .residency-contact a {
    color: white;
}

.uce-residencies-v2 .residency-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.uce-residencies-v2 .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    border-radius: 9px;
}

.uce-residencies-v2 .button--primary {
    background: var(--rg);
    color: var(--rn);
}

.uce-residencies-v2 .button--light {
    background: white;
    color: var(--rn);
}

.uce-residencies-v2 .button--outline,
.uce-residencies-v2 .button--outline-light {
    border-color: rgba(255,255,255,.5);
    color: white;
}

/* RESPONSIVE */

@media(max-width:1200px) {
    .uce-residencies-v2 .residency-process-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media(max-width:950px) {

    .uce-residencies-v2 .section {
        padding: 65px 0;
    }

    .uce-residencies-v2 .residency-stats-grid,
    .uce-residencies-v2 .residency-programs-grid,
    .uce-residencies-v2 .residency-benefits-grid,
    .uce-residencies-v2 .residency-process-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .uce-residencies-v2 .residency-introduction__grid,
    .uce-residencies-v2 .residency-requirements__grid,
    .uce-residencies-v2 .residency-contact__grid,
    .uce-residencies-v2 .section-heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .uce-residencies-v2 .residency-introduction__media img,
    .uce-residencies-v2 .residency-requirements__media img {
        height: 450px;
    }
}

@media(max-width:550px) {

    .uce-residencies-v2 .residency-hero {
        min-height: 460px;
    }

    .uce-residencies-v2 .residency-stat {
        padding: 22px 15px;
    }

    .uce-residencies-v2 .residency-stat strong {
        font-size: 16px;
    }

    .uce-residencies-v2 .residency-programs-grid,
    .uce-residencies-v2 .residency-benefits-grid,
    .uce-residencies-v2 .residency-process-grid {
        grid-template-columns: 1fr;
    }

    .uce-residencies-v2 .residency-introduction__media img,
    .uce-residencies-v2 .residency-requirements__media img {
        height: 360px;
    }

    .uce-residencies-v2 .residency-program-card,
    .uce-residencies-v2 .residency-benefit-card {
        padding: 25px;
    }

    .uce-residencies-v2 .residency-process-step__number {
        margin-bottom: 20px;
    }
}
/* Correccion de botones y contacto academico */

.uce-residencies-v2 .residency-contact .button--light {
    background: #ffffff !important;
    color: #081638 !important;
}

.uce-residencies-v2 .residency-contact .button--light * {
    color: #081638 !important;
}

.uce-residencies-v2 .residency-contact .button--light:hover {
    background: #7eb280 !important;
    color: #081638 !important;
}

.uce-residencies-v2 .residency-contact .button--outline {
    border: 1px solid rgba(255,255,255,.5);
    color: #ffffff !important;
}

.uce-residencies-v2 .residency-contact__actions {
    margin-top: 25px;
    gap: 15px;
}

.uce-residencies-v2 .residency-contact img {
    border-radius: 20px;
}

