/* Estilos compartidos por todas las páginas (complementan a Tailwind).
   Efectos: menú con subrayado animado, header compacto al hacer scroll,
   barra de progreso, puntos flotantes, botón "volver arriba" y aparición al scroll. */

.site-emoji-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin: 0 .08em;
    object-fit: contain;
    vertical-align: -.16em;
}

/* ============ MENÚ PRINCIPAL ============ */
.main-nav > a,
.main-nav > div > span,
.main-nav > div > a {
    position: relative;
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    transition: color .25s ease, background-color .25s ease;
}

/* Subrayado ámbar que crece desde el centro */
.main-nav > a:not(.nav-cta)::after,
.main-nav > div > span::after,
.main-nav > div > a::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transform: scaleX(0);
    transition: transform .3s ease;
}
.main-nav > a:not(.nav-cta):hover::after,
.main-nav > div:hover > span::after,
.main-nav > div:hover > a::after,
.main-nav > a.bg-blue-950\/60::after {
    transform: scaleX(1);
}
.main-nav > a:not(.nav-cta):hover,
.main-nav > div:hover > span,
.main-nav > div:hover > a {
    color: #fcd34d;
    background-color: rgba(255, 255, 255, 0.06);
}

/* Flecha ▼ gira al abrir el submenú */
.main-nav > div > span > span,
.main-nav > div > a > span:last-child {
    display: inline-block;
    transition: transform .3s ease;
}
.main-nav > div:hover > span > span,
.main-nav > div:hover > a > span:last-child {
    transform: rotate(180deg);
}

/* Botón "Contáctanos": destacado con brillo */
.main-nav > a.nav-cta {
    margin-left: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
    animation: ctaPulse 2.8s ease-in-out infinite;
}
.main-nav > a.nav-cta:hover {
    transform: translateY(-1px);
    animation: none;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.45); }
    50%      { box-shadow: 0 0 0 7px rgba(251, 191, 36, 0); }
}

/* ============ HEADER COMPACTO AL HACER SCROLL ============ */
.header-row,
.header-row img {
    transition: height .35s ease, width .35s ease;
}
header.is-scrolled .header-row {
    height: 5rem;
}
header.is-scrolled .header-row a img {
    height: 4.25rem;
    width: 4.25rem;
}
header.is-scrolled {
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.55);
}

/* Barra de progreso de lectura */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    background: linear-gradient(90deg, #f59e0b, #fcd34d, #f59e0b);
    z-index: 60;
    pointer-events: none;
}

/* ============ PUNTOS FLOTANTES ============ */
.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 30;
}
.particle {
    position: absolute;
    bottom: -20px;
    border-radius: 9999px;
    opacity: 0;
    animation: particleRise linear infinite;
}
.particle.glow {
    box-shadow: 0 0 10px 2px currentColor;
}
@keyframes particleRise {
    0%   { transform: translate(0, 0) scale(1);                    opacity: 0; }
    10%  { opacity: var(--op, .6); }
    50%  { transform: translate(var(--dx, 30px), -50vh) scale(1.2); }
    90%  { opacity: var(--op, .6); }
    100% { transform: translate(calc(var(--dx, 30px) * -1), -105vh) scale(.6); opacity: 0; }
}

/* Confeti que cae girando */
.confetti {
    position: absolute;
    top: -30px;
    opacity: 0;
    animation: confettiFall linear infinite;
}
.confetti.circle   { border-radius: 9999px; }
.confetti.square   { border-radius: 2px; }
.confetti.diamond  { border-radius: 2px; transform: rotate(45deg); }
.confetti.triangle {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid currentColor;
}
@keyframes confettiFall {
    0%   { transform: translate(0, 0) rotate(0deg);                               opacity: 0; }
    8%   { opacity: var(--op, .7); }
    25%  { transform: translate(var(--sway, 40px), 26vh) rotate(calc(var(--rot, 360deg) * .25)); }
    50%  { transform: translate(calc(var(--sway, 40px) * -1), 52vh) rotate(calc(var(--rot, 360deg) * .5)); }
    75%  { transform: translate(var(--sway, 40px), 78vh) rotate(calc(var(--rot, 360deg) * .75)); }
    92%  { opacity: var(--op, .7); }
    100% { transform: translate(0, 108vh) rotate(var(--rot, 360deg));             opacity: 0; }
}

