/*
 * Public site styles. Colors, fonts etc come from --fet-* vars generated from the active theme.
 * Dont hardcode colors here, use the vars.
 */

:root {
    --fet-measure: 68ch;
    --fet-stripe-1: var(--fet-primary-dark);
    --fet-stripe-2: var(--fet-primary);
    --fet-stripe-3: color-mix(in srgb, var(--fet-primary) 45%, var(--fet-tertiary));
    --fet-stripe-4: var(--fet-tertiary);
    --fet-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --fet-focus: var(--fet-text);
    --bs-body-font-family: var(--fet-font);
    --bs-body-color: var(--fet-text);
    --bs-body-bg: var(--fet-bg);
    --bs-link-color-rgb: var(--fet-primary-rgb);
    --bs-border-radius: var(--fet-radius);
}

body {
    overflow-x: clip;
    font-family: var(--fet-font);
    color: var(--fet-text);
    background: var(--fet-bg);
    font-size: var(--fet-font-size, 17px);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fet-font-heading, var(--fet-font));
    font-weight: var(--fet-heading-weight, 700);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: inherit;
    text-wrap: balance;
}

h1 { font-size: calc(clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem) * var(--fet-type-scale, 1)); }
h2 { font-size: calc(clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem) * var(--fet-type-scale, 1)); }
p { text-wrap: pretty; }

.brand-stripes {
    height: 6px;
    background: linear-gradient(90deg,
        var(--fet-stripe-1) 0 38%, var(--fet-stripe-2) 38% 68%,
        var(--fet-stripe-3) 68% 88%, var(--fet-stripe-4) 88% 100%);
}
h3 { font-size: calc(1.3rem * var(--fet-type-scale, 1)); }

a { color: var(--fet-secondary); text-underline-offset: 0.18em; }
a:hover { color: var(--fet-secondary-dark); }

/* focus ring: dark ink on light areas, accent on dark ones, so it passes 3:1 on both (WCAG 1.4.11) */
:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.form-check-input:focus-visible {
    outline: 3px solid var(--fet-focus);
    outline-offset: 2px;
    border-radius: 2px;
}
.drawerbar, .tabnav, .topbar, .mainnav, .site-drawer, .site-footer, .hero, .bg-primary, .bg-secondary,
.page-heading, .slide-caption, .program-hero.is-dark {
    --fet-focus: var(--fet-accent);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    padding: 0.6rem 1rem;
    background: var(--fet-primary);
    color: var(--fet-on-primary);
    border-radius: var(--fet-radius);
}
.skip-link:focus { top: 1rem; color: var(--fet-on-primary); }

main:focus { outline: none; }

.preview-bar {
    background: var(--fet-accent);
    color: var(--fet-on-accent);
    padding: 0.5rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------- Botones ---------- */

.btn { border-radius: var(--fet-radius); font-weight: 700; padding: 0.6rem 1.3rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--fet-ease), filter 0.2s; }
.btn:active { transform: translateY(1px); }

.btn-brand {
    background: var(--fet-primary);
    border: 2px solid var(--fet-primary);
    color: var(--fet-on-primary);
}
.btn-brand:hover, .btn-brand:focus-visible {
    background: var(--fet-primary-dark);
    border-color: var(--fet-primary-dark);
    color: var(--fet-on-primary);
}

.btn-outline-brand {
    background: transparent;
    border: 2px solid var(--fet-primary);
    color: var(--fet-primary-dark);
}
.btn-outline-brand:hover, .btn-outline-brand:focus-visible {
    background: var(--fet-primary);
    color: var(--fet-on-primary);
}

.btn-accent {
    background: var(--fet-accent);
    border: 2px solid var(--fet-accent);
    color: var(--fet-on-accent);
}
/* bootstrap sets its own hover/active background on .btn, each button sets its own so it doesnt go green on green */
.btn.btn-accent:hover, .btn.btn-accent:focus-visible, .btn.btn-accent:active {
    background: color-mix(in srgb, var(--fet-accent) 70%, #fff);
    border-color: color-mix(in srgb, var(--fet-accent) 70%, #fff);
    color: var(--fet-on-accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.btn.btn-brand:active { background: var(--fet-primary-dark); border-color: var(--fet-primary-dark); color: var(--fet-on-primary); }
.btn.btn-outline-brand:active { background: var(--fet-primary); border-color: var(--fet-primary); color: var(--fet-on-primary); }

/* ---------- Encabezado ---------- */

.topbar {
    background: var(--fet-topbar-bg);
    color: var(--fet-on-topbar);
    font-size: 0.85rem;
    padding: 0.35rem 0;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.brandbar {
    background: var(--fet-header-bg);
    color: var(--fet-on-header);
    padding: 0.75rem 0;
}
.brand img { height: 56px; width: auto; }
.brand-text { font-size: 1.6rem; font-weight: 800; color: var(--fet-primary); }
.brand-hashtag {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--fet-primary);
    letter-spacing: -0.02em;
    border-left: 3px solid var(--fet-accent);
    padding-left: 0.9rem;
}
.navbar-toggler {
    border: 2px solid var(--fet-primary);
    color: var(--fet-primary);
    font-size: 1.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--fet-radius);
}

.mainnav {
    background: var(--fet-nav-bg);
    padding: 0;
}
.mainnav .nav-link {
    color: var(--fet-on-nav);
    font-weight: 600;
    padding: 0.85rem 0.9rem;
}
.mainnav .nav-link:hover,
.mainnav .nav-link:focus-visible,
.mainnav .nav-link.show,
.mainnav .nav-link.active {
    color: var(--fet-on-nav);
    background: var(--fet-nav-hover);
}
.mainnav .dropdown-menu {
    border: 0;
    border-top: 3px solid var(--fet-accent);
    border-radius: 0 0 var(--fet-radius) var(--fet-radius);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    min-width: 17rem;
}
.mainnav .dropdown-item { padding: 0.45rem 1.1rem; white-space: normal; }
.mainnav .dropdown-item:active { background: var(--fet-primary); }
.mainnav .dropdown-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fet-muted);
    padding-top: 0.6rem;
}

@media (max-width: 991.98px) {
    .mainnav .navbar-collapse { padding-bottom: 0.5rem; }
    .mainnav .dropdown-menu { box-shadow: none; border-radius: 0; }
}

/* ---------- drawer header ---------- */

/* hides on scroll down, shows on scroll up (site.js) */
.hdr-drawer .site-header,
.hdr-drawer.hdr-sticky .site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--fet-header-bg);
    border-bottom: 3px solid var(--fet-tertiary);
    box-shadow: none;
    /* no will-change or 3d transform at rest: they freeze the header as a gpu layer at the size it was first
       drawn, and the logo (grown at the top) stayed blurry until something forced a repaint, like opening the menu */
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.35s ease;
}
/* the icon font loads late (layouts/site): keep its 1em box so the header does not grow when it arrives */
.site-header .bi { display: inline-block; min-width: 1em; min-height: 1em; }
.hdr-drawer .site-header.is-scrolled { box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); }
.hdr-drawer .site-header.is-hidden { transform: translate3d(0, -100%, 0); box-shadow: none; }
.drawerbar { color: var(--fet-on-header); padding: 0.7rem 0; }

.drawerbar-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.drawerbar-start { display: flex; align-items: center; gap: clamp(0.75rem, 1.5vw, 1.25rem); justify-self: start; }
.drawerbar-end { display: flex; align-items: center; gap: 0.5rem; justify-self: end; }
.hdr-drawer .brand { display: block; padding: 0.2rem 0; }
.hdr-drawer .brand { color: var(--fet-header-accent); text-decoration: none; }
.hdr-drawer .brand img { height: 54px; width: auto; }

.hdr-drawer .drawerbar { padding: 0; }
.hdr-drawer .drawerbar-grid {
    max-width: none;
    min-height: 4rem;
    padding-left: 0;
    padding-right: clamp(1rem, 3vw, 2.5rem);
}
.hdr-drawer .drawerbar-start { align-self: stretch; gap: clamp(1rem, 2vw, 1.5rem); }

.menu-toggle {
    align-self: stretch;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.4rem;
    width: 5.5rem;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--fet-header-bg) 80%, #000);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}
.menu-toggle:hover, .menu-toggle:focus-visible, .menu-toggle[aria-expanded="true"] {
    background: color-mix(in srgb, var(--fet-header-bg) 45%, #000);
}

/* three lines that turn into an X */
.menu-toggle-icon { position: relative; display: block; width: 24px; height: 16px; }
.menu-toggle-icon span {
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease, width 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 7px; width: 70%; }
.menu-toggle-icon span:nth-child(3) { top: 14px; }
.menu-toggle:hover .menu-toggle-icon span:nth-child(2) { width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-btn, .radio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 0 1.1rem;
    border-radius: 12px;
    background: #fff;
    color: var(--fet-header-btn-text);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}
.radio-btn { padding: 0 0.9rem; }
.header-btn:hover, .header-btn:focus-visible, .radio-btn:hover, .radio-btn:focus-visible {
    background: var(--fet-tertiary);
    color: var(--fet-on-tertiary);
}
.header-btn:active, .radio-btn:active { transform: scale(0.97); }
.header-btn .bi, .radio-btn .bi { font-size: 1.1rem; }

.live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #e0312b;
    animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(224, 49, 43, 0.6); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(224, 49, 43, 0); }
}

/* logo goes white on the dark bar. The file has a transparent bg and letters so we get the inverted logo */
.hdr-drawer .brand-invert img { filter: brightness(0) invert(1); }

/* #YoSoyFet "decodes" letter by letter (site.js) */
.hashtag-decode {
    margin: 0;
    font-family: var(--fet-font-heading, var(--fet-font));
    font-weight: 800;
    font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
    letter-spacing: -0.01em;
    color: var(--fet-header-accent);
    white-space: nowrap;
}
.js-decode { display: inline-block; min-width: 9ch; text-align: center; }
.js-decode .is-noise { color: var(--fet-tertiary); text-shadow: 0 0 10px color-mix(in srgb, var(--fet-tertiary) 70%, transparent); }

@media (max-width: 991.98px) {
    .header-btn-label, .radio-btn-label { display: none; }
    .header-btn { padding: 0 0.85rem; }
}
@media (max-width: 767.98px) {
    .hdr-drawer .drawerbar-grid { grid-template-columns: auto 1fr auto; gap: 0.5rem; min-height: 4rem; padding-right: 0.75rem; }
    .hashtag-decode { display: none; }
    .hdr-drawer .drawerbar-start { gap: 0.75rem; }
    .hdr-drawer .brand img { height: 40px; }
    .menu-toggle { width: 4.25rem; font-size: 0.6rem; }
    .header-btn, .radio-btn { height: 2.5rem; padding: 0 0.7rem; }
}

/* search: magnifier in the bar opens a frosted modal (bootstrap handles focus and Esc) */
.search-toggle { padding: 0 0.85rem; }
.search-modal {
    background: color-mix(in srgb, var(--fet-footer-bg) 68%, transparent);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
body:has(.search-modal.show) .modal-backdrop { opacity: 0; }
.search-modal .modal-dialog { max-width: 44rem; margin-top: clamp(1.5rem, 12vh, 7rem); padding: 0 1rem; }
.search-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: calc(var(--fet-radius) + 8px);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    background: var(--fet-bg);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}
.search-modal.fade .modal-dialog { transform: translateY(-8px); transition: transform 0.15s ease-out; }
.search-modal.show .modal-dialog { transform: none; }
.search-modal-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 0 2.5rem 1.25rem 0; }
.search-modal-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.4rem 0.4rem 1.1rem;
    border: 2px solid var(--fet-border);
    border-radius: 999px;
    background: var(--fet-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-modal-field:focus-within { border-color: var(--fet-primary); box-shadow: 0 0 0 4px rgba(var(--fet-primary-rgb), 0.15); }
.search-modal-field > .bi { color: var(--fet-muted); font-size: 1.15rem; }
.search-modal-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 1.15rem;
    color: var(--fet-text);
    padding: 0.5rem 0;
}
/* the field shows focus with its border, so no ring on the input itself */
.search-modal-field input:focus-visible { outline: none; }
.search-modal-field .btn { flex-shrink: 0; }
.search-modal-hint { margin: 1rem 0 0 0.5rem; font-size: 0.9rem; color: var(--fet-muted); }
/* live results under the field */
.search-modal form.is-loading .search-modal-field > .bi { animation: search-pulse 0.8s ease-in-out infinite alternate; }
@keyframes search-pulse { to { opacity: 0.25; } }
.search-live-list { list-style: none; padding: 0; margin: 1rem 0 0; max-height: min(50vh, 26rem); overflow-y: auto; }
.search-live-list a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--fet-radius);
    color: var(--fet-text);
    text-decoration: none;
}
.search-live-list a:hover, .search-live-list a:focus-visible { background: var(--fet-primary-light); }
.search-live-list .bi {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: calc(var(--fet-radius) / 1.5);
    background: var(--fet-surface);
    color: var(--fet-primary-dark);
}
.search-live-text { display: flex; flex-direction: column; min-width: 0; }
.search-live-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-live-meta { font-size: 0.8rem; color: var(--fet-muted); }
.search-live-all { display: inline-flex; gap: 0.35rem; margin: 0.75rem 0 0 0.75rem; font-weight: 700; color: var(--fet-primary-dark); }
.search-live-all::after { content: "→"; }
.search-live-empty { margin: 1rem 0 0 0.5rem; color: var(--fet-muted); }
.search-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: var(--fet-surface);
    color: var(--fet-text);
}
.search-modal-close:hover { background: var(--fet-border); }
@media (max-width: 575.98px) {
    .search-modal-field { flex-wrap: wrap; border-radius: var(--fet-radius); padding: 0.4rem 0.4rem 0.4rem 1rem; }
    .search-modal-field .btn { width: 100%; }
}

/* enroll button (accent) next to Estudiantes/Radio, hidden on phones to keep the bar short */
.header-enroll { height: 2.75rem; display: inline-flex; align-items: center; white-space: nowrap; font-weight: 800; }
@media (max-width: 767.98px) { .header-enroll { display: none; } }

/* ---------- desktop menu (Configuración > Encabezado: two_rows | one_row) ----------
   phones/tablets keep the side menu; site.js adds .desknav-overflow when the menu doesnt fit */
.desknav { display: none; }
.desknav-list { flex-direction: row; flex-wrap: nowrap; width: max-content; margin: 0 auto; gap: 0.1rem; }
.desknav .nav-link { font-weight: 600; white-space: nowrap; padding: 0.8rem 0.75rem; }
.desknav .dropdown-menu, .tabnav .dropdown-menu {
    border: 0;
    border-radius: var(--fet-radius);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 0.5rem;
    min-width: 17rem;
    --fet-focus: var(--fet-text); /* white menu, even inside the green bar */
    --bs-dropdown-link-active-bg: var(--fet-primary-light);
    --bs-dropdown-link-active-color: var(--fet-text);
}
.desknav .dropdown-item, .tabnav .dropdown-item { border-radius: calc(var(--fet-radius) / 2); padding: 0.45rem 0.75rem; white-space: normal; }
.desknav .dropdown-item:hover, .desknav .dropdown-item:focus-visible,
.tabnav .dropdown-item:hover, .tabnav .dropdown-item:focus-visible { background: var(--fet-primary-light); color: var(--fet-text); }
.desknav .dropdown-header, .tabnav .dropdown-header { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fet-muted); }
.desknav .dropdown-item.ps-4, .tabnav .dropdown-item.ps-4 { padding-left: 0.75rem !important; }
.dropdown-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; font-weight: 600; }
.dropdown-group > summary::-webkit-details-marker { display: none; }
.dropdown-group-list { margin: 0.15rem 0 0.35rem 0.75rem; padding-left: 0.4rem; border-left: 2px solid var(--fet-stripe-3); }

@media (min-width: 992px) {
    .has-desknav:not(.desknav-overflow) .desknav { display: block; }
    .has-desknav:not(.desknav-overflow) .menu-toggle { display: none; }
    .has-desknav:not(.desknav-overflow) .drawerbar-grid { padding-left: clamp(1rem, 3vw, 2.5rem); }

    /* two rows: light bar under the green one */
    .desknav-bar { background: var(--fet-bg); border-top: 1px solid var(--fet-border); }
    .desknav-bar .nav-link { color: var(--fet-text); }
    .desknav-bar .nav-link:hover, .desknav-bar .nav-link.show, .desknav-bar .nav-link.active {
        color: var(--fet-primary-dark);
        box-shadow: inset 0 -3px 0 var(--fet-primary);
    }
    .desknav-two_rows:not(.desknav-overflow) .hashtag-decode { font-size: 1.2rem; }

    /* one row: menu inside the green bar, no hashtag */
    .desknav-one_row:not(.desknav-overflow) .drawerbar-grid { grid-template-columns: auto minmax(0, 1fr) auto; }
    .desknav-one_row:not(.desknav-overflow) .hashtag-decode { display: none; }
    .desknav-one_row .desknav .nav-link { color: var(--fet-on-header); padding: 1.6rem 0.45rem; font-size: 0.95rem; }
    .desknav-one_row:not(.desknav-overflow) .drawerbar-grid { gap: 0.75rem; padding-left: 1.25rem; padding-right: 1.25rem; }
    /* room for the menu: Estudiantes and Radio go icon only (they keep their accessible name) */
    .desknav-one_row:not(.desknav-overflow) .header-btn-label,
    .desknav-one_row:not(.desknav-overflow) .radio-btn-label { display: none; }
    .desknav-one_row:not(.desknav-overflow) .header-btn { padding: 0 0.85rem; }
    .desknav-one_row .desknav .nav-link:hover, .desknav-one_row .desknav .nav-link.show, .desknav-one_row .desknav .nav-link.active {
        box-shadow: inset 0 -4px 0 var(--fet-tertiary);
    }
}

