/* Hallmark · genre: editorial · macrostructure: Bento Grid · design-system: design.md · designed-as-app */
/* Portal Alumni USC — identidad oficial alumniUSC */

@font-face {
    font-family: 'FrutigerNext';
    src: url('../fonts/FrutigerNextLT-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MontserratLight';
    src: url('../fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --azul: #004892;
    --azul-oscuro: #012a54;
    --verde: #009179;
    --verde-oscuro: #00614f;
    --verde-mas-oscuro: #004a3c;
    --naranja: #EAAB32;
    --naranja-oscuro: #b98520;
    --gris-fondo: #F5F6F4;
    --gris-borde: #E8E8E6;
    --tinta: #1A1A1A;
    --gris-texto: #6B7280;
    --gris-texto-fuerte: #48525C;
    --rojo-error: #A13030;
    --rojo-error-bg: #FDECEC;
    --rojo-error-borde: #F3B7B7;
    --verde-bg: #E7F5F0;
    --verde-borde: #A9D8C6;

    --font-display: 'FrutigerNext', Arial, sans-serif;
    --font-body: 'MontserratLight', Arial, sans-serif;

    --sombra-card: 0 1px 2px rgba(26, 26, 26, .04), 0 8px 20px rgba(26, 26, 26, .06);
    --radio-card: 14px;
    --sidebar-ancho: 220px;
    --sidebar-margen: 20px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gris-fondo) url('../img/patron-fondo.png') repeat;
    color: var(--tinta);
    font-family: var(--font-body);
    line-height: 1.5;
}

a { color: inherit; }

/* ---------- brand lockup (logo, fuera del header) ---------- */

.brand-lockup {
    display: block;
    text-decoration: none;
    margin: 0 0 36px;
}

.brand-lockup__logo {
    height: 56px;
    width: auto;
    display: block;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 60px;
}

/* dashboard bento: ancho completo, sin centrar por defecto */
body.page-app-shell .main {
    align-items: stretch;
    justify-content: flex-start;
}

body.page-app-shell .brand-lockup {
    align-self: center;
}

@media (min-width: 1024px) {

    /* inicio tiene poco contenido (solo el grid de carreras) — centrarlo en
       vez de dejarlo pegado arriba-izquierda con espacio vacío abajo */
    body.page-inicio .main {
        align-items: center;
        justify-content: center;
    }

    body.page-inicio .bento {
        max-width: 1040px;
    }

    /* mi cuenta: sin sidebar permanente que reserve espacio, se puede
       centrar igual que inicio */
    body.page-cuenta .main {
        align-items: center;
        justify-content: center;
    }
}

.footer {
    text-align: center;
    padding: 18px;
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--gris-texto);
    font-family: var(--font-body);
    text-transform: uppercase;
}

/* ---------- check (confirmación) ---------- */

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--verde);
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    margin: 0 auto 20px;
    animation: check-pop .4s cubic-bezier(.2, .9, .3, 1.2) both;
}

@keyframes check-pop {
    0% { transform: scale(.4); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .check { animation: none; }
}

/* ---------- hero (inicio) ---------- */

.hero {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 20, 40, .08);
    min-height: 420px;
}

.hero__text {
    background: #fff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.12;
    margin: 0 0 16px;
    color: var(--tinta);
}

.hero__sub {
    font-size: 1.02rem;
    color: var(--gris-texto);
    max-width: 40ch;
    margin: 0 0 28px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__panel {
    position: relative;
    overflow: hidden;
    background: var(--verde-oscuro);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 28px;
}

.hero__ghost {
    position: absolute;
    left: -18%;
    top: -10%;
    width: 130%;
    opacity: .12;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.hero__plate {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35);
    flex-shrink: 0;
}

.hero__plate img {
    height: 80px;
    width: auto;
    display: block;
}

@media (max-width: 720px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero__text { padding: 36px 28px; order: 2; }
    .hero__panel { min-height: 160px; order: 1; padding: 20px; }
    .hero__plate { width: 92px; height: 92px; border-radius: 16px; }
    .hero__plate img { height: 60px; }
}

/* ---------- tarjeta de paso ---------- */

.step {
    width: 100%;
    display: flex;
    justify-content: center;
}

.credencial {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    color: var(--tinta);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 18px rgba(0, 20, 40, .06);
    overflow: hidden;
}

.credencial__bar {
    height: 3px;
    background: var(--verde-oscuro);
}

.credencial__body {
    padding: 32px;
}

.credencial__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 20px;
    color: var(--tinta);
}