/* Estela de puntos que sigue al mouse */
.trail-dot {
    position: fixed;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 9997;
    animation: trailFade .9s ease-out forwards;
}
@keyframes trailFade {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: .9; }
    100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0); opacity: 0; }
}

/* Destellos al hacer clic */
.click-spark {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #fbbf24;
    pointer-events: none;
    z-index: 9998;
    animation: sparkOut .6s ease-out forwards;
}
@keyframes sparkOut {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to   { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(0); opacity: 0; }
}

/* ============ BOTÓN VOLVER ARRIBA ============ */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #172554;
    color: #fbbf24;
    border: 2px solid rgba(251, 191, 36, 0.6);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.5);
    z-index: 40;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .25s ease, color .25s ease;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #f59e0b;
    color: #172554;
    transform: translateY(-3px);
}

/* ============ APARICIÓN AL HACER SCROLL ============ */
.fx-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s ease;
}
.fx-reveal.fx-visible {
    opacity: 1;
    transform: none;
}

/* ============ PLANAS DOCENTES POR PROGRAMA ============ */
.docentes-index-panel {
    position: relative;
    overflow: hidden;
    color: #f8fafc;
    background: linear-gradient(135deg, #102859, #1e3a78 58%, #172554);
    border: 1px solid rgba(251, 191, 36, .7);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .2);
}
.docentes-index-panel__icon {
    color: #fbbf24;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(251, 191, 36, .55);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .025);
}
.docentes-index-panel__eyebrow {
    display: inline-block;
    color: #fcd34d;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(251, 191, 36, .35);
}
.docentes-index-panel__title {
    color: #fcd34d;
    text-shadow: 0 2px 12px rgba(2, 6, 23, .25);
}
.docentes-index-panel__description {
    color: #dbeafe;
}
.docentes-index-card {
    display: flex;
    min-width: 0;
    min-height: 7.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1rem;
    color: #172554;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    text-decoration: none;
    transition: transform .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.docentes-index-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    padding: .55rem;
    object-fit: contain;
    background: #172554;
    border: 1px solid rgba(251, 191, 36, .7);
    border-radius: .8rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .16);
    transition: transform .25s ease, box-shadow .25s ease;
}
.docentes-index-card__name {
    color: #172554;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
    text-align: center;
}
.docentes-index-card:hover,
.docentes-index-card:focus-visible {
    color: #172554;
    background: #fff;
    border-color: #f59e0b;
    box-shadow: 0 14px 24px rgba(2, 6, 23, .14);
    outline: none;
    transform: translateY(-4px);
}
.docentes-index-card:hover .docentes-index-card__icon,
.docentes-index-card:focus-visible .docentes-index-card__icon {
    transform: translateY(-2px) scale(1.08) rotate(-3deg);
    box-shadow: 0 0 18px rgba(251, 191, 36, .35);
}