/* ---------- header tab (header_nav = tab) ----------
   the areas hang under the yellow line in a dark green tab; MENU keeps the rest, so the side menu
   doesnt repeat them. Desktop: the tab floats over the banner. Phones and tablets: same tab, smaller,
   below the bar (the banner there is short, covering it would hide most of it) */
.hdr-drawer .site-header.has-tabnav { background: transparent; border-bottom: 0; }
.hdr-drawer .site-header.has-tabnav.is-scrolled { box-shadow: none; }
.has-tabnav .drawerbar { background: var(--fet-header-bg); border-bottom: 3px solid var(--fet-tertiary); }
.menu-open .tabnav { visibility: hidden; }

.tabnav {
    --tab-cut: 1.5rem;
    --tab-stripe: 0.3rem;
    position: relative;
    isolation: isolate;
    display: block;
    width: max-content;
    max-width: 100%;
    padding: 0 calc(var(--tab-cut) + var(--tab-stripe)) 0 0.25rem;
    color: var(--fet-on-header);
}
/* diagonal cut. The yellow layer peeks out along the cut and meets the yellow line */
.tabnav::before, .tabnav::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.tabnav::before { background: var(--fet-tertiary); clip-path: polygon(0 0, 100% 0, calc(100% - var(--tab-cut)) 100%, 0 100%); }
.tabnav::after {
    background: var(--fet-footer-bg);
    clip-path: polygon(0 0, calc(100% - var(--tab-stripe)) 0, calc(100% - var(--tab-cut) - var(--tab-stripe)) 100%, 0 100%);
}
.tabnav-list { flex-direction: row; flex-wrap: nowrap; }
.tabnav .nav-link { color: var(--fet-on-header); font-weight: 600; }
.tabnav .nav-link:hover, .tabnav .nav-link:focus-visible, .tabnav .nav-link.show {
    color: var(--fet-on-header);
    background: color-mix(in srgb, var(--fet-on-header) 9%, transparent);
}

@media (max-width: 991.98px) {
    /* phones: icon over a short label, so the 4 areas fit in 360px */
    .tabnav .nav-link { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.45rem 0.5rem 0.4rem; font-size: 0.68rem; line-height: 1.1; }
    .tabnav .nav-link .bi { font-size: 1.15rem; }
    .tabnav .dropdown-toggle::after { display: none; }
    .tabnav .nav-link.active { box-shadow: inset 0 -3px 0 var(--fet-tertiary); }
    .tabnav .dropdown-menu { max-width: calc(100vw - 1rem); }
}
/* tablets: icon and label side by side, like on the computer */
@media (min-width: 576px) and (max-width: 991.98px) {
    .tabnav { --tab-cut: 1.9rem; padding-left: 0.5rem; }
    .tabnav .nav-link { flex-direction: row; gap: 0.45rem; padding: 0.75rem 0.85rem; font-size: 0.85rem; }
    .tabnav .nav-link .bi { font-size: 1rem; }
}

@media (min-width: 992px) {
    .tabnav {
        --tab-cut: 2.25rem;
        --tab-stripe: 0.4rem;
        /* hangs over the top of the page (banner, hero) instead of pushing it down */
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0 calc(var(--tab-cut) + var(--tab-stripe)) 0 0.5rem;
    }

    .tabnav-list { height: 2.9rem; }
    .tabnav .nav-item { position: relative; display: flex; }
    .tabnav .nav-item + .nav-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 32%;
        bottom: 32%;
        width: 1px;
        background: color-mix(in srgb, var(--fet-on-header) 28%, transparent);
    }
    .tabnav .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0 clamp(0.7rem, 1.2vw, 1.15rem);
        color: var(--fet-on-header);
        font-weight: 600;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    .tabnav .nav-link .bi { font-size: 1.05rem; opacity: 0.85; }
    .tabnav .nav-link:hover, .tabnav .nav-link:focus-visible, .tabnav .nav-link.show {
        color: var(--fet-on-header);
        background: color-mix(in srgb, var(--fet-on-header) 9%, transparent);
    }
    /* small slanted yellow bar under the area you are in */
    .tabnav .nav-link.active::before {
        content: "";
        position: absolute;
        left: clamp(0.7rem, 1.2vw, 1.15rem);
        right: clamp(0.7rem, 1.2vw, 1.15rem);
        bottom: 0.5rem;
        height: 3px;
        background: var(--fet-tertiary);
        transform: skewX(-35deg);
    }
    .tabnav .dropdown-toggle::after {
        width: 0.42rem;
        height: 0.42rem;
        margin: -0.2rem 0 0 0.1rem;
        border: 0;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        opacity: 0.8;
        transition: transform 0.2s var(--fet-ease);
    }
    .tabnav .dropdown-toggle.show::after { transform: translateY(0.2rem) rotate(-135deg); }
    .tabnav .dropdown-menu { margin-top: 0 !important; border-top: 3px solid var(--fet-tertiary); border-top-left-radius: 0; border-top-right-radius: 0; }
}

/* the strip panel and the tab panel look the same */
.header-strip, .tabnav {
    --strip-panel-border: color-mix(in srgb, var(--fet-primary) 14%, #fff);
    --strip-panel-text: color-mix(in srgb, var(--fet-primary-dark) 55%, #000);
    --strip-panel-muted: color-mix(in srgb, var(--fet-primary-dark) 60%, #777);
    --strip-panel-hover: color-mix(in srgb, var(--fet-primary) 8%, #fff);
}
.header-strip {
    --strip-bg: var(--fet-header-bg);
    --strip-text: var(--fet-on-header);
    --strip-hover: rgba(255, 255, 255, 0.12);
    --strip-featured: var(--fet-tertiary);
    --strip-featured-hover: color-mix(in srgb, var(--fet-tertiary) 95%, #000);
    --strip-featured-text: var(--fet-footer-bg);
    --fet-focus: var(--fet-accent);
    position: relative;
    z-index: 60;
    background: var(--strip-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--fet-font);
}
.header-strip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 40px;
    margin: 0;
    padding: 0 28px 0 0;
    list-style: none;
}
.header-strip-item { position: relative; display: flex; }
.header-strip-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 40px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--strip-text);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.header-strip-trigger:hover,
.header-strip-trigger[aria-expanded="true"] { background: var(--strip-hover); color: #fff; }
.header-strip-chevron { font-size: 12px; transition: transform 0.2s var(--fet-ease); }
.header-strip-trigger[aria-expanded="true"] .header-strip-chevron { transform: rotate(180deg); }
.header-strip-trigger:focus-visible { outline-offset: -3px; }

.is-featured { margin-left: 10px; }
.is-featured .header-strip-trigger { background: var(--strip-featured); color: var(--strip-featured-text); font-weight: 800; --fet-focus: var(--fet-footer-bg); }
.is-featured .header-strip-trigger:hover,
.is-featured .header-strip-trigger[aria-expanded="true"] { background: var(--strip-featured-hover); color: var(--strip-featured-text); }
.header-strip-icon { font-size: 18px; }

.header-strip-panel {
    --fet-focus: var(--fet-text);
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    width: 320px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    background: #fff;
    border: 1px solid var(--strip-panel-border);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(7, 70, 24, 0.28), 0 2px 6px rgba(7, 70, 24, 0.12);
}
.header-strip-panel[hidden] { display: none; }
.is-featured .header-strip-panel { left: auto; right: 0; width: 340px; }
.header-strip-kicker {
    margin: 0;
    padding: 6px 12px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--strip-panel-muted);
}
.header-strip-links { margin: 0; padding: 0; list-style: none; }
.header-strip-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--strip-panel-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}
.header-strip-link:hover, .header-strip-link:focus-visible { background: var(--strip-panel-hover); color: var(--strip-panel-text); }
.header-strip-arrow { flex: none; font-size: 18px; line-height: 1.1; color: var(--fet-primary); }
.header-strip-text { display: flex; flex-direction: column; gap: 2px; }
.header-strip-text small { font-size: 13px; font-weight: 400; color: var(--strip-panel-muted); }

/* header tab (franja 3): its dropdowns are the strip panel, with bootstrap's dropdown behind */
.tabnav .nav-panel {
    width: 320px;
    max-width: calc(100vw - 32px);
    margin-top: 8px !important;
    padding: 12px;
    border: 1px solid var(--strip-panel-border);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(7, 70, 24, 0.28), 0 2px 6px rgba(7, 70, 24, 0.12);
}
.nav-panel .header-strip-link { padding: 11px 12px; border-radius: 12px; color: var(--strip-panel-text); font-size: 16px; white-space: normal; }
.nav-panel .header-strip-link:hover, .nav-panel .header-strip-link:focus-visible,
.nav-panel .header-strip-link:active { background: var(--strip-panel-hover); color: var(--strip-panel-text); }
.nav-panel .dropdown-group > summary { justify-content: flex-start; font-weight: 500; }
.nav-panel .dropdown-group-chevron { margin-left: auto; align-self: center; font-size: 12px; color: var(--strip-panel-muted); }
.nav-panel .dropdown-group-list { margin: 0 0 4px 21px; padding-left: 8px; }
.nav-panel .dropdown-group-list .header-strip-link { padding: 8px 10px; font-size: 15px; }

/* strip steps (site.js): .is-top = strip + floating logo card; scrolled = the strip slides away and the logo
   goes back to normal and the strip items move into the tab; .is-hidden = only the tab stays. Only transform/opacity animate */
.hdr-drawer .site-header.has-strip:not(.is-top) { transform: translate3d(0, calc(-1 * var(--strip-h, 41px)), 0); }
.hdr-drawer .site-header.has-strip.is-hidden { transform: translate3d(0, calc(-1 * var(--hdr-hide, 100%)), 0); }

.has-strip .tabnav { display: flex; align-items: stretch; }
.has-strip .tabnav-extra { display: none; }
.has-strip:not(.is-top) .tabnav-extra { animation: tabnav-extra-in 0.35s var(--fet-ease) both; }
@keyframes tabnav-extra-in { from { opacity: 0; transform: translateX(-0.5rem); } }
.tabnav-extra .dropdown-menu { max-height: calc(100vh - 5rem); overflow-y: auto; }
/* narrow phones: the chevrons go (aria-expanded still says it opens) and the tab tightens up so «Más» fits */
@media (max-width: 420px) {
    .header-strip-chevron { display: none; }
    .header-strip-trigger { padding: 0 6px; }
    .has-strip:not(.is-top) .tabnav { --tab-cut: 1rem; }
    .has-strip:not(.is-top) .tabnav .nav-link { padding-inline: 0.3rem; font-size: 0.6rem; }
}
@media (min-width: 1200px) {
    .has-strip:not(.is-top) .tabnav-extra-wide { display: flex; border-left: 1px solid color-mix(in srgb, var(--fet-on-header) 28%, transparent); margin-left: 0.25rem; }
}
@media (max-width: 1199.98px) {
    .has-strip:not(.is-top) .tabnav-extra-narrow { display: flex; }
    .has-strip:not(.is-top) .tabnav-extra-narrow .nav-link { color: var(--fet-tertiary); }
}

@media (min-width: 992px) {
    /* MENU takes the tab color, so MENU and the tab read as one dark frame */
    .has-strip .menu-toggle {
        position: relative;
        z-index: 61;
        margin-top: -41px;
        padding-top: 41px;
        background: var(--fet-footer-bg);
        transition: background 0.2s ease, padding-top 0.45s var(--fet-ease);
    }
    .has-strip.is-top .menu-toggle { padding-top: 0; }
    .has-strip .menu-toggle:hover, .has-strip .menu-toggle:focus-visible, .has-strip .menu-toggle[aria-expanded="true"] {
        background: color-mix(in srgb, var(--fet-footer-bg) 70%, #000);
    }

    /* top: the logo grows to the height of MENU (strip + bar); scrolled: back to its size in the bar.
       Only a transform, so nothing around it moves */
    .has-strip .brand { position: relative; z-index: 61; }
    /* a real size, not transform: scale(). Chrome painted the white filter at the small size and then stretched
       that picture, so the logo looked blurry until something repainted it (opening a menu). The negative
       margins keep the bar as tall as before; the first grid column has room for the extra width */
    .has-strip .brand img { transition: height 0.45s var(--fet-ease), margin 0.45s var(--fet-ease), filter 0.45s ease; }
    .has-strip.is-top .brand img { height: 72px; margin: -30px 0 4px; }
    .hdr-drawer .has-strip.is-top .brand-invert img { filter: brightness(0) invert(1) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3)); }
    /* the thin strip line starts after the big logo: MENU, logo, line */
    .has-strip .header-strip { border-bottom-color: transparent; }
    .has-strip .header-strip::after {
        content: "";
        position: absolute;
        left: var(--strip-line-left, calc(5.5rem + clamp(1rem, 2vw, 1.5rem) + 11.5rem));
        right: 0;
        bottom: -1px;
        height: 1px;
        background: rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 640px) {
    .header-strip-list { padding: 0; flex-wrap: nowrap; }
    .header-strip-item { position: static; flex: 1 1 auto; }
    .header-strip-trigger { width: 100%; justify-content: center; padding: 0 8px; font-size: 13.5px; }
    .is-featured { margin-left: 0; }
    .header-strip-panel,
    .is-featured .header-strip-panel { left: 16px; right: 16px; width: auto; max-width: none; }
}

/* ---------- side menu ---------- */

/* opens below the bar so the X button stays visible to close it */
.hdr-drawer .site-drawer.offcanvas-start { top: var(--hdr-h, 0px); }
.hdr-drawer .offcanvas-backdrop { top: var(--hdr-h, 0px); }
.hdr-drawer.menu-open .site-header { z-index: 1050; transform: none; }

/* only animate transform (gpu), no blur or gradients while moving */
.site-drawer.offcanvas-start {
    --bs-offcanvas-width: min(420px, 90vw);
    --bs-offcanvas-transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
    border: 0;
    background: var(--fet-footer-bg);
    color: var(--fet-on-footer);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}
.offcanvas-backdrop { transition: opacity 0.3s ease; }
.offcanvas-backdrop.show { opacity: 0.4; }
.site-drawer a:not(.btn) { color: inherit; text-decoration: none; }
.site-drawer > * { flex-shrink: 0; }

.site-drawer-head { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; padding: 0.9rem 1.5rem 0.5rem; }
.site-drawer-title {
    margin: 0;
    font-family: var(--fet-font-heading, var(--fet-font));
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
}
.site-drawer-close {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
    background: transparent;
    color: inherit;
    transition: background 0.25s, transform 0.4s var(--fet-ease);
}
.site-drawer-close:hover, .site-drawer-close:focus-visible { background: var(--fet-on-footer); color: var(--fet-footer-bg); }

.site-drawer-viewport { position: relative; flex: 1 1 auto; overflow: hidden; }
.drawer-panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 1.5rem 1.5rem;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
    will-change: transform;
    backface-visibility: hidden;
}
.drawer-panel.is-active { transform: translate3d(0, 0, 0); }
.drawer-panel.is-behind { transform: translate3d(-25%, 0, 0); opacity: 0; pointer-events: none; }

.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    background: none;
    color: inherit;
    font-family: var(--fet-font-heading, var(--fet-font));
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    text-align: left;
}
.drawer-link .bi { font-size: 1rem; opacity: 0.6; transition: transform 0.35s var(--fet-ease), opacity 0.25s; }
.drawer-link span { background: linear-gradient(var(--fet-tertiary), var(--fet-tertiary)) 0 100% / 0 2px no-repeat; transition: background-size 0.4s var(--fet-ease); padding-bottom: 2px; }
.drawer-link:hover span, .drawer-link:focus-visible span { background-size: 100% 2px; }
.drawer-link:hover .bi, .drawer-link:focus-visible .bi { transform: translateX(5px); opacity: 1; }
.drawer-link.is-current { color: var(--fet-tertiary); }