.credencial--center {
    text-align: center;
}

.credencial__volver {
    margin: 0 0 16px;
    font-size: .82rem;
}

.credencial__volver a {
    color: var(--gris-texto);
    text-decoration: none;
}

.credencial__volver a:hover {
    color: var(--azul);
    text-decoration: underline;
}

/* datos de solo lectura (paso 2) */

.ficha {
    background: var(--gris-fondo);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-size: .85rem;
    color: var(--tinta);
}

.ficha dt {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem;
    color: var(--verde-oscuro);
    opacity: .85;
    margin-top: 8px;
}

.ficha dt:first-child { margin-top: 0; }

.ficha dd {
    margin: 2px 0 0;
}

/* ---------- formularios ---------- */

.form p {
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form label {
    font-family: var(--font-body);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--verde-oscuro);
    opacity: .9;
}

.form input,
.form select {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px 4px;
    border: none;
    border-bottom: 2px solid var(--gris-borde);
    background: transparent;
    color: var(--tinta);
    border-radius: 0;
}

.form input:focus,
.form select:focus {
    outline: none;
    border-bottom-color: var(--verde-oscuro);
}

.form input:focus-visible,
.form select:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}

.form .errorlist {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    color: var(--rojo-error);
    font-size: .82rem;
}

/* ---------- botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .95rem;
    padding: 13px 26px;
    border-radius: 8px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--verde-oscuro);
    color: #fff;
}

.btn--primary:hover { background: var(--verde-mas-oscuro); }

.btn--ghost {
    background: transparent;
    border-color: var(--gris-borde);
    color: var(--azul);
}

.btn--ghost:hover { border-color: var(--azul); color: var(--azul-oscuro); }

.btn--block { width: 100%; margin-top: 4px; }

/* ---------- alertas ---------- */

.alert {
    background: var(--rojo-error-bg);
    border: 1px solid var(--rojo-error-borde);
    color: var(--rojo-error);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .88rem;
    margin: 0 0 18px;
}

.aviso {
    background: var(--verde-bg);
    border: 1px solid var(--verde-borde);
    color: var(--verde-oscuro);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .88rem;
    margin: 0 0 18px;
}

.link-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: .82rem;
    color: var(--azul);
    text-decoration: underline;
    text-decoration-color: var(--gris-borde);
    cursor: pointer;
}

.link-btn:hover {
    color: var(--azul-oscuro);
}

/* ---------- menú de cuenta (ícono + panel lateral) ---------- */

.iconbtn {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gris-borde);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde-oscuro);
    cursor: pointer;
    padding: 0;
    z-index: 20;
}

.iconbtn svg {
    width: 19px;
    height: 19px;
}

.iconbtn:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
    z-index: 29;
}

.overlay--open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 82%;
    max-width: 300px;
    background: #fff;
    box-shadow: -18px 0 34px -18px rgba(0, 20, 40, .35);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.32, .72, .35, 1);
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
}

.drawer--open {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.drawer__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    color: var(--verde-oscuro);
    margin: 0;
}

.drawer__close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--gris-fondo);
    color: var(--gris-texto);
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    padding: 0;
}

.drawer__id {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 18px;
    border-bottom: 1px solid var(--gris-borde);
    margin-bottom: 10px;
}

.drawer__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--verde-oscuro);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drawer__idtext strong {
    display: block;
    font-family: var(--font-display);
    font-size: .86rem;
    color: var(--tinta);
}

.drawer__idtext span {
    font-size: .74rem;
    color: var(--gris-texto);
}

.drawer nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 8px;
    color: var(--tinta);
    text-decoration: none;
    font-size: .86rem;
}

.drawer nav a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gris-texto);
}

