/* ====== Admisión – UI principal ====== */
:root {
    --ad-ink: #0b2340;
    --ad-muted: #6b7b8f;
    --ad-white: #fff;
    --ad-bg: #f6f8fb;

    --brand-900: #112b88;
    /* azul institucional */
    --brand-700: #003cb3;
    --brand-500: #2563eb;

    --radius-xl: 26px;
    --radius: 16px;
    --shadow: 0 14px 34px rgba(11, 35, 64, .12);

    /* Triángulos (rutas) */
    --tri-1: url('../images/portfolio/triangulo-5.png');
    --tri-2: url('../images/portfolio/triangulo-6.png');
    --tri-3: url('../images/portfolio/triangulo-7.png');
    --tri-4: url('../images/portfolio/triangulo-8.png');
    --tri-5: url('../images/portfolio/triangulo-9.png');
}

/* ==== TITULOS GENERALES ==== */
.section-head {
    text-align: center;
    margin-bottom: 22px;
}

.section-head h2 {
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0 0 .3rem;
}

.section-head p {
    color: var(--ad-muted);
    margin: 0;
}

/* ==== BOTONES GENERALES ==== */
.btn-grad-lg {
    background: linear-gradient(90deg, var(--brand-900), var(--brand-700));
    border: none;
    color: #fff;
    font-weight: 800;
    padding: .9rem 1.2rem;
    border-radius: 999px;
}

.btn-grad-lg:hover {
    filter: brightness(.96);
    color: #fff;
}

.btn-outline-dark {
    border: 1px solid rgba(0, 0, 0, .5);
    color: #111;
    font-weight: 700;
    border-radius: 999px;
}

.btn-outline-dark:hover {
    background: #111;
    color: #fff;
}

.ad-search .btn.btn-primary.btn-lg {
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(11, 35, 64, 0.15);
    transition: all 0.25s ease;
}

.ad-search .btn.btn-primary.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(11, 35, 64, 0.2);
}

/* ===== HERO ===== */
.ad-hero {
    position: relative;
    /* QUITAMOS overflow: hidden;  */
    overflow: visible;
    height: auto !important;
    min-height: auto !important;
    color: #fff;
    background:
        radial-gradient(1200px 420px at -12% -20%, rgba(255, 255, 255, .12), transparent 60%),
        linear-gradient(135deg, var(--brand-900), var(--brand-700));
}


/* contenido por encima de triángulos */
.ad-hero>.container {
    position: relative;
    z-index: 2;
}

.ad-hero .accent {
    color: #cfe0ff;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .13em;
    font-weight: 800;
    opacity: .9;
}

.ad-title {
    font-weight: 900;
    line-height: 1.05;
    font-size: clamp(32px, 4.8vw, 54px);
    margin: .25rem 0 .6rem;
}

.ad-lead {
    color: #eaf3ff;
    max-width: 62ch;
}

.ad-cta {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin: 14px 0 10px;
}

.ad-quick {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 10px 0 0;
    list-style: none;
}

.ad-quick li {
    display: flex;
    align-items: center;
    gap: .45rem;
}

/* ===== FORMULARIO ADMISION – HERO DERECHO ===== */

/* contenedor de la card en la columna derecha */
.ad-form-container {
    position: sticky;
    top: 90px;
    /* un poco más abajo para que no choque con el header */
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 0;
    /* evitamos que se meta demasiado */
    margin-top: 0;
    z-index: 5;
    align-self: flex-start;
}

/* En móviles: que deje de ser sticky y se comporte normal */
@media (max-width: 991.98px) {
    .ad-form-container {
        position: static;
        justify-content: center;
        padding-right: 0;
        margin-top: 22px;
    }
}


/* card principal del form */
.ad-form-card {
    width: 100%;
    max-width: 380px;
    /* ancho lindo */
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 20px 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.20);
    font-size: 13px;
    z-index: 1 !important;
    /* capa baja y segura */
}

/* cabecera del formulario */
.ad-form-header {
    margin-bottom: 10px;
}

.ad-form-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
}

.ad-form-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* clase que usa tu JS para ocultar pasos */
.hidden {
    display: none !important;
}

.ad-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.ad-field label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 3px;
    font-weight: 500;
}

.ad-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
}

.ad-form-card input,
.ad-form-card select {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    font-size: 13px;
    color: #0f172a;
    background-color: #ffffff;
}

.ad-form-card input::placeholder,
.ad-form-card select::placeholder {
    color: #9ca3af;
}

.ad-form-card input:focus,
.ad-form-card select:focus {
    outline: none;
    border-color: #1b4fd6;
    box-shadow: 0 0 0 2px rgba(27, 79, 214, 0.16);
}

/* grupo de chips para modalidad */
.ad-chip-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 10px;
}