.drawer-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.4rem 0.9rem 0.4rem 0.7rem;
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.25s;
}
.drawer-back[hidden] { display: none; }
.drawer-back:hover, .drawer-back:focus-visible { background: color-mix(in srgb, currentColor 12%, transparent); }
.drawer-panel-title {
    font-family: var(--fet-font-heading, var(--fet-font));
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    margin: 0.25rem 0 0.75rem;
    color: var(--fet-tertiary);
}
.drawer-list-sub > li { border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.drawer-sublink { display: block; padding: 0.7rem 0; font-size: 1.05rem; opacity: 0.88; transition: opacity 0.2s, padding-left 0.35s var(--fet-ease); }
.drawer-sublink:hover, .drawer-sublink:focus-visible { opacity: 1; padding-left: 0.4rem; }
.drawer-sublink.is-current { color: var(--fet-tertiary); opacity: 1; }
/* Pregrado / Posgrados: a group that opens its own list */
.drawer-subgroup-title { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; font-size: 1.05rem; cursor: pointer; list-style: none; opacity: 0.88; }
.drawer-subgroup-title::-webkit-details-marker { display: none; }
.drawer-subgroup-title:hover, .drawer-subgroup-title:focus-visible, .drawer-subgroup[open] > .drawer-subgroup-title { opacity: 1; }
.drawer-subgroup-title .bi, .dropdown-group-chevron { transition: transform 0.25s var(--fet-ease); }
.drawer-subgroup[open] > .drawer-subgroup-title .bi, .dropdown-group[open] > summary .dropdown-group-chevron { transform: rotate(180deg); }
.drawer-subgroup ul { margin-bottom: 0.6rem !important; }
.drawer-subgroup ul { list-style: none; padding: 0 0 0 0.9rem; margin: 0; border-left: 2px solid var(--fet-stripe-3); }
.drawer-subgroup .drawer-sublink { padding: 0.45rem 0; }

.site-drawer.showing .drawer-panel.is-active .drawer-list > li,
.drawer-panel.is-active .drawer-list-sub > li {
    animation: drawer-item 0.32s cubic-bezier(0.32, 0.72, 0, 1) both;
    animation-delay: calc(0.08s + var(--i, 0) * 0.025s);
}
@keyframes drawer-item {
    from { opacity: 0; transform: translate3d(-10px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.site-drawer-foot {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.site-drawer-social { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.site-drawer-social-link {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.site-drawer-social-link:hover { background: var(--fet-tertiary); border-color: var(--fet-tertiary); color: var(--fet-on-tertiary) !important; }

/* ---------- Bloques y secciones ---------- */

.section { padding: var(--fet-section-space) 0; }
.block + .block .section.bg-none { padding-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.section-tight { padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem) 0; }
.heading-block { max-width: var(--fet-measure); }
.heading-block-title { margin: 0; }
.heading-block-subtitle { margin: 0.75rem 0 0; font-size: 1.125rem; color: var(--fet-muted); }
.bg-primary .heading-block-subtitle, .bg-secondary .heading-block-subtitle { color: inherit; opacity: 0.9; }
.single-image { margin: 0; }
.single-image img { display: block; width: 100%; height: auto; border-radius: var(--fet-radius); }
.single-image.is-full img { border-radius: 0; }
.single-image figcaption { margin-top: 0.6rem; font-size: 0.92rem; color: var(--fet-muted); }

.bg-light { background: var(--fet-surface) !important; }
.bg-primary { background: var(--fet-primary) !important; color: var(--fet-on-primary); }
.bg-secondary { background: var(--fet-secondary) !important; color: var(--fet-on-secondary); }
.bg-primary a:not(.btn), .bg-secondary a:not(.btn) { color: inherit; }

.measure { max-width: var(--fet-measure); }
.measure-wide { max-width: 58rem; }
/* long text across the full width: two columns on wide screens, so the right side is not left empty */
.prose-columns .prose { max-width: 100%; }
@media (min-width: 992px) {
    .prose-columns .prose { column-count: 2; column-gap: 3rem; }
    .prose-columns .prose > :first-child { margin-top: 0; }
    .prose-columns .prose p { break-inside: avoid-column; }
}

.section-heading { max-width: var(--fet-measure); margin-bottom: 2.25rem; }
.section-heading h2 { margin-bottom: 0.6rem; }
.section-heading h2::before {
    content: "";
    display: block;
    width: 3.25rem;
    height: 0.4rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fet-stripe-2) 0 50%, var(--fet-stripe-3) 50% 78%, var(--fet-stripe-4) 78%);
}
.headings-center .section-heading h2::before { margin-left: auto; margin-right: auto; }
.bg-primary .section-heading h2::before, .bg-secondary .section-heading h2::before {
    background: linear-gradient(90deg, currentColor 0 50%, var(--fet-stripe-3) 50% 78%, var(--fet-stripe-4) 78%);
}
.section-intro { font-size: 1.125rem; color: var(--fet-muted); margin: 0; }
.bg-primary .section-intro, .bg-secondary .section-intro { color: inherit; opacity: 0.9; }

.page-heading {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--fet-primary-dark);
    color: #fff;
    padding: clamp(2.75rem, 2rem + 3.5vw, 5rem) 0;
}
.page-heading::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -10%;
    bottom: -10%;
    right: -3rem;
    width: min(42vw, 26rem);
    transform: skewX(-16deg);
    background: linear-gradient(90deg,
        var(--fet-stripe-2) 0 24%, transparent 24% 32%,
        var(--fet-stripe-3) 32% 54%, transparent 54% 62%,
        var(--fet-stripe-4) 62% 72%, transparent 72%);
}
.page-heading .container { position: relative; }
.page-heading h1 { margin: 0; max-width: 22ch; color: #fff; }
.page-heading .lead { max-width: 58ch; margin: 1rem 0 0; color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; }
@media (max-width: 767.98px) {
    .page-heading::after { width: 34vw; right: -5rem; opacity: 0.55; }
}

.rounded-brand { border-radius: var(--fet-radius); }

/* ---------- Texto enriquecido ---------- */

.prose { overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--fet-radius); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.prose blockquote {
    border-left: 4px solid var(--fet-accent);
    padding: 0.25rem 0 0.25rem 1rem;
    color: var(--fet-muted);
    font-style: italic;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}
@media (max-width: 767.98px) {
    .prose table { display: block; overflow-x: auto; }
}
/* "anywhere" lets a table column shrink to one letter, so cells use break-word and the table scrolls sideways */
.prose th, .prose td { overflow-wrap: break-word; }
.prose th, .prose td { border-bottom: 1px solid var(--fet-border); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--fet-surface); font-weight: 700; }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--fet-radius); }
.prose-sm { font-size: 0.95rem; }

/* ---------- Portada (hero) ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--fet-primary-dark);
    color: #fff;
    overflow: hidden;
}
.hero-md { min-height: clamp(320px, 45vh, 460px); }
.hero-lg { min-height: clamp(420px, 70vh, 680px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--fet-hero-overlay);
}
.hero-content { position: relative; z-index: 1; padding-block: 3rem; }
.hero-text { max-width: 44rem; }
.hero-eyebrow { font-weight: 700; font-size: 1.05rem; color: var(--fet-accent); margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.hero h1 { color: #fff; font-size: calc(clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem) * var(--fet-type-scale, 1)); }
.hero-lead { font-size: 1.2rem; margin-top: 1rem; }

/* ---------- Carrusel de banners ---------- */

/* banners have text baked in, show them whole (no crop) */
.home-slider { position: relative; background: var(--fet-surface); }
.home-slider .swiper-slide { position: relative; }
.slide-image { display: block; width: 100%; height: auto; }
.slide-link { display: block; }
.slide-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem 0 4.5rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}
.slide-caption h2 { color: #fff; margin-bottom: 0.25rem; }

.carousel-ui { display: flex; align-items: center; gap: 0.5rem; }
/* below the banner, not on top, banners have text everywhere */
.home-slider .carousel-ui { justify-content: center; padding: 0.5rem 1rem; background: var(--fet-bg); border-bottom: 1px solid var(--fet-border); }
.carousel-ui-inline { margin-top: 1.5rem; flex-wrap: wrap; }
.carousel-btn {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 2px solid var(--fet-primary);
    background: var(--fet-bg);
    color: var(--fet-primary-dark);
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.home-slider .carousel-btn { width: 2.25rem; height: 2.25rem; border-width: 0; background: transparent; }
.carousel-btn:hover, .carousel-btn:focus-visible { background: var(--fet-primary); color: var(--fet-on-primary); }
.carousel-btn.swiper-button-disabled { opacity: 0.35; pointer-events: none; }
.carousel-btn.swiper-button-lock { display: none; }
.carousel-dots { display: flex; align-items: center; gap: 0.4rem; padding: 0 0.35rem; position: static; width: auto !important; }
.carousel-dots.swiper-pagination-lock { display: none; }
/* the bullet is a 24px touch target (WCAG 2.5.8), the dot you see is ::before */
.carousel-dots { gap: 0; }
.carousel-dots .swiper-pagination-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 24px;
    height: 24px;
    margin: 0 !important;
    border-radius: 999px;
    background: transparent;
    opacity: 1;
}
.carousel-dots .swiper-pagination-bullet::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--fet-primary);
    opacity: 0.3;
    transition: width 0.3s var(--fet-ease), opacity 0.3s;
}
.carousel-dots .swiper-pagination-bullet-active::before { width: 1.6rem; opacity: 1; }
.carousel-pause { flex-shrink: 0; }
.home-slider .carousel-pause,
.home-slider .slide-sound {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    border: 0;
    background: var(--fet-bg);
    box-shadow: var(--fet-shadow);
}
.home-slider .slide-sound { right: 3.75rem; }
.home-slider .carousel-pause:hover, .home-slider .carousel-pause:focus-visible,
.home-slider .slide-sound:hover, .home-slider .slide-sound:focus-visible { background: var(--fet-primary); color: var(--fet-on-primary); }
/* keep them clear of the floating social bar */
@media (min-width: 1210px) {
    .home-slider .carousel-pause { right: 4.5rem; }
    .home-slider .slide-sound { right: 7.25rem; }
}
/* site.js may cut the height to fit the screen: crop more at the top than the bottom, subtitles live down there */
.slide-video { object-fit: cover; object-position: 50% 70%; background: var(--fet-surface); }
/* cropped banner video: the frame has the shape of the box and the video is scaled and moved so only the box shows.
   If the screen is too short (fetFitVideos lowers the frame) the box stays centered. The crop is only for the video:
   the poster is its own image under it, filling the banner like an uncropped one. With reduced motion the video has
   native controls, so it is shown whole */
.slide-video-frame { position: relative; }
.slide-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
/* until it has a frame the video is see-through, so the poster under it shows */
.slide-video-frame .slide-video { position: relative; background: transparent; }
@media (prefers-reduced-motion: no-preference) {
    /* width 100%: with a fixed height, aspect-ratio would otherwise take the width from the height */
    .slide-video-frame { overflow: hidden; width: 100%; aspect-ratio: var(--crop-ratio); }
    .slide-video-frame .slide-video { position: absolute; max-width: none; object-fit: cover;
        width: calc(100% / var(--crop-w)); height: auto; aspect-ratio: var(--crop-r);
        left: calc(-100% * var(--crop-x) / var(--crop-w)); top: 50%;
        transform: translateY(calc(-100% * (var(--crop-y) + var(--crop-h) / 2))); }
}
.carousel-all { margin-left: auto; font-weight: 700; text-decoration: none; color: var(--fet-primary-dark); }
.carousel-all:hover { text-decoration: underline; }
.carousel-all .bi { transition: transform 0.2s var(--fet-ease); display: inline-block; }
.carousel-all:hover .bi { transform: translateX(3px); }
.programs-carousel .swiper-slide, .gallery-carousel .swiper-slide { height: auto; }
.programs-carousel { padding: 0.5rem 0.5rem 0.25rem; margin: -0.5rem -0.5rem 0; }
@media (max-width: 767.98px) { .programs-carousel { padding: 0.5rem 0 0.25rem; margin: -0.5rem 0 0; } }
.programs-carousel-foot { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; }

.program-slide {
    --program: var(--fet-primary);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    height: 100%;
    min-height: 22rem;
    overflow: hidden;
    border-radius: var(--fet-radius);
    background: var(--fet-bg);
    box-shadow: var(--fet-shadow);
    border: 1px solid var(--fet-border);
}
.program-slide-media { position: relative; overflow: hidden; background: var(--fet-primary-light); display: grid; place-items: center; }
.program-slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--fet-ease); }
.program-slide-media .bi { font-size: 3rem; color: var(--program); }
.program-slide-media::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 6px;
    background: var(--program);
}
.program-slide:hover .program-slide-media img { transform: scale(1.05); }
.program-slide-body { display: flex; flex-direction: column; padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); }
.program-slide-level {
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--program) 12%, transparent);
    color: color-mix(in srgb, var(--program) 80%, #000);
    font-size: 0.8rem;
    font-weight: 700;
}
.program-slide-title { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem); margin-bottom: 0.4rem; }
.program-slide-meta { font-size: 0.85rem; color: var(--fet-muted); margin-bottom: 0.9rem; }
.program-slide-summary { font-size: 0.98rem; color: var(--fet-text); margin-bottom: 1.25rem; }
.program-slide-cta { margin-top: auto; align-self: flex-start; }
.program-slide-cta .bi { transition: transform 0.25s var(--fet-ease); }
.program-slide-cta:hover .bi { transform: translateX(4px); }
@media (max-width: 575.98px) {
    .program-slide { grid-template-columns: 1fr; }
    .program-slide-media { aspect-ratio: 16 / 10; }
    .program-slide-media::after { top: auto; left: 0; width: auto; height: 5px; }
}

/* fallback without the carousel lib: native scroll row */
.no-swiper .swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; }
.no-swiper .swiper-slide { scroll-snap-align: start; flex: 0 0 min(85%, 24rem); }
.home-slider .no-swiper .swiper-slide { flex-basis: 100%; }
.no-swiper .carousel-ui { display: none; }

.cta-band { position: relative; overflow: hidden; padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0; }
.cta-band.bg-primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2rem;
    width: 7rem;
    transform: skewX(-16deg);
    background: linear-gradient(90deg, var(--fet-stripe-1) 0 45%, transparent 45% 58%, var(--fet-stripe-3) 58% 80%, transparent 80%);
    opacity: 0.9;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band.bg-primary .container { padding-left: max(calc(var(--bs-gutter-x) * 0.5), 5.5rem); }
.cta-title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin: 0; }
@media (max-width: 575.98px) { .cta-band.bg-primary::after { width: 3.5rem; left: -1.5rem; } .cta-band.bg-primary .container { padding-left: 3rem; } }
.cta-text { opacity: 0.92; }
.block-slider + .block-cta .cta-band { padding: 0.5rem 0; }
.block-slider + .block-cta .cta-band .container { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 0.5rem 1.5rem !important; }
.block-slider + .block-cta .cta-title { font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.55rem); }
.block-slider + .block-cta .cta-text { font-size: 0.95rem; }
.block-slider + .block-cta .cta-band .btn { padding-top: 0.3rem; padding-bottom: 0.3rem; }
.block-slider + .block-cta .cta-band.bg-primary::after { width: 4rem; left: -1.25rem; }
.block-slider + .block-cta .cta-band.bg-primary .container { padding-left: max(calc(var(--bs-gutter-x) * 0.5), 3.5rem); }
@media (max-width: 575.98px) {
    .block-slider + .block-cta .cta-band { padding: 0.65rem 0; }
    .block-slider + .block-cta .cta-band .container { justify-content: space-between; flex-wrap: nowrap; gap: 0.75rem !important; padding-left: 2.25rem; }
    .block-slider + .block-cta .cta-title { font-size: 1.02rem; }
    .block-slider + .block-cta .cta-text { display: none; }
    .block-slider + .block-cta .cta-band .btn { padding: 0.4rem 0.9rem; font-size: 0.88rem; white-space: nowrap; }
    .block-slider + .block-cta .cta-band.bg-primary::after { width: 2.25rem; left: -1rem; }
}
/* buttons on colored bg or dark photos turn white so its never green on green */
:is(.hero, .bg-primary, .bg-secondary, .page-heading, .slide-caption, .program-hero.is-dark) .btn-brand {
    background: #fff;
    border-color: #fff;
    color: var(--fet-primary-dark);
}
:is(.hero, .bg-primary, .bg-secondary, .page-heading, .slide-caption, .program-hero.is-dark) .btn-brand:hover,
:is(.hero, .bg-primary, .bg-secondary, .page-heading, .slide-caption, .program-hero.is-dark) .btn-brand:focus-visible {
    background: var(--fet-primary-light);
    border-color: var(--fet-primary-light);
    color: var(--fet-primary-dark);
}
:is(.hero, .bg-primary, .bg-secondary, .page-heading, .slide-caption, .program-hero.is-dark) .btn-outline-brand {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}
:is(.hero, .bg-primary, .bg-secondary, .page-heading, .slide-caption, .program-hero.is-dark) .btn-outline-brand:hover,
:is(.hero, .bg-primary, .bg-secondary, .page-heading, .slide-caption, .program-hero.is-dark) .btn-outline-brand:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--fet-primary-dark);
}
.btn-accent, .btn-accent:hover, .btn-accent:focus-visible { color: var(--fet-on-accent) !important; }