.drawer nav a:hover {
    background: var(--gris-fondo);
}

.drawer nav a.is-danger {
    color: var(--rojo-error);
    margin-top: auto;
}

.drawer nav a.is-danger svg {
    color: var(--rojo-error);
}

.drawer .spacer {
    flex: 1;
}

@media (prefers-reduced-motion: reduce) {
    .drawer, .overlay { transition: none; }
}

/* ---------- nav como popover (mismo <aside>, promovido a >=1024px) ----------
   No queda permanentemente visible ni ocupa espacio del layout: el icono
   circular (arriba a la derecha, igual que en mobile) la abre/cierra. La
   card en si es una tile mas del sistema bento — redondeada en las 4
   esquinas, misma sombra que .bento__card — solo que flota cerca del icono
   en vez de vivir pegada a un borde. */

@media (min-width: 1024px) {
    .drawer.app-sidebar {
        position: fixed;
        top: 66px;
        left: auto;
        right: 18px;
        bottom: auto;
        width: var(--sidebar-ancho);
        max-width: none;
        height: auto;
        background: var(--azul-oscuro);
        box-shadow: var(--sombra-card);
        border-radius: var(--radio-card);
        padding: 22px 16px;
        z-index: 30;
        transform-origin: top right;
        transform: scale(.96) translateY(-6px);
        opacity: 0;
        pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
    }

    .drawer.app-sidebar.drawer--open {
        transform: scale(1) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .drawer.app-sidebar .drawer__title,
    .drawer.app-sidebar .drawer__idtext strong {
        color: #fff;
    }

    .drawer.app-sidebar .drawer__idtext span {
        color: rgba(255, 255, 255, .62);
    }

    .drawer.app-sidebar .drawer__close {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

    .drawer.app-sidebar nav a {
        color: rgba(255, 255, 255, .82);
    }

    .drawer.app-sidebar nav a svg {
        color: rgba(255, 255, 255, .62);
    }

    .drawer.app-sidebar nav a:hover {
        background: rgba(255, 255, 255, .08);
    }

    .drawer.app-sidebar nav a.is-active {
        background: var(--verde-oscuro);
        color: #fff;
    }

    .drawer.app-sidebar nav a.is-active svg {
        color: #fff;
    }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
    .drawer.app-sidebar { transition: none; }
}

/* ---------- dashboard bento (bienvenida + mi cuenta) ---------- */

.bento-saludo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--tinta);
    margin: 0 0 20px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

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

@media (max-width: 639px) {
    .bento { grid-template-columns: minmax(0, 1fr); }
}

.bento__card {
    background: #fff;
    border-radius: var(--radio-card);
    box-shadow: var(--sombra-card);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* spans: por tile del grid, no exclusivos de .bento__card — cualquier hijo
   directo de .bento (ej. .categoria) los puede usar para ubicarse. */
.bento .span-2x2 { grid-column: span 2; grid-row: span 2; }
.bento .span-2x1 { grid-column: span 2; }
.bento .span-1x1 { grid-column: span 1; }

@media (max-width: 639px) {
    .bento .span-2x2,
    .bento .span-2x1 { grid-column: span 1; }
}

.bento__card--destacada {
    background: var(--verde-oscuro);
    color: #fff;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bento__card--destacada .bento__titulo,
.bento__card--destacada .bento__dato dt {
    color: rgba(255, 255, 255, .72);
}

.bento__card--destacada .bento__dato dd {
    color: #fff;
}

.bento__ghost {
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 150px;
    height: 150px;
    opacity: .14;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.bento__titulo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .84rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--gris-texto);
    margin: 0;
}

.bento__lead {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.bento__dato {
    margin: 0;
    position: relative;
    z-index: 1;
}

.bento__dato dt {
    font-size: .74rem;
    color: var(--gris-texto);
    margin: 0 0 2px;
}

.bento__dato dd {
    margin: 0 0 10px;
    font-size: .92rem;
    color: var(--tinta);
}

.bento__estados {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.bento__estado {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .72rem;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.bento__estado::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

.bento__estado.is-completo::before {
    background: var(--naranja);
}

.bento__foot {
    margin-top: auto;
    padding-top: 4px;
}

.bento__link {
    font-size: .84rem;
    color: var(--azul);
    text-decoration: underline;
    text-decoration-color: var(--gris-borde);
}

@media (prefers-reduced-motion: no-preference) {
    .bento__card, .bento .categoria {
        animation: bento-in .32s cubic-bezier(.16, 1, .3, 1) both;
    }
}

@keyframes bento-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* ---------- modal de consentimiento ---------- */

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(92%, 440px);
    max-height: 86vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 60px -20px rgba(0, 20, 40, .4);
    padding: 24px 26px;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%);
    transition: opacity .24s ease, transform .24s ease;
}

.modal--ancho {
    width: min(94%, 700px);
}

.modal--open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.modal__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--azul);
    margin: 0;
}

.modal__texto {
    font-size: .84rem;
    line-height: 1.55;
    color: var(--gris-texto);
    margin-bottom: 16px;
}

.modal__texto p { margin: 0 0 10px; }
.modal__texto strong { color: var(--tinta); }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    cursor: pointer;
}