.seg-btn {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 5px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}

.seg-btn:hover {
    transform: translateY(-1px);
}

.seg-btn.active {
    background: #1b4fd6;
    color: #ffffff;
}

/* consentimiento de datos */
.ad-consent {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    color: #475569;
    margin: 8px 0 10px;
}

.ad-consent input[type="checkbox"] {
    margin-top: 2px;
}

.ad-consent a {
    color: #1b4fd6;
    text-decoration: underline;
}

/* footer de cada paso */
.ad-step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.ad-step-indicator {
    font-size: 11px;
    color: #6b7280;
}

/* botones propios del form */
.ad-btn-primary,
.ad-btn-ghost {
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.18s ease, color 0.18s ease;
}

.ad-btn-primary {
    background: #1b4fd6;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
}

.ad-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.52);
}

.ad-btn-ghost {
    background: transparent;
    color: #1b4fd6;
    padding-inline: 10px;
}

.ad-btn-ghost:hover {
    background: rgba(37, 99, 235, 0.06);
}

.ad-btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* Pasos del formulario – anular padding global de <section> */
.ad-form-card .ad-step {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 6px;
    margin-bottom: 0;
    display: block;
}

/* ===== HERO – CTA amarillo con Otito (si lo usas en otra vista) ===== */
.ad-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-hero-cta .btn.ad-cta-wide {
    background: linear-gradient(90deg, #ffd34d, #ffb800);
    color: #0b2340;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255, 211, 77, 0.4);
    transition: all 0.25s ease;
    padding: 18px 28px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.ad-hero-cta .cta-img {
    width: 400px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.35));
    transition: filter 0.3s ease;
    animation: float 3.5s ease-in-out infinite;
    will-change: transform;
}

.ad-hero-cta .cta-img:hover {
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.45));
}

.ad-hero-cta .btn.ad-cta-wide:hover {
    background: linear-gradient(90deg, #ffca1a, #ffb300);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 200, 40, 0.5);
}

/* Animación flotando (Otito / Beca18) */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .ad-hero-cta .cta-img {
        width: 240px;
    }

    .ad-hero-cta .btn.ad-cta-wide {
        font-size: 1.05rem;
        padding: 16px 22px;
    }
}

/* ===== Pasos ===== */
.ad-steps {
    padding: 40px 0;
    margin-top: 40px !important;
}

.s-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 10px 26px rgba(11, 35, 64, .08);
}

.s-card .n {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
    color: #fff;
    font-weight: 900;
    margin-bottom: 8px;
}

/* ===== Requisitos ===== */
.ad-req {
    padding: 36px 0;
    background: var(--ad-bg);
    margin-top: 40px !important;
}

.rq-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 8px 20px rgba(11, 35, 64, .08);
}

.rq-card i {
    color: var(--brand-700);
}

/* ===== Carreras ===== */
.ad-careers {
    padding: 42px 0;
    background: var(--ad-bg);
    margin-top: 40px !important;
}

.ad-search {
    margin: 10px 0 18px;
}

.ad-career-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 992px) {
    .ad-career-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.c-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(11, 35, 64, .08);
    padding: 10px;
    text-align: center;
}

.c-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.c-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: .6rem 0;
}

/* ===== BECA 18 – CTA con Otito ===== */
.ad-beca18 {
    color: #fff;
    padding: clamp(28px, 6vw, 60px) 0;
    background:
        radial-gradient(900px 360px at 110% -40%, rgba(255, 255, 255, .12), transparent 60%),
        linear-gradient(135deg, var(--brand-900), var(--brand-700));
    margin-top: 40px !important;
}

.beca-wrap {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(16px, 3vw, 28px);
    align-items: center;
}

.beca-title {
    font-weight: 900;
    line-height: 1.08;
    margin: .2rem 0 .4rem;
    font-size: clamp(26px, 3.6vw, 40px);
}

.beca-title span {
    color: #cfe0ff;
}

.beca-lead {
    color: #eaf3ff;
    max-width: 60ch;
}

.beca-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin: .8rem 0 0.4rem;
}

.beca-points {
    list-style: none;
    padding: 0;
    margin: .6rem 0 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.beca-points li {
    display: flex;
    gap: .45rem;
    align-items: center;
    opacity: .95;
}

.beca-points i {
    color: #fff;
}

.beca-otito {
    text-align: center;
    position: relative;
}

.beca-otito img {
    width: 500px;
    height: auto;
    animation: float 3.5s ease-in-out infinite;
    filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .25));
}