/* ---------- Tarjetas ---------- */

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--fet-bg);
    border: 1px solid var(--fet-border);
    border-radius: var(--fet-radius);
    overflow: hidden;
    color: var(--fet-text);
}
.tile-icon {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.1rem;
    font-size: 1.45rem;
    color: var(--fet-primary-dark);
    background: var(--fet-primary-light);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fet-primary) 25%, transparent);
}
.tile--plain { border-left: 4px solid var(--fet-primary); }
.tile--icon::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fet-stripe-2) 0 50%, var(--fet-stripe-3) 50% 80%, var(--fet-stripe-4) 80%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--fet-ease);
}
.tile--icon:hover::after { transform: scaleX(1); }
/* image on top, fills its frame; posters that would lose too much get a blurred fill (site.js fitImage) */
.tile-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--fet-surface); }
.tile-image { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s var(--fet-ease); }
.tile:hover .tile-image:not(.is-whole) { transform: scale(1.03); }
.tile-body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tile-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.5rem; }
.tile-text { color: var(--fet-muted); }
.tile-text > :last-child { margin-bottom: 0; }
.tile-link { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--fet-primary-dark); text-decoration: none; align-self: flex-start; }
.tile-link-arrow { display: inline-block; margin-left: 0.35rem; transition: transform 0.25s var(--fet-ease); }
.tile:has(.stretched-link) { transition: transform 0.25s var(--fet-ease), box-shadow 0.25s var(--fet-ease), border-color 0.25s; }
.tile:has(.stretched-link):hover { border-color: var(--fet-primary); transform: translateY(-3px); }
.tile:has(.stretched-link):hover .tile-link-arrow, .tile-link:hover .tile-link-arrow { transform: translateX(4px); }

/* «Más información»: native details, opens inside the card */
.tile--expand .tile-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile--expand:has(.tile-more[open]) .tile-text { -webkit-line-clamp: unset; }
.tile-more { margin-top: 1rem; border-top: 1px solid var(--fet-border); }
.tile-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    font-weight: 700;
    color: var(--fet-primary-dark);
    cursor: pointer;
    list-style: none;
}
.tile-more > summary::-webkit-details-marker { display: none; }
.tile-more > summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: 0.8em; transition: transform 0.25s var(--fet-ease); }
.tile-more[open] > summary::after { transform: rotate(180deg); }
.tile-more > summary:hover { text-decoration: underline; }
.tile-more:not([open]) .tile-more-close, .tile-more[open] .tile-more-open { display: none; }
.tile-more > .prose { padding-top: 0.75rem; }

/* wellbeing agreements (sections/agreements): a card with photo; without one, the brand color and a shop icon */
.agreement-card .tile-media { position: relative; }
.agreement-card-empty { display: grid; place-items: center; background: var(--fet-primary-light); }
.agreement-card-empty > .bi { font-size: 3rem; color: var(--fet-primary); }
.agreement-status { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.agreement-facts { display: grid; gap: 0.3rem; margin: 0.75rem 0 0; color: var(--fet-muted); }
.agreement-facts .bi { color: var(--fet-primary); margin-right: 0.3rem; }
/* agreements in force (sections/partnerships) */
.partnership-status { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--fet-primary-light); color: var(--fet-primary-dark); }
.partnership-status.is-expiring { background: #fff3cd; color: #664d03; }
.partnership-launch { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--fet-border); border-radius: var(--fet-radius); background: var(--fet-surface); }
.partnership-launch-count { margin: 0; font-size: 1.1rem; }
.partnership-launch-count strong { font-size: 2rem; color: var(--fet-primary); margin-right: 0.25rem; }
.partnership-dialog { width: min(56rem, 94vw); max-height: 88vh; border: 0; border-radius: var(--fet-radius); padding: 1.25rem; color: var(--fet-text); background: var(--fet-bg); box-shadow: var(--fet-shadow); }
.partnership-dialog[open] { display: flex; flex-direction: column; gap: 0.9rem; }
.partnership-dialog::backdrop { background: rgba(15, 23, 42, 0.5); }
.partnership-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.partnership-dialog-body { overflow: auto; min-height: 0; }
.partnership-dialog thead th { position: sticky; top: 0; background: var(--fet-bg); }
.tile--expand .tile-link { margin-top: 0.5rem; }

.btn-pending { opacity: 0.6; cursor: default; pointer-events: none; }
.btn-pending small { font-weight: 400; }

.ladder {
    --rise: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
    align-items: end;
    gap: 0.5rem;
    counter-reset: ladder;
}
.ladder-step {
    position: relative;
    margin-top: calc(var(--rise) * (var(--steps) - 1 - var(--i)));
    min-height: calc(7.5rem + var(--rise) * var(--i));
    padding: 1rem 1.1rem 1.1rem;
    background: var(--fet-bg);
    border: 2px solid var(--program, var(--fet-primary));
    border-radius: var(--fet-radius) var(--fet-radius) 0 0;
    border-bottom-width: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.ladder-step:last-child { background: var(--program, var(--fet-primary)); color: #fff; }
.ladder-level { font-size: 0.85rem; font-weight: 700; color: var(--program, var(--fet-primary)); }
.ladder-step:last-child .ladder-level { color: #fff; }
.ladder-name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.ladder-meta { font-size: 0.8rem; opacity: 0.8; margin-top: auto; }
.ladder-step:last-child .ladder-meta { opacity: 1; } /* white on the program color, faded it fell under 4.5:1 */

@media (max-width: 767.98px) {
    .ladder { grid-template-columns: 1fr; gap: 0; }
    .ladder-step {
        margin-top: 0;
        min-height: 0;
        margin-left: calc(var(--i) * 1.1rem);
        border-radius: 0 var(--fet-radius) var(--fet-radius) 0;
        border-width: 2px 2px 2px 8px;
        margin-bottom: 0.4rem;
    }
}

.cycles-overview { display: grid; gap: 2.5rem; }
.cycles-program h3 a { color: inherit; text-decoration: none; }
.cycles-program h3 a:hover { color: var(--program, var(--fet-primary)); text-decoration: underline; }

/* ---------- Programas ---------- */

.program-card {
    --program: var(--fet-primary);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fet-border);
    border-top: 5px solid var(--program, var(--fet-primary));
    border-radius: var(--fet-radius);
    overflow: hidden;
    background: var(--fet-bg);
}
.program-card:hover { border-color: var(--program, var(--fet-primary)); }
.program-card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.program-card-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--program, var(--fet-primary)) 22%, var(--fet-bg)), color-mix(in srgb, var(--program, var(--fet-primary)) 45%, var(--fet-bg)));
}
.program-card-fallback .bi { font-size: 3rem; color: var(--program, var(--fet-primary)); }
.program-card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.program-card-level { font-size: 0.85rem; font-weight: 700; color: var(--program, var(--fet-primary-dark)); margin-bottom: 0.35rem; }
.program-card-title { font-size: 1.35rem; margin-bottom: 0.35rem; }
.program-card-title a { color: var(--fet-text); text-decoration: none; }
.program-card-title a:hover { text-decoration: underline; }
.program-card-meta { font-size: 0.85rem; color: var(--fet-muted); margin-bottom: 0.75rem; }
.program-card-summary { font-size: 0.95rem; margin-bottom: 1rem; }
.program-card-cycles { margin-top: auto; margin-bottom: 0; font-size: 0.9rem; font-weight: 600; color: var(--fet-secondary); }

.program-feature {
    --program: var(--fet-primary);
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--fet-border);
    border-radius: var(--fet-radius);
    overflow: hidden;
    background: var(--fet-bg);
}
.program-feature-image { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.program-feature-body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-left: 6px solid var(--program, var(--fet-primary)); }
@media (min-width: 992px) { .program-feature { grid-template-columns: 5fr 7fr; } }

.program-hero {
    --program: var(--fet-primary);
    background: var(--fet-surface);
    border-bottom: 5px solid var(--program, var(--fet-primary));
    padding: 2rem 0 3rem;
}
.program-title { margin-bottom: 0.5rem; }
.program-registry { color: var(--fet-muted); font-size: 0.95rem; }
.program-facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 1.5rem 0 0; }
.program-facts dt { font-size: 0.8rem; font-weight: 600; color: var(--fet-muted); }
.program-facts dd { margin: 0; font-weight: 700; }

.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--fet-muted); }

/* ---------- Formularios ---------- */

.form-panel {
    background: var(--fet-bg);
    border: 1px solid var(--fet-border);
    border-top: 5px solid var(--fet-accent);
    border-radius: var(--fet-radius);
    padding: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.form-control, .form-select { border-radius: calc(var(--fet-radius) * 0.6); padding: 0.6rem 0.8rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--fet-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--fet-primary-rgb), 0.25);
}
.form-check-input:checked { background-color: var(--fet-primary); border-color: var(--fet-primary); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Noticias y eventos ---------- */

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--fet-radius);
    overflow: hidden;
    background: var(--fet-bg);
    border: 1px solid var(--fet-border);
}
.news-card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card-body { padding: 1.1rem 1.25rem 1.3rem; }
.news-card-meta { font-size: 0.85rem; color: var(--fet-muted); display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.news-card-category { color: var(--fet-primary-dark); font-weight: 600; position: relative; z-index: 2; }
.news-card-title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.news-card-title a { color: var(--fet-text); text-decoration: none; }
.news-card:hover .news-card-title a { text-decoration: underline; }
.news-card-excerpt { font-size: 0.95rem; color: var(--fet-muted); margin: 0; }

.event-item {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--fet-border);
}
.event-date {
    flex: 0 0 4rem;
    text-align: center;
    background: var(--fet-primary-light);
    color: var(--fet-primary-dark);
    border-radius: var(--fet-radius);
    padding: 0.45rem 0;
    line-height: 1.1;
}
.event-day { display: block; font-size: 1.6rem; font-weight: 800; }
.event-month { font-size: 0.8rem; font-weight: 700; }
.event-title { font-size: 1.05rem; margin-bottom: 0.25rem; }
.event-title a { color: var(--fet-text); text-decoration: none; }
.event-item:hover .event-title a { text-decoration: underline; }
.event-meta { font-size: 0.88rem; color: var(--fet-muted); margin: 0; }
.event-details dt { font-size: 0.8rem; color: var(--fet-muted); font-weight: 600; }
.event-details dd { margin-bottom: 0.8rem; }

.article-title { margin-bottom: 1rem; }
/* news: header, cover and body share one centered column so everything lines up */
.article-header, .article-main { max-width: 46rem; margin-inline: auto; }
.article .article-cover { max-width: 46rem; }
/* with «Otras noticias» on the right the article takes its whole column, aligned left */
.article-has-aside :is(.article-header, .article-main, .article-cover) { max-width: none; margin-inline: 0; }

/* side list next to an article (partials/side-list) */
.side-list { padding: 1.5rem; border-radius: var(--fet-radius); background: var(--fet-surface); }
/* below the sticky header (bar + tab) */
@media (min-width: 992px) { .side-list { position: sticky; top: 10.5rem; } }
.side-list-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fet-primary-dark);
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 3px solid var(--fet-tertiary);
}
.side-list-items { margin: 0 0 1rem; }
.side-list-item { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.85rem; align-items: start; padding: 0.9rem 0; border-bottom: 1px solid var(--fet-border); }
.side-list-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--fet-radius) * 0.6); background: var(--fet-primary-light); }
.side-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--fet-ease); }
.side-list-thumb .bi { font-size: 1.5rem; color: var(--fet-primary); }
.side-list-item:hover .side-list-thumb img { transform: scale(1.06); }
.side-list-date { display: block; font-size: 0.75rem; color: var(--fet-muted); margin-bottom: 0.15rem; }
.side-list-name { font-size: 0.98rem; line-height: 1.3; margin: 0 0 0.25rem; }
.side-list-name a { color: var(--fet-text); text-decoration: none; }
.side-list-item:hover .side-list-name a { color: var(--fet-primary-dark); text-decoration: underline; }
.side-list-summary { font-size: 0.85rem; line-height: 1.4; color: var(--fet-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; font-size: 0.9rem; color: var(--fet-muted); margin-bottom: 0.9rem; }
.article-meta .bi { color: var(--fet-primary); margin-right: 0.2rem; }
.article-category {
    background: var(--fet-primary-light);
    color: var(--fet-primary-dark);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}
.article-category:hover { background: var(--fet-primary); color: var(--fet-on-primary); }
.article-lead {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--fet-muted);
    border-left: 4px solid var(--fet-tertiary);
    padding-left: 1rem;
    margin: 0;
}
.article-cover { margin: 2.25rem auto; }
.article-cover-frame.zoomable { aspect-ratio: 16 / 9; border-radius: calc(var(--fet-radius) * 1.5); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35); }
.article-cover-frame.zoomable:hover img { transform: scale(1.02); }
.article-cover figcaption { font-size: 0.88rem; color: var(--fet-muted); margin-top: 0.6rem; text-align: center; }
.article-body { font-size: 1.1rem; }
.article-body > p:first-child::first-letter {
    float: left;
    font-family: var(--fet-font-heading, var(--fet-font));
    font-size: 3.4em;
    line-height: 0.85;
    font-weight: 800;
    color: var(--fet-primary);
    margin: 0.08em 0.12em 0 0;
}
.article-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--fet-border); }
.article-tags { margin: 0; font-size: 0.9rem; }
.article-tags .bi { color: var(--fet-muted); margin-right: 0.35rem; }
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; margin-left: auto; }
.share-bar-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fet-muted); margin-right: 0.25rem; }
.share-btn {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid var(--fet-border);
    background: var(--fet-bg);
    color: var(--fet-primary-dark);
    text-decoration: none;
    transition: transform 0.2s var(--fet-ease), background 0.2s, color 0.2s;
}
.share-btn:hover, .share-btn:focus-visible { background: var(--fet-primary); border-color: var(--fet-primary); color: var(--fet-on-primary); transform: translateY(-2px); }
.share-bar-done { font-size: 0.85rem; color: var(--fet-primary-dark); font-weight: 600; }
.link-more { font-weight: 700; color: var(--fet-primary-dark); text-decoration: none; }
.link-more .bi { transition: transform 0.2s var(--fet-ease); display: inline-block; }
.link-more:hover .bi { transform: translateX(4px); }
.tag { display: inline-block; background: var(--fet-surface); border-radius: 999px; padding: 0.15rem 0.7rem; margin: 0 0.25rem 0.25rem 0; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- search results page ---------- */
.search-heading { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.search-page-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 46rem;
    margin-top: 1.25rem;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    border-radius: 999px;
    background: var(--fet-bg);
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.45);
    --fet-focus: var(--fet-text);
}
.search-page-field > .bi { color: var(--fet-muted); font-size: 1.15rem; }
.search-page-field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.1rem; color: var(--fet-text); padding: 0.55rem 0; }
.search-page-field input:focus-visible { outline: none; }
.search-page-field:focus-within { box-shadow: 0 0 0 4px var(--fet-tertiary), 0 14px 34px -14px rgba(0, 0, 0, 0.45); }
.search-page-field .btn { flex-shrink: 0; }
.search-section { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.search-section > .container, .search-heading > .container { max-width: 56rem; }
.search-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 0.5rem; }
.search-summary p { margin: 0; font-size: 1.05rem; }
.search-summary .pill .bi { margin-right: 0.15rem; }
.search-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    background: var(--fet-primary-light);
    color: var(--fet-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    vertical-align: middle;
}
.search-group { margin-top: 2.25rem; scroll-margin-top: 6rem; }
.search-group-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; margin-bottom: 0.9rem; }
.search-group-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: calc(var(--fet-radius) / 1.5);
    background: var(--fet-primary-light);
    color: var(--fet-primary-dark);
    font-size: 1.1rem;
}
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.search-result {
    position: relative;
    padding: 1rem 1.25rem;
    border: 1px solid var(--fet-border);
    border-left: 4px solid var(--fet-primary);
    border-radius: var(--fet-radius);
    background: var(--fet-bg);
    transition: box-shadow 0.2s, transform 0.2s;
}
.search-result:hover, .search-result:focus-within { box-shadow: var(--fet-shadow), 0 10px 26px -14px rgba(15, 23, 42, 0.25); transform: translateY(-2px); }
.search-result-title { font-size: 1.08rem; margin: 0 0 0.2rem; }
.search-result-title a { color: var(--fet-text); text-decoration: none; }
.search-result:hover .search-result-title a { color: var(--fet-primary-dark); text-decoration: underline; }
.search-result-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin: 0 0 0.4rem; font-size: 0.82rem; color: var(--fet-muted); }
.search-result-path { overflow-wrap: anywhere; }
.search-result-excerpt { margin: 0; color: var(--fet-text); font-size: 0.95rem; line-height: 1.55; }
.search-result-excerpt mark, .search-live mark { padding: 0 0.1em; border-radius: 3px; background: color-mix(in srgb, var(--fet-tertiary) 45%, transparent); color: inherit; }
.search-empty { text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 4rem) 1rem; }
.search-empty > .bi { font-size: 2.5rem; color: var(--fet-primary); }
.search-empty-title { font-size: 1.15rem; font-weight: 700; margin: 0.75rem 0 0.5rem; }
.search-empty-hint { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; }
@media (max-width: 575.98px) {
    .search-page-field { flex-wrap: wrap; border-radius: var(--fet-radius); padding: 0.4rem 0.4rem 0.4rem 1rem; }
    .search-page-field .btn { width: 100%; }
}
.pill {
    border: 1px solid var(--fet-border);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    text-decoration: none;
    color: var(--fet-text);
    font-size: 0.95rem;
}
.pill:hover { border-color: var(--fet-primary); color: var(--fet-text); }
.pill.active { background: var(--fet-primary); border-color: var(--fet-primary); color: var(--fet-on-primary); }

.pagination { --bs-pagination-active-bg: var(--fet-primary); --bs-pagination-active-border-color: var(--fet-primary); --bs-pagination-color: var(--fet-primary-dark); }