/* Tarjetas del menú de programas: estilo uniforme en escritorio y plana docente */
.programs-dropdown > div:last-child {
    left: 50% !important;
    width: min(62rem, calc(100vw - 2rem)) !important;
    padding: 1.5rem 2rem 2rem !important;
    border-radius: 0 0 1.75rem 1.75rem !important;
    transform: translateX(-50%) translateY(.5rem) !important;
}
.programs-dropdown:hover > div:last-child,
.programs-dropdown:focus-within > div:last-child {
    transform: translateX(-50%) translateY(0) !important;
}
.programs-dropdown > div:last-child > div:last-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.programs-dropdown > div:last-child > div:last-child > a {
    min-height: 7.25rem;
    justify-content: center;
    gap: .7rem;
    padding: .85rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
    animation: programCardIn .45s both;
}
.programs-dropdown > div:last-child > div:last-child > a:nth-child(3n + 2) {
    animation-delay: .04s;
}
.programs-dropdown > div:last-child > div:last-child > a:nth-child(3n) {
    animation-delay: .08s;
}
.programs-dropdown > div:last-child > div:last-child > a > div {
    width: 3.25rem !important;
    height: 3.25rem !important;
    margin-bottom: 0 !important;
    border-radius: .8rem !important;
    transition: transform .25s ease, box-shadow .25s ease;
}
.programs-dropdown > div:last-child > div:last-child > a:hover,
.programs-dropdown > div:last-child > div:last-child > a:focus-visible {
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, .12);
}
.programs-dropdown > div:last-child > div:last-child > a:hover > div,
.programs-dropdown > div:last-child > div:last-child > a:focus-visible > div {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 18px rgba(251, 191, 36, .4);
}
.programs-dropdown > div:last-child > div:last-child > a h4 {
    font-size: .72rem;
    line-height: 1.35;
    text-align: center;
}
@keyframes programCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    padding: .65rem;
}
.mobile-programs-grid__item {
    display: flex;
    min-width: 0;
    min-height: 5.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem .4rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .8rem;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.mobile-programs-grid__item:hover,
.mobile-programs-grid__item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: #fbbf24;
    outline: none;
    transform: translateY(-2px);
}
.mobile-programs-grid__icon {
    width: 2rem;
    height: 2rem;
    padding: .25rem;
    object-fit: contain;
    background: #fff;
    border-radius: .5rem;
}
.faculty-nav-dropdown.programs-dropdown .faculty-nav-dropdown__panel {
    width: min(62rem, calc(100vw - 2rem));
    transform: translate(-50%, .5rem);
}
.faculty-nav-dropdown.programs-dropdown:hover .faculty-nav-dropdown__panel,
.faculty-nav-dropdown.programs-dropdown:focus-within .faculty-nav-dropdown__panel {
    transform: translate(-50%, 0);
}
.faculty-nav-dropdown.programs-dropdown .faculty-nav-dropdown__item {
    min-height: 7.25rem;
    flex-direction: column;
    justify-content: center;
    gap: .7rem;
    text-align: center;
}
.faculty-nav-dropdown.programs-dropdown .faculty-nav-dropdown__item img {
    flex-basis: 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    padding: .55rem;
    background: #172554;
    border: 1px solid rgba(251, 191, 36, .7);
    border-radius: .8rem;
    transition: transform .25s ease, box-shadow .25s ease;
}
.faculty-nav-dropdown.programs-dropdown .faculty-nav-dropdown__item:hover img,
.faculty-nav-dropdown.programs-dropdown .faculty-nav-dropdown__item:focus-visible img {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 18px rgba(251, 191, 36, .4);
}
.faculty-page {
    background: #f1f5f9;
    min-height: 100vh;
}
.faculty-page > header {
    z-index: 50;
}
.faculty-nav-dropdown {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
}
.faculty-nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: inherit;
    text-decoration: none;
}
.faculty-nav-dropdown__trigger span {
    color: #fcd34d;
    font-size: .65rem;
    transition: transform .25s ease;
}
.faculty-nav-dropdown:hover .faculty-nav-dropdown__trigger span,
.faculty-nav-dropdown:focus-within .faculty-nav-dropdown__trigger span {
    transform: rotate(180deg);
}
.faculty-nav-dropdown__panel {
    position: absolute;
    z-index: 70;
    top: 100%;
    left: 50%;
    width: min(56rem, calc(100vw - 2rem));
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 24px 40px rgba(15, 23, 42, .24);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, .5rem);
    transition: opacity .2s ease, transform .2s ease;
    visibility: hidden;
}
.faculty-nav-dropdown:hover .faculty-nav-dropdown__panel,
.faculty-nav-dropdown:focus-within .faculty-nav-dropdown__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}
.faculty-nav-dropdown__title {
    margin: 0 0 1rem;
    color: #172554;
    font-size: 1.15rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}