@media (max-width: 768px) {
    .beca-otito img {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .beca-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .beca-text {
        order: 2;
    }

    .beca-otito {
        order: 1;
    }

    .beca-actions,
    .beca-points {
        justify-content: center;
    }
}

/* Imagen logo Beca 18 */
.beca-badge-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.beca-badge-img {
    height: 65px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    transition: transform 0.25s ease;
}

.beca-badge-img:hover {
    transform: scale(1.04);
}

/* ===== FAQ ===== */
.ad-faq {
    padding: 42px 0;
    background: var(--ad-bg);
    margin-top: 40px !important;
}

.accordion-button {
    font-weight: 700;
}

.accordion-button:focus {
    box-shadow: none;
}

/* ===== CTA final ===== */
.ad-cta-final {
    background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
    color: #fff;
    padding: 28px 0;
}

.ad-cta-final h3 {
    font-weight: 900;
    margin: 0 0 4px;
}

/* Small helpers */
.text-muted {
    color: var(--ad-muted) !important;
}

/* ===== Triángulos cayendo — Puro CSS ===== */
.tri-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.tri-field span {
    position: absolute;
    top: -12vh;
    width: var(--sz, 40px);
    height: var(--sz, 40px);
    background-image: var(--img, var(--tri-1));
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
    transform: translateY(-12vh) rotate(var(--rot, 0deg));
    animation: triFall var(--dur, 10s) linear var(--delay, 0s) infinite;
}

@keyframes triFall {
    0% {
        transform: translateY(-12vh) rotate(var(--rot, 0deg));
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(calc(var(--rot, 0deg) + 180deg));
        opacity: 0.95;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tri-field span {
        animation: none !important;
    }
}

/* Distribución de las 14 piezas */
.tri-field span:nth-child(1) {
    left: 5%;
    --img: var(--tri-1);
    --sz: 30px;
    --rot: -20deg;
    --dur: 9s;
    --delay: .5s;
}

.tri-field span:nth-child(2) {
    left: 12%;
    --img: var(--tri-2);
    --sz: 46px;
    --rot: 15deg;
    --dur: 11s;
    --delay: 1.2s;
}

.tri-field span:nth-child(3) {
    left: 20%;
    --img: var(--tri-3);
    --sz: 36px;
    --rot: -10deg;
    --dur: 10s;
    --delay: .8s;
}

.tri-field span:nth-child(4) {
    left: 28%;
    --img: var(--tri-4);
    --sz: 54px;
    --rot: 8deg;
    --dur: 12s;
    --delay: 1.5s;
}

.tri-field span:nth-child(5) {
    left: 36%;
    --img: var(--tri-5);
    --sz: 40px;
    --rot: -25deg;
    --dur: 9s;
    --delay: .2s;
}

.tri-field span:nth-child(6) {
    left: 44%;
    --img: var(--tri-2);
    --sz: 42px;
    --rot: 18deg;
    --dur: 10s;
    --delay: 1.7s;
}

.tri-field span:nth-child(7) {
    left: 52%;
    --img: var(--tri-3);
    --sz: 32px;
    --rot: -12deg;
    --dur: 8s;
    --delay: 1.1s;
}

.tri-field span:nth-child(8) {
    left: 60%;
    --img: var(--tri-4);
    --sz: 50px;
    --rot: 26deg;
    --dur: 11s;
    --delay: .4s;
}

.tri-field span:nth-child(9) {
    left: 68%;
    --img: var(--tri-5);
    --sz: 34px;
    --rot: -8deg;
    --dur: 9s;
    --delay: 1.8s;
}

.tri-field span:nth-child(10) {
    left: 76%;
    --img: var(--tri-1);
    --sz: 44px;
    --rot: 14deg;
    --dur: 12s;
    --delay: .7s;
}

.tri-field span:nth-child(11) {
    left: 84%;
    --img: var(--tri-3);
    --sz: 38px;
    --rot: -20deg;
    --dur: 10s;
    --delay: 1.3s;
}

.tri-field span:nth-child(12) {
    left: 92%;
    --img: var(--tri-4);
    --sz: 56px;
    --rot: 10deg;
    --dur: 9s;
    --delay: .6s;
}

.tri-field span:nth-child(13) {
    left: 98%;
    --img: var(--tri-2);
    --sz: 30px;
    --rot: -14deg;
    --dur: 8s;
    --delay: 1.9s;
}

.tri-field span:nth-child(14) {
    left: 2%;
    --img: var(--tri-5);
    --sz: 48px;
    --rot: 22deg;
    --dur: 11s;
    --delay: .3s;
}

/* ===== BOTONES BECA 18 / OUTLINE WHITE ===== */
.btn-simulacro {
    background: #fff;
    color: #1b4fd6;
    border: 2px solid #1b4fd6;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(11, 35, 64, 0.12);
}

.btn-simulacro:hover {
    background: #1b4fd6;
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 35, 64, 0.25);
    transform: translateY(-2px);
}

.btn-outline-white {
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: #1b4fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}