.brand-accordion .accordion-item { border-color: var(--fet-border); }
.brand-accordion .accordion-button { font-weight: 600; font-size: 1.05rem; }
.brand-accordion .accordion-button { gap: 1rem; }
.brand-accordion .accordion-button:not(.collapsed) { background: var(--fet-primary-light); color: var(--fet-primary-dark); box-shadow: none; }
.brand-accordion .accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(var(--fet-primary-rgb), 0.3); }

.brand-tabs { border-bottom: 2px solid var(--fet-border); gap: 0.25rem; }
.brand-tabs .nav-link { color: var(--fet-muted); font-weight: 600; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.brand-tabs .nav-link.active { color: var(--fet-primary-dark); border-bottom-color: var(--fet-primary); background: transparent; }
.brand-tab-content { padding-top: 1.5rem; }

/* tabs layout of the accordion section (mision, vision...). site.js swaps --tab-accent per tab,
   @property lets the color itself animate */
@property --tab-accent { syntax: '<color>'; inherits: true; initial-value: #1b7a2b; }
.tab-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-radius: calc(var(--fet-radius) * 1.5);
    background: var(--fet-surface);
    border: 1px solid var(--fet-border);
    overflow: hidden;
    transition: --tab-accent 0.6s var(--fet-ease);
}
@media (min-width: 992px) { .tab-showcase { grid-template-columns: 19rem minmax(0, 1fr); } }
.tab-showcase-nav { display: flex; gap: 0.4rem; padding: 0.75rem; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 992px) { .tab-showcase-nav { flex-direction: column; padding: 1.25rem; overflow: visible; } }
.tab-showcase-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    padding: 0.6rem 0.8rem;
    border: 0;
    border-radius: var(--fet-radius);
    background: transparent;
    color: var(--fet-text);
    font-weight: 600;
    text-align: left;
    line-height: 1.25;
    transition: background 0.3s var(--fet-ease), color 0.3s, transform 0.3s var(--fet-ease), box-shadow 0.3s;
}
.tab-showcase-btn:hover { background: var(--fet-bg); }
.tab-showcase-btn.active { background: var(--fet-bg); box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.45); }
@media (min-width: 992px) { .tab-showcase-btn.active { transform: translateX(6px); } }
.tab-showcase-num {
    display: grid;
    place-items: center;
    flex: 0 0 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    background: var(--fet-bg);
    border: 1px solid var(--fet-border);
    color: var(--fet-muted);
    font-size: 0.85rem;
    font-weight: 800;
    transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.tab-showcase-num .bi { font-size: 1.1rem; }
.tab-showcase-btn.active .tab-showcase-num { background: var(--tab-accent); border-color: var(--tab-accent); color: var(--tab-on-accent); }
.tab-showcase-label { flex: 1; }
.tab-showcase-arrow { opacity: 0; transform: translateX(-4px); transition: opacity 0.3s, transform 0.3s; color: var(--fet-muted); display: none; }
@media (min-width: 992px) { .tab-showcase-arrow { display: inline-block; } }
.tab-showcase-btn.active .tab-showcase-arrow { opacity: 1; transform: none; }
.tab-showcase-panels {
    position: relative;
    background: var(--fet-bg);
    padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    isolation: isolate;
}
.tab-showcase-panels::before {
    /* accent bar + soft glow, both follow the active tab color */
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--tab-accent), color-mix(in srgb, var(--tab-accent) 20%, transparent));
}
.tab-showcase-panels::after {
    content: "";
    position: absolute;
    right: -6rem;
    top: -6rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--tab-accent) 16%, transparent), transparent 70%);
    z-index: -1;
    pointer-events: none;
}
.tab-showcase-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.tab-showcase-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--tab-accent) 14%, transparent);
    color: var(--fet-primary-dark);
    font-size: 1.6rem;
    font-weight: 800;
}
.tab-showcase-title { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.tab-showcase-pane .prose { max-width: 70ch; }
.tab-showcase-pane.fade { transition: opacity 0.35s var(--fet-ease); }
.tab-showcase-pane.active.show .tab-showcase-head,
.tab-showcase-pane.active.show .prose { animation: tab-in 0.5s var(--fet-ease) both; }
.tab-showcase-pane.active.show .prose { animation-delay: 0.08s; }
@keyframes tab-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Pasos ---------- */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
    counter-increment: step;
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0 1.25rem;
    padding-bottom: 2rem;
    position: relative;
}
.step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--fet-primary);
    color: var(--fet-on-primary);
    font-weight: 800;
    font-size: 1.2rem;
}
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.45rem;
    top: 3.25rem;
    bottom: 0.25rem;
    width: 2px;
    background: var(--fet-border);
}
.step-text, .step-image { grid-column: 2; }
.step-title { font-size: 1.2rem; margin: 0.6rem 0 0.4rem; }
.step-image { max-width: min(100%, 36rem); border-radius: var(--fet-radius); border: 1px solid var(--fet-border); margin-top: 0.75rem; }

/* ---------- Cifras ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; }
.stat-value { font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); font-weight: 800; line-height: 1; margin: 0 0 0.35rem; }
.stat-label { font-weight: 500; font-size: 1.05rem; }

/* ---------- Personas ---------- */

.person { text-align: left; }
.person-photo img { transition: transform 0.4s var(--fet-ease); }
.person:hover .person-photo img { transform: scale(1.03); }
.person-photo {
    aspect-ratio: 3 / 4;
    border-radius: var(--fet-radius);
    overflow: hidden;
    background: var(--fet-surface);
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo .bi { font-size: 3rem; color: var(--fet-muted); }
.person-name { font-size: 1rem; margin-bottom: 0.15rem; }
.person-position { font-size: 0.88rem; color: var(--fet-muted); margin: 0; }
.profile + .profile { margin-top: 4rem; }
.profile-photo { position: relative; margin: 0 1.25rem 1.25rem 0; }
.profile-photo::before {
    content: "";
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border-radius: var(--fet-radius);
    background: linear-gradient(135deg,
        var(--fet-stripe-2) 0 40%, var(--fet-stripe-3) 40% 70%, var(--fet-stripe-4) 70%);
}
.profile-photo img { position: relative; display: block; width: 100%; border-radius: var(--fet-radius); box-shadow: var(--fet-shadow); }
.profile-position {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: var(--fet-primary-light);
    color: var(--fet-primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
}
.profile-name { font-size: calc(clamp(2rem, 1.5rem + 2vw, 3rem) * var(--fet-type-scale, 1)); margin-bottom: 1.25rem; }
.profile-bio { font-size: 1.08rem; }
.profile-bio > p:first-child { font-size: 1.2rem; color: var(--fet-text); }

/* ---------- Documentos ---------- */

/* documents list: one card per file */
.doc-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.doc-card {
    position: relative;
    display: flex;
    gap: 1.1rem;
    padding: 1.25rem;
    border-radius: calc(var(--fet-radius) * 1.25);
    background: var(--fet-bg);
    border: 1px solid var(--fet-border);
    overflow: hidden;
    transition: transform 0.25s var(--fet-ease), box-shadow 0.25s var(--fet-ease), border-color 0.25s;
}
.doc-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--fet-primary), var(--fet-tertiary));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s var(--fet-ease);
}
.doc-card:has(.stretched-link):hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.35); border-color: transparent; }
.doc-card:hover::before { transform: scaleY(1); }
.doc-badge {
    flex: 0 0 3.4rem;
    height: 4.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    border-radius: 0.6rem 1.1rem 0.6rem 0.6rem;
    background: var(--fet-primary-light);
    color: var(--fet-primary-dark);
}
.doc-badge .bi { font-size: 1.5rem; line-height: 1; }
.doc-badge small { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; }
.doc-badge.is-link { background: var(--fet-secondary-light); color: var(--fet-secondary-dark); }
.doc-card-body { min-width: 0; display: flex; flex-direction: column; }
.doc-title { font-size: 1.02rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.35rem; }
.doc-title a { color: var(--fet-text); text-decoration: none; }
.doc-card:hover .doc-title a { color: var(--fet-primary-dark); }
.doc-meta { font-size: 0.84rem; color: var(--fet-muted); margin: 0 0 0.35rem; }
.doc-meta .bi { color: var(--fet-primary); }
.doc-description { font-size: 0.92rem; margin: 0 0 0.5rem; color: var(--fet-text); }
.doc-pending { margin-top: auto; padding-top: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--fet-muted); }
.doc-open { margin-top: auto; padding-top: 0.35rem; font-size: 0.88rem; font-weight: 700; color: var(--fet-primary-dark); }
.doc-open .bi { display: inline-block; transition: transform 0.2s var(--fet-ease); }
.doc-card:hover .doc-open .bi { transform: translate(2px, -2px); }

/* ---------- Contacto ---------- */

/* contact: quick channels + department cards + hours */
.contact-quick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .contact-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .contact-quick { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.contact-quick-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.15rem 1.25rem;
    border-radius: calc(var(--fet-radius) * 1.25);
    background: var(--fet-bg);
    border: 1px solid var(--fet-border);
    color: var(--fet-text);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s var(--fet-ease), box-shadow 0.25s var(--fet-ease), border-color 0.25s;
}
.contact-quick-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fet-primary), var(--fet-tertiary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--fet-ease);
}
.contact-quick-card:hover, .contact-quick-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.3); border-color: transparent; color: var(--fet-text); }
.contact-quick-card:hover::after, .contact-quick-card:focus-visible::after { transform: scaleX(1); }
.contact-quick-card strong { display: block; font-size: 0.98rem; line-height: 1.3; overflow-wrap: break-word; min-width: 0; }
.contact-quick-card > span:last-child { min-width: 0; }
.contact-quick-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fet-muted); }
.contact-quick-icon {
    flex: 0 0 3rem;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--fet-primary);
    color: var(--fet-on-primary);
    font-size: 1.25rem;
}
.contact-quick-card.is-whatsapp .contact-quick-icon { background: #25d366; color: #fff; }
.contact-subtitle { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fet-muted); margin-bottom: 1rem; }
.directory-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.directory-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: calc(var(--fet-radius) * 1.25);
    background: var(--fet-surface);
    border: 1px solid transparent;
    transition: border-color 0.25s, background 0.25s;
}
.directory-card:hover { border-color: var(--fet-border); background: var(--fet-bg); }
.directory-icon {
    flex: 0 0 2.75rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
    background: var(--fet-primary-light);
    color: var(--fet-primary-dark);
    font-size: 1.25rem;
}
.directory-card-body { min-width: 0; }
.directory-name { font-size: 1.05rem; margin: 0.15rem 0 0.35rem; }
.directory-desc { font-size: 0.9rem; color: var(--fet-muted); margin-bottom: 0.5rem; }
.directory-channels { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.88rem; margin-top: 0.5rem; }
.channel-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--fet-bg);
    border: 1px solid var(--fet-border);
    color: var(--fet-primary-dark);
    text-decoration: none;
    overflow-wrap: break-word;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.channel-chip:hover { background: var(--fet-primary); border-color: var(--fet-primary); color: var(--fet-on-primary); }
.channel-chip.is-whatsapp .bi { color: #1faa53; }
.channel-chip.is-whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.channel-chip.is-whatsapp:hover .bi { color: #fff; }
.hours-card {
    position: sticky;
    top: 6rem;
    padding: 1.6rem;
    border-radius: calc(var(--fet-radius) * 1.5);
    background: var(--fet-footer-bg, var(--fet-primary-dark));
    color: var(--fet-on-footer, #fff);
    overflow: hidden;
    isolation: isolate;
}
.hours-card::before {
    /* brand stripes in the corner */
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    height: 180%;
    z-index: -1;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent 0 30%, rgba(255, 255, 255, 0.06) 30% 55%, color-mix(in srgb, var(--fet-tertiary) 22%, transparent) 55% 70%, transparent 70%);
}
.hours-card-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.hours-card-head h3 { color: inherit; }
.hours-card-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--fet-tertiary); color: var(--fet-on-tertiary); font-size: 1.2rem; }
.hours-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); margin-bottom: 1rem; }
.hours-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #ff8a80; }
.hours-status.is-open .hours-dot { background: #69f0ae; box-shadow: 0 0 0 0 rgba(105, 240, 174, 0.7); animation: hours-pulse 2s infinite; }
@keyframes hours-pulse { 70% { box-shadow: 0 0 0 8px rgba(105, 240, 174, 0); } 100% { box-shadow: 0 0 0 0 rgba(105, 240, 174, 0); } }
.hours-list { margin: 0; display: grid; gap: 0.75rem; }
.hours-list > div { padding: 0.75rem 0.9rem; border-radius: var(--fet-radius); background: rgba(255, 255, 255, 0.08); }
.hours-list dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; }
.hours-list dd { margin: 0.15rem 0 0; font-size: 1.1rem; font-weight: 700; }
.hours-note { font-size: 0.82rem; opacity: 0.75; margin: 1rem 0 0; }
@media (prefers-reduced-motion: reduce) { .hours-status.is-open .hours-dot { animation: none; } }
.aside-box { background: var(--fet-surface); border-radius: var(--fet-radius); padding: 1.5rem; }
.aside-box dt { font-weight: 600; }
.aside-box dd { margin-bottom: 0.6rem; }
.location-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--fet-radius);
    background: var(--fet-bg);
    box-shadow: var(--fet-shadow);
    border: 1px solid var(--fet-border);
}
.location-map { aspect-ratio: 16 / 9; background: var(--fet-primary-light); }
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; }
.location-name { font-size: 1.2rem; margin: 0 0 0.25rem; }
.location-address { margin: 0; color: var(--fet-muted); }

/* ---------- Testimonios ---------- */

.quote {
    margin: 0;
    padding: 1.5rem;
    background: var(--fet-bg);
    border-radius: var(--fet-radius);
    border-left: 4px solid var(--fet-accent);
    display: flex;
    flex-direction: column;
}
.quote-text { font-size: 1.05rem; margin-bottom: 1.25rem; }
.quote-author { display: flex; gap: 0.75rem; align-items: center; margin-top: auto; }
.quote-photo { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }

.gallery-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .gallery-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .gallery-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}
.zoomable { position: relative; display: block; overflow: hidden; border-radius: var(--fet-radius); aspect-ratio: 4 / 3; background: var(--fet-surface); cursor: zoom-in; }
.zoomable img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--fet-ease); }
.zoomable-icon {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--fet-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s var(--fet-ease);
}
.zoomable:hover img, .zoomable:focus-visible img { transform: scale(1.05); }
.zoomable:hover .zoomable-icon { transform: scale(1.1); }
.gallery-carousel .zoomable { aspect-ratio: 3 / 2; }
.zoomable.has-whole, .tile-media.has-whole { isolation: isolate; }
.zoomable.has-whole::before, .tile-media.has-whole::before {
    /* blurred copy behind an image shown whole (site.js fitImage) */
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    background: var(--whole-src) center / cover no-repeat;
    filter: blur(22px) saturate(1.2);
    opacity: 0.55;
}
.zoomable img.is-whole, .tile-image.is-whole { object-fit: contain; }
.tile-image.is-whole { background: transparent; }
/* radio live player (media section, audio_stream). site.js toggles .is-playing / .is-loading */
.radio-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
    padding: clamp(1.75rem, 1rem + 4vw, 4rem);
    border-radius: calc(var(--fet-radius) * 1.6);
    color: #fff;
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--fet-primary) 85%, transparent) 0%, transparent 60%),
        radial-gradient(80% 80% at 100% 100%, color-mix(in srgb, var(--fet-tertiary) 22%, transparent) 0%, transparent 55%),
        var(--fet-footer-bg);
    box-shadow: 0 30px 60px -28px rgba(var(--fet-footer-bg-rgb), 0.7);
}
.radio-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.5px);
    background-size: 18px 18px;
    mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
}
.radio-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.radio-ring {
    position: absolute;
    left: 24%;
    top: 50%;
    width: 30rem;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: translate(-50%, -50%);
}
.radio-ring:nth-child(2) { width: 42rem; border-color: rgba(255, 255, 255, 0.08); }
.radio-ring:nth-child(3) { width: 56rem; border-color: rgba(255, 255, 255, 0.05); }
.radio-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    width: 100%;
    height: 90px;
    fill: none;
    stroke-width: 2;
    opacity: 0.35;
}
.radio-wave path:first-child { stroke: var(--fet-tertiary); }
.radio-wave path:last-child { stroke: #fff; opacity: 0.5; }
.radio-stripes {
    position: absolute;
    top: -2rem;
    right: 2.5rem;
    width: 7rem;
    height: 11rem;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, var(--fet-stripe-2) 0 34%, transparent 34% 48%, var(--fet-stripe-3) 48% 70%, transparent 70% 80%, var(--fet-stripe-4) 80%);
    opacity: 0.9;
}