.faculty-nav-dropdown__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}
.faculty-nav-dropdown__item {
    display: flex;
    min-width: 0;
    min-height: 3.5rem;
    align-items: center;
    gap: .65rem;
    padding: .7rem;
    color: #172554;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    font-size: .75rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.faculty-nav-dropdown__item:hover,
.faculty-nav-dropdown__item:focus-visible {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #f59e0b;
    outline: none;
}
.faculty-nav-dropdown__item img {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    padding: .2rem;
    object-fit: contain;
    background: #fff;
    border-radius: .4rem;
}
.faculty-hero {
    position: relative;
    display: flex;
    min-height: 20rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(120deg, #071a45, #123b78);
    border-bottom: 4px solid #f59e0b;
    isolation: isolate;
}
.faculty-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(5, 20, 55, .8), rgba(7, 26, 69, .48), rgba(5, 20, 55, .8));
}
.faculty-hero__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.faculty-hero > span,
.faculty-hero > h1,
.faculty-hero > p {
    position: relative;
    z-index: 1;
}
.faculty-hero > h1 {
    text-shadow: 0 3px 14px rgba(2, 6, 23, .6);
}
.faculty-mobile-menu {
    padding: .75rem 1rem 1rem;
    background: #102b62;
    border-top: 1px solid rgba(251, 191, 36, .35);
}
.faculty-mobile-menu:not(.hidden) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}
.faculty-mobile-menu a {
    padding: .75rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, .06);
    border-radius: .6rem;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}
.faculty-mobile-menu a:hover {
    color: #fcd34d;
    background: rgba(255, 255, 255, .12);
}
.faculty-mobile-menu__programs {
    grid-column: 1 / -1;
    padding-top: .5rem;
}
.faculty-mobile-menu__title {
    margin: 0 0 .5rem;
    color: #fcd34d;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.faculty-mobile-menu__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}
.faculty-mobile-menu a.faculty-mobile-menu__program-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 6rem;
    padding: .65rem .4rem;
    font-size: .75rem;
    line-height: 1.3;
    text-align: center;
}
.faculty-mobile-menu__program-link img {
    width: 2.5rem;
    height: 2.5rem;
    padding: .35rem;
    object-fit: contain;
    background: #172554;
    border: 1px solid rgba(251, 191, 36, .7);
    border-radius: .7rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.faculty-mobile-menu__program-link:hover img,
.faculty-mobile-menu__program-link:focus-visible img {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 16px rgba(251, 191, 36, .35);
}
.faculty-mobile-menu a.faculty-mobile-menu__program-link[aria-current="page"] {
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, .7);
}
.faculty-program-navigation {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 1.25rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}
.faculty-program-navigation__title {
    margin: 0 0 1rem;
    color: #172554;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.faculty-program-navigation__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.faculty-program-navigation__link {
    display: flex;
    min-width: 0;
    min-height: 3.4rem;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    color: #173b78;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #60a5fa;
    border-radius: .9rem;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, color .22s ease, background-color .22s ease, border-color .22s ease;
}
.faculty-program-navigation__link img {
    flex: 0 0 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    padding: .15rem;
    object-fit: contain;
    background: rgba(255, 255, 255, .94);
    border-radius: .4rem;
}
.faculty-program-navigation__name {
    min-width: 0;
}
.faculty-program-navigation__link:hover,
.faculty-program-navigation__link.is-current {
    color: #fff;
    background: #1e40af;
    border-color: #f59e0b;
    box-shadow: 0 8px 16px rgba(30, 64, 175, .2);
    transform: translateY(-2px);
}
.faculty-section {
    margin-top: 2rem;
}
.faculty-section__title {
    margin: 0 0 1rem;
    color: #172554;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.faculty-card {
    display: flex;
    min-width: 0;
    gap: 1rem;
    padding: .9rem .95rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.96));
    border: 1px solid #dbe2ea;
    border-radius: 1.15rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.faculty-card:hover {
    border-color: rgba(217, 119, 6, .7);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
    transform: translateY(-3px);
}
.faculty-card--lead {
    border: 2px solid rgba(217, 119, 6, .8);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}