.consent input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--verde-oscuro);
}

.consent span {
    font-size: .82rem;
    line-height: 1.45;
    color: var(--tinta);
}

#btn-confirmar-envio:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .modal { transition: none; }
}

/* ---------- perfil (bento — ver también sección "dashboard bento" arriba) ---------- */

.cuenta-preferencia {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 520px;
}

.cuenta-preferencia__texto {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--tinta);
}

.cuenta-preferencia__texto input {
    width: 16px;
    height: 16px;
    accent-color: var(--verde-oscuro);
    flex-shrink: 0;
}

.cuenta-preferencia__estado {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--verde-oscuro);
}

.cuenta-preferencia__estado.is-off { color: var(--gris-texto); }

.cuenta-cv {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .86rem;
    color: var(--tinta);
    margin: 0 0 10px;
}

.cuenta-cv svg { flex-shrink: 0; color: var(--azul); }

/* ---------- input de archivo custom (reemplaza el widget nativo del navegador) ---------- */

.file-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}

.file-upload__btn-wrap {
    position: relative;
    display: inline-flex;
}

.file-upload__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload__btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid var(--gris-borde);
    background: var(--gris-fondo);
    color: var(--tinta);
    font-size: .84rem;
    pointer-events: none;
    transition: border-color .15s ease, color .15s ease;
}

.file-upload__btn-wrap:hover .file-upload__btn {
    border-color: var(--verde-oscuro);
    color: var(--verde-oscuro);
}

.file-upload__input:focus-visible + .file-upload__btn {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}

.file-upload__name {
    font-size: .8rem;
    color: var(--gris-texto);
}

/* ---------- pie de tarjeta / enlaces ---------- */

.step__foot {
    text-align: center;
    margin: 20px 0 0;
    font-size: .88rem;
}

.step__foot a {
    color: var(--azul);
    text-decoration: underline;
    text-decoration-color: var(--gris-borde);
}

.step__lead {
    margin: 0 0 22px;
    color: var(--gris-texto);
    font-size: .92rem;
}

/* ---------- responsive ---------- */

@media (max-width: 480px) {
    .main { padding: 32px 20px 48px; }
    .brand-lockup__logo { height: 44px; }
    .credencial { border-radius: 10px; }
    .credencial__body { padding: 26px 22px; }
}

/* ---------- guia de profesionales ---------- */

.guia {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.guia__banner {
    position: relative;
    overflow: hidden;
    background: var(--verde-oscuro);
    border-radius: 14px;
    padding: 30px 32px;
    margin-bottom: 20px;
}

.guia__banner-ghost {
    position: absolute;
    right: -8%;
    top: -35%;
    width: 46%;
    opacity: .12;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.guia__titulo {
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.6vw, 2rem);
    margin: 0 0 6px;
    color: #fff;
}

.guia__sub {
    position: relative;
    color: rgba(255, 255, 255, .85);
    margin: 0;
    font-size: .9rem;
}

.buscador {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 11px 16px;
    background: #fff;
    border: 1px solid var(--gris-borde);
    border-radius: 999px;
}

.buscador svg { flex-shrink: 0; color: var(--gris-texto); }

.buscador input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: .92rem;
    color: var(--tinta);
}