/* cover: album art with a vinyl peeking out the right side */
.radio-cover { position: relative; padding-right: 22%; }
.radio-art {
    position: relative;
    z-index: 1;
    aspect-ratio: 5 / 4;
    border-radius: var(--fet-radius);
    overflow: hidden;
    background: color-mix(in srgb, var(--fet-primary) 60%, #000);
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: rotate(-3deg);
    transition: transform 0.6s var(--fet-ease);
}
.radio-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.radio-art .fet-edit-image-empty { height: 100%; }
.radio-art-empty { display: grid; place-items: center; height: 100%; font-size: 5rem; color: var(--fet-tertiary); }
.radio-disc {
    position: absolute;
    top: 50%;
    right: 0;
    width: 74%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateY(-50%);
    background: repeating-radial-gradient(circle, #141414 0 2px, #1f1f1f 2px 4px);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
}
.radio-disc::after {
    /* light sheen so the rotation is visible */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 30deg, transparent 0 15%, rgba(255, 255, 255, 0.14) 20%, transparent 26% 65%, rgba(255, 255, 255, 0.1) 70%, transparent 76%);
}
.radio-disc-label {
    position: absolute;
    inset: 33%;
    border-radius: 50%;
    background: radial-gradient(circle, #111 0 9%, var(--fet-tertiary) 10% 100%);
    box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--fet-tertiary) 70%, #000);
}
.radio-disc-label::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--fet-tertiary) 55%, #000);
}

/* text + controls */
.radio-body { min-width: 0; }
.radio-onair {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.9rem 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.radio-onair-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #e0312b;
    animation: live-pulse 1.8s ease-out infinite;
}
.radio-title {
    margin: 1rem 0 0.6rem;
    color: #fff;
    font-size: calc(clamp(2rem, 1.4rem + 2.4vw, 3.4rem) * var(--fet-type-scale, 1));
    line-height: 1.05;
}
.radio-text { margin: 0; max-width: 46ch; font-size: 1.08rem; opacity: 0.88; }

.radio-controls {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 2rem;
    padding: 0.85rem 1.25rem 0.85rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    max-width: 34rem;
}
.radio-play {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border: 0;
    border-radius: 50%;
    background: var(--fet-tertiary);
    color: var(--fet-on-tertiary);
    font-size: 2.3rem;
    cursor: pointer;
    box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--fet-tertiary) 75%, transparent);
    transition: transform 0.25s var(--fet-ease);
}
.radio-play:hover { transform: scale(1.06); }
.radio-play:active { transform: scale(0.96); }
.radio-play:focus-visible { outline-color: #fff; outline-offset: 4px; }
.radio-play .bi { grid-area: 1 / 1; line-height: 1; }
.radio-icon-play { margin-left: 0.2rem; }
.radio-icon-pause, .radio-spinner { display: none; }
.radio-spinner {
    grid-area: 1 / 1;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 3px solid currentColor;
    border-right-color: transparent;
    animation: radio-spin 0.8s linear infinite;
}
.radio-play::before, .radio-play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--fet-tertiary);
    opacity: 0;
    pointer-events: none;
}

.radio-meta { flex: 1; min-width: 0; display: grid; gap: 0.45rem; }
.radio-status { font-weight: 700; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-eq { display: flex; align-items: flex-end; gap: 3px; height: 1.6rem; }
.radio-eq span {
    flex: 1;
    max-width: 6px;
    height: calc(15% + (var(--i) * 7%) - (var(--i) * var(--i) * 0.4%));
    border-radius: 3px;
    background: linear-gradient(to top, var(--fet-tertiary), #fff);
    opacity: 0.45;
}
.radio-volume { flex: none; display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 1.15rem; opacity: 0.9; }
.radio-volume input { width: 5.5rem; accent-color: var(--fet-tertiary); cursor: pointer; }
.radio-native { display: block; width: 100%; margin-top: 1.25rem; }
.radio-stage.is-enhanced .radio-native { display: none; }
.radio-stage:not(.is-enhanced) .radio-controls { display: none; }

/* states */
.radio-stage.is-loading .radio-icon-play { display: none; }
.radio-stage.is-loading .radio-spinner { display: block; }
.radio-stage.is-playing .radio-icon-play { display: none; }
.radio-stage.is-playing .radio-icon-pause { display: block; }
.radio-stage.is-playing .radio-play::before { animation: radio-ripple 2.4s ease-out infinite; }
.radio-stage.is-playing .radio-play::after { animation: radio-ripple 2.4s ease-out 1.2s infinite; }
.radio-stage.is-playing .radio-eq span {
    opacity: 1;
    animation: radio-eq 0.7s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * -0.17s);
}
.radio-stage.is-playing .radio-eq span:nth-child(3n) { animation-duration: 0.5s; }
.radio-stage.is-playing .radio-eq span:nth-child(4n + 1) { animation-duration: 0.9s; }
.radio-stage.is-playing .radio-disc { animation: radio-disc-spin 3.2s linear infinite; }
.radio-stage.is-playing .radio-art { transform: rotate(0deg) translateX(-0.5rem); }
.radio-stage.is-error .radio-status { color: var(--fet-tertiary); }

@keyframes radio-spin { to { transform: rotate(360deg); } }
@keyframes radio-disc-spin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
@keyframes radio-ripple {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.9); opacity: 0; }
}
@keyframes radio-eq {
    0% { height: 12%; }
    100% { height: 100%; }
}

@media (max-width: 991.98px) {
    .radio-stage { grid-template-columns: 1fr; }
    .radio-cover { max-width: 26rem; width: 100%; margin-inline: auto; }
    .radio-ring { left: 50%; top: 28%; }
    .radio-stripes { right: 1rem; width: 4.5rem; height: 7rem; }
}
@media (max-width: 575.98px) {
    .radio-stage { border-radius: var(--fet-radius); }
    .radio-controls { flex-wrap: wrap; border-radius: calc(var(--fet-radius) * 1.4); padding: 0.85rem; }
    .radio-volume { width: 100%; padding-left: 0.25rem; }
    .radio-volume input { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .radio-stage.is-playing .radio-disc,
    .radio-stage.is-playing .radio-play::before,
    .radio-stage.is-playing .radio-play::after { animation: none; }
    .radio-stage.is-playing .radio-eq span { animation: none; height: 60%; }
}

/* radio shows and podcasts (Contenido › Radio): cards, on-air state and the click-to-load player */
.radio-shows-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fet-primary-dark); margin-bottom: 1rem; }
.radio-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--fet-radius); background: var(--fet-bg); border: 1px solid var(--fet-border); transition: box-shadow 0.25s ease, transform 0.25s var(--fet-ease); }
.radio-card:hover { box-shadow: var(--fet-shadow); transform: translateY(-2px); }
.radio-card-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fet-footer-bg); color: var(--fet-tertiary); }
.radio-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--fet-ease); }
.radio-card-media > .bi { font-size: 3rem; }
.radio-card:hover .radio-card-media img { transform: scale(1.04); }
.radio-card-play {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--fet-accent);
    color: var(--fet-on-accent, #1a1a1a);
    font-size: 1.6rem;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s var(--fet-ease);
}
.radio-card:hover .radio-card-play { transform: scale(1.1); }
.radio-card-state, .radio-state {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.radio-card-state { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(0, 0, 0, 0.62); color: #fff; }
.radio-card.is-live .radio-card-state, .radio-state.is-live { background: #c62a24; color: #fff; }
.radio-card.is-upcoming .radio-card-state, .radio-state.is-upcoming { background: var(--fet-primary); color: var(--fet-on-primary); }
.radio-state.is-past { background: var(--fet-surface); color: var(--fet-muted); }
.radio-card.is-live .radio-onair-dot, .radio-state.is-live .radio-onair-dot { background: #fff; }
.radio-card-body { padding: 1rem 1.15rem 1.2rem; }
.radio-card-date { font-size: 0.82rem; color: var(--fet-muted); margin-bottom: 0.35rem; }
.radio-card-date .bi, .radio-card-host .bi { color: var(--fet-primary); margin-right: 0.2rem; }
.radio-card-title { font-size: 1.08rem; line-height: 1.3; margin: 0; }
.radio-card-title a { color: var(--fet-text); text-decoration: none; }
.radio-card:hover .radio-card-title a { color: var(--fet-primary-dark); }
.radio-card-host { font-size: 0.85rem; color: var(--fet-muted); margin: 0.4rem 0 0; }

.radio-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--fet-radius) * 1.5); background: var(--fet-footer-bg); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35); }
.radio-player.is-vertical { aspect-ratio: 9 / 16; max-width: 22rem; margin-inline: auto; }
.radio-player-frame { width: 100%; height: 100%; border: 0; display: block; }
.radio-player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    width: 100%;
    padding: 1rem;
    border: 0;
    background: none;
    color: #fff;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
}
/* cover at the back, a dark veil over it, the play button on top */
.radio-player-start img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.radio-player-start::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2)); }
.radio-player-play { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--fet-accent); color: var(--fet-on-accent, #1a1a1a); font-size: 2.4rem; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6); transition: transform 0.25s var(--fet-ease); }
.radio-player-start:hover .radio-player-play, .radio-player-start:focus-visible .radio-player-play { transform: scale(1.08); }
.radio-player-label { font-weight: 800; font-size: 1.1rem; }
.radio-player-label small { display: block; font-weight: 400; font-size: 0.8rem; opacity: 0.85; margin-top: 0.2rem; }
.radio-player-alt { margin: 0.6rem 0 0; font-size: 0.85rem; text-align: right; }
.radio-player-soon { padding: 1.25rem; border-radius: var(--fet-radius); background: var(--fet-surface); color: var(--fet-muted); margin: 0; }
.radio-player-soon .bi { color: var(--fet-primary); margin-right: 0.35rem; }

.site-footer {
    background: var(--fet-footer-bg);
    color: var(--fet-on-footer);
    margin-top: 0;
}
.footer-main { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-bottom: 1.5rem; }
.site-footer a:not(.btn) { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.footer-cta { padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) 0; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.footer-cta-title {
    margin: 0;
    font-family: var(--fet-font-heading);
    font-weight: var(--fet-heading-weight, 700);
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.footer-cta-title span { color: var(--fet-tertiary); }
.btn-footer-ghost { border: 2px solid currentColor; color: inherit; background: transparent; }
.btn-footer-ghost:hover, .btn-footer-ghost:focus-visible { background: var(--fet-on-footer); color: var(--fet-footer-bg); text-decoration: none !important; }
.site-footer .btn:hover { text-decoration: none; }

.footer-logo { height: 64px; width: auto; max-width: 100%; object-fit: contain; background: #fff; padding: 0.45rem 0.7rem; border-radius: calc(var(--fet-radius) * 0.7); }
.footer-name { margin: 1rem 0 0.5rem; font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.footer-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.7;
}
.footer-muted { opacity: 0.85; }
.footer-list { font-size: 0.95rem; display: grid; gap: 0.5rem; overflow-wrap: anywhere; }
.site-footer .list-unstyled { overflow-wrap: anywhere; }
.footer-location { display: grid; gap: 0.1rem; margin-bottom: 0.5rem; }
.footer-location span { opacity: 0.85; }
.footer-directions { font-weight: 700; color: var(--fet-tertiary) !important; font-size: 0.9rem; }
.site-footer .small { font-size: 0.95rem; }
.footer-social {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.site-footer a.footer-social:hover { background: var(--fet-tertiary); border-color: var(--fet-tertiary); color: var(--fet-on-tertiary); text-decoration: none; }
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    opacity: 0.8;
}
.footer-legal p:last-child:not(:first-child) { max-width: 60ch; }
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    font-size: 0.9rem;
    font-weight: 600;
}
.footer-legal-links + .footer-legal { margin-top: 1rem; padding-top: 0; border-top: 0; }
.footer-legal-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* legal pages: institution data card (legal_info section) */
.legal-card { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--fet-radius); background: var(--fet-surface); border: 1px solid var(--fet-border); }
.legal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2rem; margin: 0; }
.legal-facts dt { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fet-muted); }
.legal-facts dt .bi { color: var(--fet-primary); margin-right: 0.25rem; }
.legal-facts dd { margin: 0.15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.legal-nav { border-bottom: 1px solid var(--fet-border); background: var(--fet-bg); }
.legal-nav ul { list-style: none; display: flex; gap: 0.4rem; margin: 0; padding: 0.85rem 0; overflow-x: auto; scrollbar-width: none; }
.legal-nav a {
    display: block;
    white-space: nowrap;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fet-text);
    text-decoration: none;
    border: 1px solid var(--fet-border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.legal-nav a:hover { border-color: var(--fet-primary); color: var(--fet-primary-dark); }
.legal-nav a.is-current { background: var(--fet-primary); border-color: var(--fet-primary); color: var(--fet-on-primary); }
.legal-block { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--fet-radius); border: 1px solid var(--fet-border); margin-bottom: 1.25rem; background: var(--fet-bg); }
.legal-block > :last-child { margin-bottom: 0; }
.legal-block-title { font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.legal-block-title .bi { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--fet-primary-light); color: var(--fet-primary-dark); font-size: 1rem; flex: 0 0 2.2rem; }
.legal-block-note { font-size: 0.9rem; color: var(--fet-muted); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-bottom: 1rem; }
.legal-table th { background: var(--fet-surface); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fet-muted); }
.legal-table th, .legal-table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--fet-border); vertical-align: top; text-align: left; overflow-wrap: break-word; }
.legal-table code { color: var(--fet-primary-dark); background: var(--fet-primary-light); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.85em; }
.legal-block code { color: var(--fet-primary-dark); }
.legal-cookie-name { display: block; font-size: 0.78rem; color: var(--fet-muted); font-family: var(--bs-font-monospace); }
.legal-services { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.legal-services li { padding: 0.8rem 1rem; border-radius: var(--fet-radius); background: var(--fet-surface); }
.legal-services strong { display: block; }
.legal-services span { font-size: 0.9rem; color: var(--fet-muted); }
.legal-status { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--fet-border); font-size: 0.9rem; color: var(--fet-muted); }

/* cookie notice (site.js shows it once per visitor) */
.cookie-notice {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1040;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    max-width: min(34rem, calc(100vw - 2rem));
    padding: 0.9rem 1rem;
    border-radius: var(--fet-radius);
    background: var(--fet-bg);
    color: var(--fet-text);
    border: 1px solid var(--fet-border);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.35);
    animation: cookie-in 0.45s var(--fet-ease) both;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice > .bi { flex: none; font-size: 1.5rem; color: var(--fet-primary); }
.cookie-notice p { margin: 0; font-size: 0.875rem; line-height: 1.45; }
.cookie-notice a { font-weight: 600; }
.cookie-notice .btn { flex: none; }
/* same weight for both choices: rejecting is as easy as accepting */
.cookie-notice-actions { display: flex; flex-direction: column; gap: 0.4rem; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(1rem); } }
@media (max-width: 575.98px) {
    .cookie-notice { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem 0.75rem; }
    .cookie-notice > .btn, .cookie-notice-actions { grid-column: 1 / -1; justify-self: end; }
    .cookie-notice-actions { flex-direction: row; }
}
@media print { .cookie-notice { display: none !important; } }

.social-float {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    padding: 0.35rem;
    border-radius: 14px 0 0 14px;
    background: var(--fet-bg);
    box-shadow: -4px 6px 24px rgba(15, 23, 42, 0.14);
}
.social-float-link {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    color: var(--fet-primary-dark);
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}
.social-float-link:hover, .social-float-link:focus-visible { background: var(--fet-primary); color: var(--fet-on-primary); }
/* only where it fits in the margin beside the 1140px container; narrower screens have the socials in the footer */
@media (max-width: 1209.98px) { .social-float { display: none; } }

.empty-state {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border: 2px dashed var(--fet-border);
    border-radius: var(--fet-radius);
    color: var(--fet-muted);
}
.empty-state .bi { font-size: 1.75rem; color: var(--fet-primary); opacity: 0.7; }
.empty-state p { margin: 0; }

:is(.tile, .news-card, .program-card, .event-card):has(.stretched-link) {
    transition: transform 0.3s var(--fet-ease), box-shadow 0.3s var(--fet-ease), border-color 0.3s;
}
:is(.tile, .news-card, .program-card, .event-card):has(.stretched-link):hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.program-card-image, .news-card-image, .event-card-image { transition: transform 0.5s var(--fet-ease); }
.program-card:hover .program-card-image, .news-card:hover .news-card-image, .event-card:hover .event-card-image { transform: scale(1.04); }
.program-card-media, .news-card-media { overflow: hidden; }

/* ---------- Errores ---------- */

/* site.js: soft entrance when scrolling (only below the fold, never in the editor) */
.reveal { opacity: 0; translate: 0 22px; }
.reveal.is-visible { opacity: 1; translate: 0 0; transition: opacity 0.6s var(--fet-ease), translate 0.6s var(--fet-ease); transition-delay: var(--reveal-delay, 0ms); }
.back-to-top {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1030;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 50%;
    background: var(--fet-primary);
    color: var(--fet-on-primary);
    font-size: 1.15rem;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    translate: 0 12px;
    pointer-events: none;
    transition: opacity 0.3s var(--fet-ease), translate 0.3s var(--fet-ease), background 0.2s;
}
.back-to-top.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.back-to-top:hover { background: var(--fet-primary-dark); }
.reading-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 4px;
    z-index: 1040;
    transform-origin: left;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--fet-primary), var(--fet-tertiary));
    pointer-events: none;
}
/* maps: something nicer than a flat box while google loads */
.location-map {
    position: relative;
    background:
        radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--fet-primary) 18%, transparent) 0 2.6rem, transparent 2.7rem),
        repeating-linear-gradient(0deg, transparent 0 38px, color-mix(in srgb, var(--fet-primary) 10%, transparent) 38px 39px),
        repeating-linear-gradient(90deg, transparent 0 38px, color-mix(in srgb, var(--fet-primary) 10%, transparent) 38px 39px),
        var(--fet-primary-light);
}
.location-map iframe { position: relative; }
.location-map-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; border: 0; background: transparent; color: var(--fet-primary-dark); font-weight: 700; cursor: pointer; }
.location-map-load .bi { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #fff;
    font-size: 1.35rem; box-shadow: var(--fet-shadow); transition: transform .2s var(--fet-ease); }