.faculty-card__portrait {
    position: relative;
    display: grid;
    flex: 0 0 5.5rem;
    min-height: 7.2rem;
    overflow: hidden;
    place-items: center;
    background: linear-gradient(145deg, rgba(15, 23, 42, .08), rgba(30, 64, 175, .18));
    border: 2px solid rgba(148, 163, 184, .6);
    border-radius: 1rem;
}
.faculty-card__portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.faculty-card:hover .faculty-card__portrait img {
    transform: scale(1.04);
}
.faculty-card__details {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .38rem;
}
.faculty-card__role {
    color: #1e3a8a;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.faculty-card__name {
    margin: 0;
    color: #0f172a;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.faculty-card__email,
.faculty-card__email-note {
    color: #475569;
    font-size: .75rem;
    overflow-wrap: anywhere;
}
a.faculty-card__email:hover {
    color: #b77908;
    text-decoration: underline;
}
.faculty-card__email--pending,
.faculty-card__email-note {
    color: #9a6700;
}
.faculty-card__documents {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .35rem;
}
.faculty-document {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.2rem;
    padding: .55rem .8rem;
    color: #0f172a;
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
    border: 1px solid rgba(217, 119, 6, .45);
    border-radius: .8rem;
    box-shadow: 0 8px 18px rgba(245, 158, 11, .22);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.faculty-document:hover,
.faculty-document:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(245, 158, 11, .3);
    filter: brightness(1.02);
}
.faculty-document:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 2px;
}
.faculty-document.is-disabled {
    cursor: not-allowed;
    color: #475569;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #cbd5e1;
    box-shadow: none;
}
.faculty-document__icon {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    color: #0f172a;
    font-size: .85rem;
}
.faculty-program-links {
    margin-top: 2.5rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 1rem;
}
.faculty-program-links__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}
.faculty-program-link {
    padding: .7rem .85rem;
    color: #172554;
    background: #f8fafc;
    border: 1px solid #dbe2ea;
    border-radius: .6rem;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.faculty-program-link:hover,
.faculty-program-link.is-current {
    color: #172554;
    background: #fef3c7;
    border-color: #f59e0b;
}
@media (max-width: 767px) {
    .faculty-hero {
        min-height: 17rem;
    }
    .faculty-program-navigation__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .faculty-grid {
        grid-template-columns: 1fr;
    }
    .faculty-card__portrait {
        flex-basis: 5.5rem;
        min-height: 7.5rem;
    }
    .faculty-program-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .faculty-nav-dropdown__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 420px) {
    .faculty-hero {
        min-height: 15rem;
    }
    .faculty-program-navigation__grid {
        grid-template-columns: 1fr;
    }
    .faculty-program-navigation {
        padding: .9rem;
    }
    .faculty-card {
        gap: .65rem;
        padding: .55rem;
    }
    .faculty-card__portrait {
        flex-basis: 4.5rem;
        min-height: 6rem;
    }
    .faculty-card__name {
        font-size: .8rem;
    }
    .faculty-program-links__grid {
        grid-template-columns: 1fr;
    }
    .faculty-nav-dropdown__grid,
    .faculty-mobile-menu__grid {
        grid-template-columns: 1fr;
    }
}

/* ============ PIE DE PÁGINA INSTITUCIONAL ============ */
.site-footer {
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 3.75rem 0 1.5rem;
    color: #e2e8f0;
    background: linear-gradient(125deg, #214fc1, #1e3a8a 68%, #1e40af);
    border-top: 4px solid #fbbf24;
    box-shadow: 0 -12px 32px rgba(15, 23, 42, .14);
}
.site-footer__content {
    width: min(100% - 2rem, 1400px);
    margin: 0 auto;
}
.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(147, 197, 253, .3);
}
.site-footer__column {
    min-width: 0;
}
.site-footer__heading {
    margin: 0 0 1.15rem;
    padding-left: .8rem;
    color: #fff;
    border-left: 4px solid #fbbf24;
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.site-footer__contact {
    display: grid;
    gap: .8rem;
    font-size: .8rem;
    font-style: normal;
    line-height: 1.65;
}
.site-footer__contact p,
.site-footer__claims-copy {
    margin: 0;
}
.site-footer__contact strong {
    color: #fde047;
}
.site-footer__contact a,
.site-footer__list a,
.site-footer__legal a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color .2s ease;
}
.site-footer__contact a:hover,
.site-footer__list a:hover,
.site-footer__legal a:hover {
    color: #fde047;
    text-decoration: underline;
}
.site-footer__contact-actions {
    display: flex;
    gap: .65rem;
    margin-top: 1rem;
}
.site-footer__contact-actions a {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    color: #fff;
    background: rgba(7, 26, 69, .45);
    border-radius: .65rem;
    transition: background-color .2s ease, transform .2s ease;
}
.site-footer__contact-actions a:hover {
    background: #0f2457;
    transform: translateY(-2px);
}
.site-footer__contact-actions svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}
.site-footer__list {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .8rem;
    line-height: 1.5;
}
.site-footer__claims {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-footer__claims-copy {
    font-size: .75rem;
    line-height: 1.6;
}
.site-footer__claims-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem;
    color: #fff;
    background: rgba(7, 26, 69, .45);
    border: 1px solid rgba(251, 191, 36, .55);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .15);
    font-size: .85rem;
    font-weight: 900;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