.buscador input:focus { outline: none; }

.lista-alumni {
    margin: 0 0 8px;
    background: rgba(255, 255, 255, .78);
    border-radius: 14px;
    padding: 2px 20px;
}

.fila-alumni {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--gris-borde);
}

.fila-alumni:last-child { border-bottom: 1px solid var(--gris-borde); }

.fila-alumni__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .8rem;
    color: #fff;
}

.fila-alumni__cuerpo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 8px;
}

.fila-alumni__nombre {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .94rem;
    margin: 0;
    color: var(--tinta);
}

.fila-alumni__rol {
    font-size: .8rem;
    color: var(--gris-texto-fuerte);
}

.fila-alumni__rol b { color: var(--verde-oscuro); font-weight: 600; }

.fila-alumni__vercv {
    font-size: .78rem;
    color: var(--azul);
    font-weight: 700;
    background: none;
    border: none;
    text-decoration: underline;
    text-decoration-color: var(--gris-borde);
    text-underline-offset: 3px;
    cursor: pointer;
    white-space: nowrap;
    padding: 0;
}

.categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

/* ---------- egresados (guia) ---------- */

.egresados {
    background: rgba(255, 255, 255, .78);
    border: none;
    border-top: 3px solid var(--tinta);
    border-radius: 0 0 14px 14px;
    padding: 18px 20px 22px;
    margin-bottom: 24px;
}

.egresados__titulo {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gris-texto);
    margin: 0 0 12px;
}

.egresados__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4px 16px;
}

.egresados__lista li {
    font-size: .86rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--gris-borde);
}

.egresados__vacio {
    color: var(--gris-texto);
    border-bottom: none !important;
}

.egresados__paginado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: .82rem;
}

.egresados__paginado a {
    color: var(--azul);
    text-decoration: underline;
    text-decoration-color: var(--gris-borde);
}

.egresados__paginado span {
    color: var(--gris-texto);
}

.categoria {
    display: flex;
    align-items: flex-end;
    min-height: 120px;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: transform .15s ease;
}

.categoria:hover { transform: translateY(-3px); }

.categoria__etiqueta {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

body.page-inicio .categoria {
    min-height: 240px;
    padding: 24px;
    border-radius: var(--radio-card);
}

body.page-inicio .categoria__etiqueta {
    font-size: 1.35rem;
}

.categoria--agronomia { background: linear-gradient(160deg, var(--verde) 0%, var(--verde-oscuro) 100%); }
.categoria--zootecnia { background: linear-gradient(160deg, var(--naranja) 0%, var(--naranja-oscuro) 100%); }
.categoria--tecnologia_alimentos { background: linear-gradient(160deg, var(--azul) 0%, var(--azul-oscuro) 100%); }
.categoria--administracion_agraria { background: linear-gradient(160deg, #5B6B73 0%, #38434A 100%); }

/* ---------- filtros (guia de profesionales) ---------- */

.guia__filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
}

.guia__filtros__campo {
    display: flex;
    flex-direction: column;
}

.guia__filtros__campo label,
.visualmente-oculto {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.guia__filtros .btn {
    padding: 7px 16px;
    font-size: .78rem;
    border-radius: 999px;
}

.guia__filtros input[type="text"],
.guia__filtros select {
    font-family: var(--font-body);
    font-size: .78rem;
    padding: 7px 14px;
    border: 1px solid var(--gris-borde);
    border-radius: 999px;
    background: #fff;
    color: var(--gris-texto);
}

.guia__filtros input[type="text"] {
    min-width: 160px;
    color: var(--tinta);
}

.guia__filtros input[type="text"]:focus,
.guia__filtros select:focus {
    outline: none;
    border-color: var(--verde-oscuro);
    color: var(--tinta);
}

.guia__filtros input[type="text"]:focus-visible,
.guia__filtros select:focus-visible {
    outline: 2px solid var(--verde-oscuro);
    outline-offset: 2px;
}