.location-map-load:hover .bi, .location-map-load:focus-visible .bi { transform: scale(1.08); }
.location-map-load span { padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .9); }

.error-page { min-height: 50vh; }
.error-code { font-weight: 700; color: var(--fet-primary-dark); margin-bottom: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .social-float, .form-panel { display: none !important; }
}

/* ==========================================================================
   theme variants (body classes from App\Support\Theme)
   ========================================================================== */

/* ---------- Encabezado ---------- */

.hdr-sticky .site-header { position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }

.hdr-centered .brandbar { padding: 1rem 0 0.75rem; }
.brand-hashtag-centered { border-left: 0; padding-left: 0; }

.hdr-inline .mainnav-inline { background: var(--fet-header-bg); padding: 0.5rem 0; }
.hdr-inline .mainnav-inline .nav-link { color: var(--fet-on-header); padding: 0.6rem 0.75rem; border-radius: var(--fet-radius); }
.hdr-inline .mainnav-inline .nav-link:hover,
.hdr-inline .mainnav-inline .nav-link:focus-visible,
.hdr-inline .mainnav-inline .nav-link.show,
.hdr-inline .mainnav-inline .nav-link.active { background: var(--fet-primary-light); color: var(--fet-primary-dark); }
.hdr-inline .brand img { height: 48px; }

.nav-minimal .mainnav:not(.mainnav-inline) { background: var(--fet-header-bg); border-top: 1px solid var(--fet-border); border-bottom: 1px solid var(--fet-border); }
.nav-minimal .mainnav:not(.mainnav-inline) .nav-link { color: var(--fet-on-header); }
.nav-minimal .mainnav .nav-link:hover,
.nav-minimal .mainnav .nav-link:focus-visible,
.nav-minimal .mainnav .nav-link.show,
.nav-minimal .mainnav .nav-link.active {
    background: transparent;
    color: var(--fet-primary);
    box-shadow: inset 0 -3px 0 var(--fet-primary);
}

/* ---------- Botones ---------- */

.btn-outline .btn-brand { background: transparent; color: var(--fet-primary-dark); }
.btn-outline .btn-brand:hover, .btn-outline .btn-brand:focus-visible { background: var(--fet-primary); color: var(--fet-on-primary); }
.btn-pill .btn { border-radius: 999px; }
.btn-size-sm .btn { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-size-lg .btn { padding: 0.8rem 1.6rem; font-size: 1.08rem; }
.btn-upper .btn { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9em; }

.headings-center .section-heading { margin-left: auto; margin-right: auto; text-align: center; }
.headings-center .page-heading .container { text-align: center; }
.headings-center .page-heading .lead { margin-left: auto; margin-right: auto; }

/* ---------- Estilo de tarjetas (tarjetas, noticias, programas, eventos, testimonios) ---------- */

.tiles-shadow :is(.tile, .news-card, .program-card, .event-card, .quote, .program-feature) {
    border-color: transparent;
    box-shadow: var(--fet-shadow);
}
.tiles-flat :is(.tile, .news-card, .program-card, .event-card, .program-feature) {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}
.tiles-flat .tile-body, .tiles-flat .news-card-image_top .news-card-body, .tiles-flat .program-card-body { padding-left: 0; padding-right: 0; }
.tiles-filled :is(.tile, .news-card, .program-card, .event-card, .program-feature) {
    border-color: transparent;
    background: var(--fet-surface);
}
.tiles-filled .bg-light :is(.tile, .news-card, .program-card, .event-card) { background: var(--fet-bg); }
.tiles-flat .program-card, .tiles-filled .program-card { border-top-color: var(--program, var(--fet-primary)); }
.tiles-flat .program-card-minimal, .tiles-filled .program-card-minimal { border-left-color: var(--program, var(--fet-primary)); }
.shadows-strong :is(.tile, .news-card, .program-card, .event-card):has(.stretched-link):hover { box-shadow: var(--fet-shadow); }

/* ---------- Noticias ---------- */

.news-card-media { overflow: hidden; }
.news-card-image { display: block; }
.news-list { display: grid; gap: 1rem; }

/* Imagen al lado */
.news-card-image_left { flex-direction: row; }
.news-card-image_left .news-card-media { flex: 0 0 38%; max-width: 16rem; }
.news-card-image_left .news-card-image { height: 100%; aspect-ratio: auto; min-height: 9rem; }
@media (max-width: 575.98px) {
    .news-card-image_left { flex-direction: column; }
    .news-card-image_left .news-card-media { max-width: none; }
    .news-card-image_left .news-card-image { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Texto sobre la imagen */
.news-card-overlay { justify-content: flex-end; min-height: 15rem; color: #fff; border: 0; }
.news-card-overlay .news-card-media { position: absolute; inset: 0; }
.news-card-overlay .news-card-image { width: 100%; height: 100%; aspect-ratio: auto; }
.news-card-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.05) 70%); }
.news-card-overlay .news-card-body { position: relative; z-index: 1; margin-top: auto; }
.news-card-overlay .news-card-title a,
.news-card-overlay .news-card-meta,
.news-card-overlay .news-card-category { color: #fff; }
.news-card-large.news-card-overlay { min-height: clamp(18rem, 40vw, 26rem); }
.news-card-large .news-card-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.news-card-overlay .news-card-excerpt { color: rgba(255, 255, 255, 0.9); max-width: 46rem; }
.news-spotlight .news-card-large.news-card-overlay { min-height: clamp(20rem, 42vw, 28rem); }
.news-spotlight .news-card-large .news-card-body { padding: clamp(1.25rem, 3vw, 2rem); }
.news-spotlight .news-card-large .news-card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* phones: the small ones go in a compact list, photo on the left */
@media (max-width: 767.98px) {
    .news-spotlight .news-card-large .news-card-excerpt { -webkit-line-clamp: 2; }
    .news-spotlight .news-card-image_top { flex-direction: row; align-items: stretch; }
    .news-spotlight .news-card-image_top .news-card-media { flex: 0 0 7.5rem; }
    .news-spotlight .news-card-image_top .news-card-image { height: 100%; aspect-ratio: auto; min-height: 6.5rem; }
    .news-spotlight .news-card-image_top .news-card-body { padding: 0.75rem 0.9rem; }
    .news-spotlight .news-card-image_top .news-card-title { font-size: 1rem; }
}

.news-card-text_only { border-left: 4px solid var(--fet-primary); }
.tiles-flat .news-card-text_only { padding-left: 1rem; }

/* ---------- Eventos ---------- */

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fet-border);
    border-radius: var(--fet-radius);
    overflow: hidden;
    background: var(--fet-bg);
}
.event-card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-card-body { padding: 1rem 1.2rem 1.2rem; }
.event-card-date { font-size: 0.88rem; font-weight: 600; color: var(--fet-primary-dark); margin-bottom: 0.35rem; }
.event-card:hover .event-title a { text-decoration: underline; }

.event-timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--fet-border); }
.event-timeline-item { position: relative; padding-bottom: 1.5rem; }
.event-timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 7px);
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--fet-primary);
    box-shadow: 0 0 0 4px var(--fet-bg);
}
.event-timeline-date { display: block; font-size: 0.85rem; font-weight: 700; color: var(--fet-primary-dark); margin-bottom: 0.2rem; }

/* ---------- Programas ---------- */

.program-card-media { overflow: hidden; }
.program-card-horizontal { flex-direction: row; }
.program-card-horizontal .program-card-media { flex: 0 0 40%; }
.program-card-horizontal .program-card-image { height: 100%; aspect-ratio: auto; }
@media (max-width: 575.98px) {
    .program-card-horizontal { flex-direction: column; }
    .program-card-horizontal .program-card-image { aspect-ratio: 16 / 10; }
}
.program-card-minimal { border-top-width: 1px; border-left: 5px solid var(--program, var(--fet-primary)); }

.footer-logo-sm { height: 52px; }
.footer-inline-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.92rem; }
.footer-compact { padding-top: 2rem; }
.footer-compact .footer-legal { margin-top: 1.5rem; }
.footer-centered .footer-legal { text-align: center; }

/* ── inner pages, editorial design (setting page_style) ────────────────────── */
.page-hero { background: var(--fet-surface); padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem); }
/* heading sizes (Page::HERO_STYLES): compact = text only, standard = shorter art, featured = as designed */
.page-hero.page-hero--compact { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem) 0 clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
.page-hero.page-hero--compact .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero.page-hero--compact .page-hero-text { gap: 0.6rem; }
.page-hero.page-hero--compact h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); }
.page-hero.page-hero--compact .page-hero-lead { font-size: 1.05rem; max-width: 70ch; }
.page-hero.page-hero--compact .page-hero-art { max-width: 16rem; min-height: 0; }
.page-hero.page-hero--standard { padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem) 0 clamp(1.75rem, 1.4rem + 2vw, 3rem); }
@media (min-width: 992px) { .page-hero.page-hero--standard .page-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); } }
.page-hero.page-hero--standard h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); }
.page-hero.page-hero--standard .page-hero-art { min-height: 0; }
.page-hero.page-hero--standard .page-hero-mark, .page-hero.page-hero--standard .page-hero-img { aspect-ratio: 1; }
.page-hero.page-hero--standard .page-hero-initial { font-size: clamp(4rem, 3rem + 3vw, 6rem); }
/* «franja»: smaller title and the image as a low strip, for pages with little information */
.page-hero.page-hero--slim { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) 0 clamp(1.5rem, 1.2rem + 1vw, 2rem); }
@media (min-width: 992px) { .page-hero.page-hero--slim .page-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); } }
.page-hero.page-hero--slim h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-hero.page-hero--slim .page-hero-text { gap: 0.6rem; }
.page-hero.page-hero--slim .page-hero-art { min-height: 0; padding: 0 0 0.75rem 0.75rem; }
.page-hero.page-hero--slim .page-hero-mark, .page-hero.page-hero--slim .page-hero-img { aspect-ratio: 21 / 9; padding: 1rem; }
.page-hero.page-hero--slim .page-hero-img { padding: 0; }
.page-hero.page-hero--slim .page-hero-initial { font-size: clamp(3.5rem, 2.5rem + 2.5vw, 5rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.page-hero-text { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.page-hero-path { display: flex; flex-wrap: wrap; gap: 0.45rem; font-size: 0.9rem; color: var(--fet-muted); }
.page-hero-path a { color: var(--fet-primary-dark); font-weight: 600; }
.page-hero-tag { align-self: flex-start; background: var(--fet-accent); color: var(--fet-on-accent); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; }
.page-hero h1 { margin: 0; color: var(--fet-primary-dark); font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); line-height: 1.04; }
.page-hero-lead { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--fet-text); max-width: 56ch; }
.page-hero-art { position: relative; padding: 0 0 1.25rem 1.25rem; min-height: 15rem; }
.page-hero-block { position: absolute; left: 0; bottom: 0; width: 72%; height: 72%; border-radius: calc(var(--fet-radius) * 2); background: var(--fet-accent); }
.page-hero-img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--fet-radius) * 1.6); box-shadow: var(--fet-shadow); }
.page-hero-mark { position: relative; display: flex; align-items: flex-end; justify-content: space-between; aspect-ratio: 4 / 3; border-radius: calc(var(--fet-radius) * 1.6); background: var(--fet-primary-dark); overflow: hidden; padding: 1.5rem; }
.page-hero-initial { position: relative; z-index: 1; font-family: var(--fet-font-heading, inherit); font-weight: 800; font-size: clamp(5rem, 4rem + 5vw, 9rem); line-height: 0.8; color: #fff; }
.page-hero-stripes { position: absolute; inset: -20% -10% -20% 45%; transform: skewX(-16deg);
    background: linear-gradient(90deg, var(--fet-stripe-2) 0 24%, transparent 24% 32%, var(--fet-stripe-3) 32% 54%, transparent 54% 62%, var(--fet-stripe-4) 62% 72%, transparent 72%); }

.page-toc { background: var(--fet-bg); border-bottom: 1px solid var(--fet-border); position: relative; z-index: 2; }
.page-toc-inner { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.page-toc-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fet-muted); margin-right: 0.35rem; }
.page-toc-link { display: inline-flex; gap: 0.4rem; align-items: baseline; padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--fet-surface); color: var(--fet-text); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.page-toc-link span { font-weight: 800; color: var(--fet-primary); font-size: 0.8rem; }
.page-toc-link:hover, .page-toc-link:focus-visible { background: var(--fet-primary); color: var(--fet-on-primary); }
.page-toc-link:hover span, .page-toc-link:focus-visible span { color: inherit; }

/* numbered sections and alternating bands */
.page-editorial .block[data-number] { scroll-margin-top: 5rem; }
.page-editorial .block[data-number] h2::before {
    content: var(--fet-section-number);
    display: block; width: auto; height: auto; margin: 0 0 0.45rem; border-radius: 0; background: none;
    font-size: 1rem; font-weight: 800; letter-spacing: 0.04em; color: var(--fet-primary);
}
.page-editorial .headings-center .block[data-number] h2::before { margin-left: auto; margin-right: auto; }
.page-editorial > .block:nth-child(even) > .section.bg-none { background: var(--fet-surface); }

@media (max-width: 767.98px) {
    .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .page-hero-art { min-height: 0; max-width: min(26rem, 100%); }
    /* on phones the small and «franja» headings keep the image as a low strip, the title stays the first thing */
    .page-hero.page-hero--standard .page-hero-mark, .page-hero.page-hero--standard .page-hero-img,
    .page-hero.page-hero--slim .page-hero-mark, .page-hero.page-hero--slim .page-hero-img { aspect-ratio: 3 / 1; padding: 0.75rem 1rem; }
    .page-hero.page-hero--standard .page-hero-img, .page-hero.page-hero--slim .page-hero-img { padding: 0; }
    .page-hero.page-hero--standard .page-hero-initial, .page-hero.page-hero--slim .page-hero-initial { font-size: 3.25rem; }
    .page-hero.page-hero--standard .page-hero-art, .page-hero.page-hero--slim .page-hero-art { padding: 0 0 0.6rem 0.6rem; }
}

/* ---------- Formación continuada: course cards and tabs ---------- */
.course-card .program-card-media { position: relative; }
.course-status {
    display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: var(--fet-surface); color: var(--fet-text); border: 1px solid var(--fet-border);
}
.course-card .course-status { position: absolute; top: .75rem; left: .75rem; box-shadow: var(--fet-shadow); }
.course-status-open { background: var(--fet-primary); color: var(--fet-on-primary); border-color: transparent; }
.course-status-soon { background: var(--fet-accent); color: var(--fet-on-accent); border-color: transparent; }
.course-tabs { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 2px solid var(--fet-border); }
.course-tab {
    border: 0; background: none; padding: .65rem 1rem; margin-bottom: -2px; border-bottom: 3px solid transparent;
    font-weight: 600; color: var(--fet-muted); display: inline-flex; align-items: center; gap: .5rem;
}
.course-tab:hover { color: var(--fet-primary); }
.course-tab.active { color: var(--fet-primary-dark); border-bottom-color: var(--fet-accent); }
.course-tab:focus-visible { outline: 3px solid var(--fet-focus); outline-offset: 2px; }
.course-tab-count { font-size: .75rem; background: var(--fet-bg); border-radius: 999px; padding: .05rem .5rem; color: var(--fet-text); }