.site-footer__claims-link:hover {
    color: #fff;
    background: rgba(7, 26, 69, .75);
    transform: translateY(-2px);
}
.site-footer__claims-link strong {
    color: #fde047;
    text-transform: uppercase;
}
.site-footer__claims-icon {
    display: grid;
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border-radius: .7rem;
}
.site-footer__claims-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.site-footer__bottom {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0;
    font-size: .7rem;
}
.site-footer__bottom p {
    margin: 0;
}
.site-footer__legal {
    display: flex;
    gap: 1.5rem;
}
.site-footer__legal a + a {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(226, 232, 240, .7);
}
.site-footer__top {
    position: static;
    display: grid;
    width: 3.4rem;
    height: 3.4rem;
    flex: 0 0 3.4rem;
    margin-left: auto;
    place-items: center;
    color: #fbbf24;
    background: linear-gradient(145deg, rgba(30, 58, 138, .96), rgba(14, 31, 81, .96));
    border: 2px solid #fbbf24;
    border-radius: 9999px;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, .12), 0 10px 20px rgba(15, 23, 42, .2);
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.site-footer__top:hover {
    color: #172554;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 0 5px rgba(251, 191, 36, .18), 0 14px 22px rgba(15, 23, 42, .25);
    transform: translateY(-3px) scale(1.02);
}
.site-footer__top svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
}
@media (max-width: 900px) {
    .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
    .site-footer__bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 3.4rem;
        align-items: end;
        column-gap: .75rem;
    }
    .site-footer__bottom p {
        grid-column: 1 / -1;
    }
    .site-footer__legal {
        grid-column: 1;
        min-width: 0;
        flex-wrap: wrap;
        gap: .75rem;
    }
    .site-footer__legal a + a {
        padding-left: .75rem;
    }
    .site-footer__top {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        margin-left: 0;
    }
}
@media (max-width: 560px) {
    .site-footer {
        padding-top: 2.75rem;
    }
    .site-footer__columns {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-bottom: 1.75rem;
    }
    .site-footer__bottom {
        grid-template-columns: minmax(0, 1fr);
        row-gap: .8rem;
        line-height: 1.6;
    }
    .site-footer__bottom p {
        grid-column: 1;
    }
    .site-footer__legal {
        grid-column: 1;
        grid-row: 2;
    }
    .site-footer__top {
        grid-column: 1;
        grid-row: 3;
        justify-self: end;
    }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .click-spark, .trail-dot { display: none; }
    .particles { opacity: .7; }
    .main-nav > a.nav-cta { animation: none; }
    .fx-reveal { opacity: 1; transform: none; transition: none; }
}