/* ---------- Program page: cycles as tabs with their study plan ---------- */
.ladder-tab { border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; }
.ladder-tab:focus-visible { outline: none; }
.ladder-selectable .ladder-step { cursor: pointer; transition: background-color .2s var(--fet-ease), color .2s var(--fet-ease); }
.ladder-selectable .ladder-step:focus-within { outline: 3px solid var(--fet-focus); outline-offset: 2px; }
/* the chosen cycle is the filled one (without tabs the last step stays filled) */
.ladder-selectable .ladder-step:last-child:not(:has(.ladder-tab.active)) { background: var(--fet-bg); color: inherit; }
.ladder-selectable .ladder-step:last-child:not(:has(.ladder-tab.active)) .ladder-level { color: var(--program, var(--fet-primary)); }
.ladder-selectable .ladder-step:not(:has(.ladder-tab.active)) .ladder-meta { opacity: 0.8; }
.ladder-selectable .ladder-step:has(.ladder-tab.active) { background: var(--program, var(--fet-primary)); color: #fff; }
.ladder-selectable .ladder-step:has(.ladder-tab.active) .ladder-level { color: #fff; }
.ladder-selectable .ladder-step:has(.ladder-tab.active) .ladder-meta { opacity: 1; }
.ladder-selectable .ladder-step:not(:has(.ladder-tab.active)):hover { background: var(--fet-surface); }
/* cycle texts above its plan (program page) */
.cycle-info { margin-bottom: 2rem; }
.cycle-welcome { max-width: 72ch; margin-bottom: 1.5rem; font-size: 1.05rem; }

.cycle-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
.cycle-info-block { padding: 1.25rem 1.4rem; background: #fff; border-radius: var(--fet-radius); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.cycle-info-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; font-size: 1.05rem; color: var(--program, var(--fet-primary)); }
.cycle-info-icon { display: inline-grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: color-mix(in srgb, var(--program, var(--fet-primary)) 12%, #fff); font-size: 1rem; }
.cycle-info-block .prose > :last-child { margin-bottom: 0; }
/* job field and «Serás un experto en…»: full width, each item a pill with a brand diamond */
.cycle-info-block--wide { grid-column: 1 / -1; background: color-mix(in srgb, var(--program, var(--fet-primary)) 5%, #fff); }
.cycle-info-block--wide ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .6rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.cycle-info-block--wide li { display: flex; align-items: flex-start; gap: .65rem; margin: 0; padding: .7rem .9rem; background: #fff; line-height: 1.4;
    border: 1px solid color-mix(in srgb, var(--program, var(--fet-primary)) 16%, #fff); border-radius: calc(var(--fet-radius) * .75); }
.cycle-info-block--wide li::before { content: ""; flex: none; width: .5rem; height: .5rem; margin-top: .4rem; border-radius: 2px;
    background: var(--program, var(--fet-primary)); transform: rotate(45deg); }
.study-plan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.study-plan-total { color: var(--fet-muted); }
.study-plan-total strong { color: var(--program, var(--fet-primary)); font-size: 1.25rem; }
.study-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin: 0; }
/* computer: full rows (the view picks how many columns from the number of semesters) */
@media (min-width: 992px) { .study-plan-grid { grid-template-columns: repeat(var(--plan-cols, 4), minmax(0, 1fr)); } }
.semester-card {
    background: var(--fet-surface); border: 1px solid var(--fet-border); border-top: 5px solid var(--program, var(--fet-primary));
    border-radius: var(--fet-radius); padding: 1rem 1.1rem 1.1rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.semester-card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.semester-card-title { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; margin: 0; }
.semester-card-num {
    display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: var(--program, var(--fet-primary)); color: #fff; font-size: 1rem;
}
.semester-card-credits { font-size: .8rem; font-weight: 700; color: var(--program, var(--fet-primary)); background: var(--fet-bg); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }
.semester-card-list { margin: 0; }
.semester-card-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-top: 1px dashed var(--fet-border); font-size: .95rem; }
.semester-card-list li:first-child { border-top: 0; }
.subject-credits { flex: none; min-width: 1.8rem; text-align: center; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .1rem .45rem; background: var(--fet-bg); color: var(--fet-text); }

/* ---------- Nuestras instalaciones: aerial photo to drag around ---------- */
.campus-map { position: relative; }
.campus-map-viewport {
    height: clamp(340px, 70vh, 680px); overflow: auto; border-radius: var(--fet-radius); background: #2f4a2a;
    cursor: grab; overscroll-behavior: contain; scrollbar-width: thin; box-shadow: var(--fet-shadow);
}
.campus-map-viewport.is-dragging { cursor: grabbing; user-select: none; }
.campus-map-viewport:focus-visible { outline: 3px solid var(--fet-focus); outline-offset: 3px; }
.campus-map-stage { position: relative; width: calc(var(--zoom, 1.8) * 100%); }
.campus-map-stage > img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.campus-spot {
    position: absolute; transform: translate(-50%, -100%); border: 0; background: none; padding: 0;
    display: flex; flex-direction: column; align-items: center; gap: .3rem; cursor: pointer;
}
.campus-spot-dot {
    position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: var(--fet-accent); color: var(--fet-on-accent); font-size: 1.25rem; border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .45); transition: transform .2s var(--fet-ease);
}
.campus-spot-dot::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--fet-accent);
    animation: campus-pulse 2.4s ease-out infinite; animation-delay: calc(var(--i, 0) * .3s);
}
@keyframes campus-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.campus-spot-label {
    background: rgba(0, 0, 0, .78); color: #fff; font-size: .82rem; font-weight: 600; padding: .2rem .65rem;
    border-radius: 999px; white-space: nowrap;
}
.campus-spot:hover .campus-spot-dot, .campus-spot:focus-visible .campus-spot-dot { transform: scale(1.15); }
.campus-spot:focus-visible { outline: none; }
.campus-spot:focus-visible .campus-spot-label { outline: 3px solid var(--fet-focus); outline-offset: 2px; }
.campus-map-tools { position: absolute; top: .75rem; right: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.campus-map-zoom {
    width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: #fff; color: var(--fet-primary-dark);
    font-size: 1.2rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.campus-map-zoom:disabled { opacity: .45; }
.campus-map-zoom:focus-visible { outline: 3px solid var(--fet-focus); outline-offset: 2px; }
.campus-map-hint {
    position: absolute; left: .75rem; bottom: .75rem; margin: 0; padding: .35rem .8rem; border-radius: 999px;
    background: rgba(0, 0, 0, .7); color: #fff; font-size: .85rem; pointer-events: none;
}
.campus-map:not(.is-ready) .campus-map-tools { display: none; }
.campus-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.campus-place {
    width: 100%; display: flex; align-items: center; gap: .8rem; text-align: left; padding: .6rem; border-radius: var(--fet-radius);
    border: 1px solid var(--fet-border); background: var(--fet-surface); color: var(--fet-text);
}
.campus-place:hover { border-color: var(--fet-primary); }
.campus-place img, .campus-place-icon { width: 64px; height: 64px; flex: none; border-radius: calc(var(--fet-radius) / 1.5); object-fit: cover; }
.campus-place-icon { display: grid; place-items: center; background: var(--fet-bg); color: var(--fet-primary); font-size: 1.5rem; }
.campus-modal-photos img { display: block; width: 100%; max-height: 60vh; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
    .campus-spot-dot::after { animation: none; opacity: 0; }
}

/* program form: the transfer fields show when «¿Quieres homologar?» is checked */
.lead-transfer { display: none; border: 0; margin: 0 0 .5rem; padding: .75rem .9rem 0; border-left: 3px solid var(--fet-accent); background: var(--fet-bg); border-radius: 0 var(--fet-radius) var(--fet-radius) 0; }
form:has(.lead-transfer-toggle:checked) .lead-transfer { display: block; }

/* the header «pestaña» hangs over the top of the page on desktop: the program and course header starts below it,
   and a jump to an anchor («En esta página», #registro) stops under the sticky header instead of behind it */
@media (min-width: 992px) {
    body:has(.site-header.has-tabnav) .program-hero { padding-top: 5.25rem; }
    body:has(.site-header.has-tabnav) .page-hero.page-hero--compact,
    body:has(.site-header.has-tabnav) .page-hero.page-hero--standard,
    body:has(.site-header.has-tabnav) .page-hero.page-hero--slim { padding-top: 4.25rem; }
    html:has(.site-header.has-tabnav) { scroll-padding-top: 9rem; }
}

/* ---------- Video en franja (sección «Video o audio», diseño «Franja destacada») ---------- */
.video-band { --fet-focus: var(--fet-accent); background: var(--fet-primary-dark); color: var(--fet-on-primary); padding: clamp(2.5rem, 2rem + 2.5vw, 4.25rem) 0; }
.video-band-eyebrow { color: var(--fet-accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.4rem; }
.video-band-title { color: inherit; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); margin: 0 0 0.8rem; }
.video-band-text { opacity: 0.92; max-width: 38ch; margin: 0; }
.video-band-frame { position: relative; border-radius: calc(var(--fet-radius) * 1.5); overflow: hidden; border: 4px solid var(--fet-accent); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35); background: #000; }
.video-band-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-band-controls { position: absolute; right: 0.75rem; bottom: 0.75rem; display: flex; gap: 0.5rem; }
.video-band-btn { display: inline-flex; align-items: center; gap: 0.4rem; border: 0; border-radius: 999px; padding: 0.5rem 1rem; font-weight: 700; font-size: 0.9rem; background: rgba(0, 0, 0, 0.65); color: #fff; }
.video-band-btn-sound { background: var(--fet-accent); color: var(--fet-on-accent); }
.video-band-btn:hover { filter: brightness(1.08); }
.video-band-frame.has-sound .video-band-controls { display: none; }
@media (max-width: 575.98px) { .video-band-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .video-band-btn-sound span { position: static; width: auto; height: auto; clip: auto; } }
/* in a numbered page the number takes the place of the «Video» label, in yellow for contrast on green */
.page-editorial .block[data-number] .video-band-title::before { color: var(--fet-accent); }
.block[data-number] .video-band-eyebrow { display: none; }

/* «Responsable del área» box: the photo never fills the whole column */
.people-contact-photo { max-width: 240px; }

/* phones and tablets: the tab sits under the bar, so the space next to it is the header too (it was the white
   of the page, a long white band over the banner on tablets), and MENU keeps the dark green of the tab */
@media (max-width: 991.98px) {
    .hdr-drawer .site-header.has-tabnav { background: var(--fet-header-bg); }
    .has-tabnav .menu-toggle, .has-strip .menu-toggle { background: var(--fet-footer-bg); }
    .has-tabnav .menu-toggle:hover, .has-tabnav .menu-toggle:focus-visible, .has-tabnav .menu-toggle[aria-expanded="true"],
    .has-strip .menu-toggle:hover, .has-strip .menu-toggle:focus-visible, .has-strip .menu-toggle[aria-expanded="true"] {
        background: color-mix(in srgb, var(--fet-footer-bg) 70%, #000);
    }
}

/* identity 2026: vertical logo with the 3 stripes (top, with the strip), horizontal once the strip is gone */
.brand.has-wide-logo { display: grid; align-items: center; }
.brand.has-wide-logo > img { grid-area: 1 / 1; transition: opacity 0.35s var(--fet-ease), height 0.45s var(--fet-ease), margin 0.45s var(--fet-ease); }
.brand-logo-wide { opacity: 0; pointer-events: none; }
.hdr-drawer .brand.has-wide-logo .brand-logo-wide { height: 40px; }
@media (min-width: 768px) {
    .site-header:not(.is-top) .brand.has-wide-logo .brand-logo-tall { opacity: 0; }
    .site-header:not(.is-top) .brand.has-wide-logo .brand-logo-wide { opacity: 1; }
}
@media (min-width: 1200px) { .hdr-drawer .brand.has-wide-logo .brand-logo-wide { height: 46px; } }
/* phones only show the vertical logo: the hidden wide one took its width anyway and pushed the buttons off the screen */
@media (max-width: 767.98px) { .brand.has-wide-logo .brand-logo-wide { display: none; } }
/* the official #YoSoyFET in the middle of the bar */
.hashtag-logo { margin: 0; line-height: 0; }
.hashtag-logo img { height: 54px; width: auto; animation: hashtag-in 0.8s var(--fet-ease) both; }
@keyframes hashtag-in { from { opacity: 0; transform: translateY(6px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@media (max-width: 767.98px) { .hashtag-logo { display: none; } }
@media (prefers-reduced-motion: reduce) { .hashtag-logo img { animation: none; } .brand.has-wide-logo > img { transition: none; } }

/* person in charge of an area (identity 2026): tall photo with the manual's triangles in its corner,
   name in the condensed font, a yellow line and the mail as a button */
.lead-cards { display: grid; gap: 1rem; }
.lead-card { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem 1rem 1rem;
    border-radius: var(--fet-radius); background: #fff; box-shadow: 0 10px 28px rgb(15 102 53 / 0.1); overflow: hidden;
    transition: transform 0.3s var(--fet-ease), box-shadow 0.3s var(--fet-ease); }
.lead-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--fet-tertiary), var(--fet-primary)); }
.lead-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgb(15 102 53 / 0.16); }
.lead-card-media { position: relative; width: 7.5rem; aspect-ratio: 4 / 5; border-radius: calc(var(--fet-radius) * 0.8); overflow: hidden; background: var(--fet-primary); }
.lead-card-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s var(--fet-ease); }
.lead-card:hover .lead-card-photo { transform: scale(1.05); }
.lead-card-initials { display: grid; place-items: center; color: #fff; font-family: var(--fet-font-heading); font-size: 2.6rem; font-weight: 700; }
/* the three triangles of the manual: green, lime and yellow, rising from the corner */
.lead-card-media::after { content: ''; position: absolute; right: 0; bottom: 0; width: 70%; height: 38%; pointer-events: none;
    background:
        linear-gradient(to top left, var(--fet-tertiary) 0 30%, transparent 30.5%) right bottom / 55% 70% no-repeat,
        linear-gradient(to top left, #93c13e 0 40%, transparent 40.5%) right bottom / 80% 90% no-repeat,
        linear-gradient(to top left, #3baa49 0 45%, transparent 45.5%) right bottom / 100% 100% no-repeat;
    transform-origin: right bottom; transition: transform 0.4s var(--fet-ease); }
.lead-card:hover .lead-card-media::after { transform: scale(1.12); }
.lead-card-body { min-width: 0; }
.lead-card-kicker { margin: 0 0 0.1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fet-muted); }
.lead-card-name { margin: 0; font-family: var(--fet-font-heading); font-weight: 700; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; color: var(--fet-primary); }
.lead-card-position { margin: 0.45rem 0 0.75rem; padding-top: 0.45rem; border-top: 3px solid var(--fet-tertiary); width: fit-content; max-width: 100%; font-size: 0.92rem; color: var(--fet-text); }
.lead-card-mail { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--fet-primary); color: #fff; font-size: 0.85rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; transition: background 0.2s ease, color 0.2s ease; }
.lead-card-mail:hover, .lead-card-mail:focus-visible { background: var(--fet-tertiary); color: var(--fet-on-tertiary); }
.lead-card-bio { margin-top: 0.6rem; font-size: 0.9rem; }
.lead-card-bio summary { cursor: pointer; font-weight: 700; color: var(--fet-primary); }
.lead-card-bio[open] summary { margin-bottom: 0.4rem; }
@media (max-width: 575.98px) {
    .lead-card { grid-template-columns: 5.5rem 1fr; gap: 0.9rem; }
    .lead-card-media { width: 5.5rem; }
    .lead-card-name { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .lead-card, .lead-card-photo, .lead-card-media::after { transition: none; }
    .lead-card:hover, .lead-card:hover .lead-card-photo, .lead-card:hover .lead-card-media::after { transform: none; }
}

/* a legal text placed in any page («Texto legal» section) */
.legal-embed { padding: 1.25rem 1.5rem; border-left: 4px solid var(--fet-primary); border-radius: var(--fet-radius); background: var(--fet-surface); }
.legal-embed-kicker { margin: 0 0 .25rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fet-primary); }
.legal-embed-title { margin: 0 0 .5rem; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }

/* ---------- design pass (nov 2026): aligned cycle cards, steps in a row ---------- */
/* the cycles: same height and the same top line for the three, numbered 1, 2, 3 (no arrows: they looked like buttons).
   The text inside a card starts at --cycle-inset, and the welcome text below uses the same columns and inset,
   so «Código SNIES» and «Bienvenido(a)» start on the same line */
.ladder { --cycle-gap: 1rem; --cycle-inset: calc(2px + 1.1rem); align-items: stretch; gap: var(--cycle-gap); counter-reset: cycle; }
.ladder-step { margin-top: 0; min-height: 0; padding-inline: 1.1rem; border-radius: var(--fet-radius); gap: .35rem; }
.ladder-level { display: flex; align-items: center; gap: .45rem; }
.ladder-level::before {
    counter-increment: cycle; content: counter(cycle);
    display: inline-grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%;
    border: 1.5px solid currentColor; font-size: .72rem; font-weight: 800; line-height: 1;
}
@media (max-width: 767.98px) {
    .ladder { gap: .6rem; }
    .ladder-step { margin-left: 0; border-radius: var(--fet-radius); }
}
/* the welcome text: one block that reads top to bottom (columns made each piece look like it belonged to the card
   above it); it starts on the same line as the text of the cards, «Código SNIES» included, on every screen */
.cycle-welcome--cols { --inset: calc(2px + 1.1rem); max-width: calc(75ch + var(--inset)); padding-left: var(--inset); columns: auto; }
/* computer: two columns, left and right; whole paragraphs (never cut in half), balanced, a thin line between them.
   The left one starts on the line of the card text; a single paragraph stays in one column */
@media (min-width: 992px) {
    .cycle-welcome--cols { max-width: none; padding-right: var(--inset); columns: 2; column-gap: 3.5rem; column-rule: 1px solid rgba(0, 0, 0, .1); column-fill: balance; }
    .cycle-welcome--cols > * { break-inside: avoid; }
    .cycle-welcome--cols:has(> :only-child) { columns: 1; max-width: calc(75ch + var(--inset)); }
}
.cycle-welcome--cols > :first-child { margin-top: 0; }
/* phone: the cards have a thicker left border */
@media (max-width: 767.98px) { .cycle-welcome--cols { --inset: calc(8px + 1.1rem); } }
/* steps in a row: number, a line to the next one, title and text below, all starting on the same line */
@media (min-width: 992px) {
    .steps--row { display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 2rem; }
    .steps--row .step { grid-template-columns: 1fr; padding-bottom: 0; }
    .steps--row .step-text { grid-column: 1; }
    .steps--row .step:not(:last-child)::after { left: 3.75rem; right: -1.25rem; top: 1.45rem; bottom: auto; width: auto; height: 2px; }
}
