/* Paleta formación / capacitación: azul confianza, teal crecimiento, ámbar logro */
:root {
    --primary: #2f6fad;
    --primary-deep: #1e4d7b;
    --accent: #0d9488;
    --accent-light: #2dd4bf;
    --accent-warm: #d97706;
    --accent-soft: rgba(13, 148, 136, 0.14);
    --accent-warm-soft: rgba(217, 119, 6, 0.12);
    --deep-dark: #0f1419;
    --surface: #1a222e;
    --surface-elevated: #222c3b;
    --text-main: #f4f7fb;
    --text-muted: #9db0c4;
    --glass: rgba(26, 34, 46, 0.9);
    --border: rgba(157, 176, 204, 0.14);
    --header-bg: #ffffff;
    --header-text: #1e293b;
    --header-muted: #64748b;
    --serif: "Source Serif 4", Georgia, serif;
    --site-toolbox-height: 34px; /* aprox. hasta que script mida la cabecera */
    --site-nav-band: 118px;
    --site-header-offset: calc(var(--site-toolbox-height) + var(--site-nav-band));
    --section-grid-step: clamp(80px, 12vw, 140px);
    --section-grid-line: rgba(255, 255, 255, 0.065);
    /* Misma columna de lectura que base-conceptual / container-table */
    --page-content-width: min(1040px, 94%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--site-header-offset);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body.pro-theme {
    background-color: var(--deep-dark);
    color: var(--text-main);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

main { padding-top: 0; }

/* ——— Cabecera fija: toolbox + menú principal ——— */
.site-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* ——— Barra toolbox ——— */
.site-toolbox {
    position: relative;
    z-index: 2;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.site-toolbox__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 3px clamp(12px, 2.5vw, 24px);
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.site-toolbox__label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    flex-shrink: 0;
    line-height: 1.2;
}

.site-toolbox__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin: 0;
    padding: 0;
}

.site-toolbox__nav > a:not(:first-of-type) {
    border-left: 1px solid rgba(148, 163, 184, 0.28);
    padding-left: 14px;
    margin-left: 14px;
}

.site-toolbox__link {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #e2e8f0;
    text-decoration: none;
    padding: 2px 2px;
    line-height: 1.25;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-toolbox__link[href^="mailto:"] {
    overflow-wrap: anywhere;
}

.site-toolbox__link--with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.site-toolbox__icon {
    display: inline-flex;
    flex-shrink: 0;
    opacity: 0.93;
}

.site-toolbox__icon svg {
    display: block;
    width: 13px;
    height: 13px;
}

.site-toolbox__link-text {
    min-width: 0;
}

.site-toolbox__link:hover {
    color: #99f6e4;
    background-color: rgba(45, 212, 191, 0.08);
}

.site-toolbox__link:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.site-toolbox__link--external {
    color: #7dd3c0;
}

.site-toolbox__link--external:hover {
    color: #ccfbf1;
}

@media (max-width: 900px) {
    :root {
        /* Menú y logo en columna: la banda real supera el valor de escritorio */
        --site-nav-band: clamp(220px, 48vh, 380px);
    }
}

@media (max-width: 640px) {
    :root {
        --site-toolbox-height: 40px;
        --site-nav-band: clamp(235px, 52vh, 400px);
    }

    .site-toolbox__inner {
        justify-content: center;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .site-toolbox__label {
        width: 100%;
        text-align: center;
    }

    .site-toolbox__nav {
        justify-content: center;
    }

    .site-toolbox__nav > a:not(:first-of-type) {
        padding-left: 10px;
        margin-left: 10px;
    }
}

/* ——— Navegación (barra superior clara) ——— */
.main-nav {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    z-index: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    transition: box-shadow 0.25s ease;
}

/* Franja inferior metálica: gradiente horizontal + bisel vertical (brillo / sombra) */
.main-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    pointer-events: none;
    background-image:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.88) 0%,
            rgba(255, 255, 255, 0.18) 38%,
            transparent 52%,
            rgba(15, 23, 42, 0.14) 100%
        ),
        linear-gradient(
            95deg,
            #4a5568 0%,
            #64748b 14%,
            #94a3b8 26%,
            #cbd5e1 38%,
            #f1f5f9 46%,
            #ffffff 50%,
            #e2e8f0 54%,
            #94a3b8 68%,
            #64748b 82%,
            #475569 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.main-nav--scrolled {
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.main-nav--scrolled .nav-shell.glass-container {
    padding: 10px clamp(16px, 3vw, 28px);
}

.glass-container {
    width: 98%;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    padding: 10px 18px 10px 14px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(15, 20, 25, 0.35);
}

.main-nav .nav-shell.glass-container {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 14px clamp(16px, 2vw, 24px);
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    height: 96px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}

/* Carril compacto: agrupa enlaces y desplegables con aspecto “toolbar” */
.nav-links__track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 5px 6px;
    background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 48%, #e8eef5 100%);
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(15, 23, 42, 0.04),
        0 2px 8px rgba(15, 23, 42, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}

.main-nav .nav-links a {
    color: #3d4e63;
}

.nav-links a:hover {
    color: var(--accent-light);
}

/* Iconos del menú principal (misma línea gráfica que la lupa del buscador) */
.nav-link__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
    stroke: currentColor;
    fill: none;
}

.main-nav .btn-portal .nav-link__icon {
    opacity: 1;
}

.main-nav .nav-links__track > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    z-index: 0;
}

.main-nav .nav-links__track > a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--primary) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.main-nav .nav-links a:hover {
    color: var(--primary-deep);
    background-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.main-nav .nav-links__track > a:hover::after,
.main-nav .nav-links__track > a:focus-visible::after {
    transform: scaleX(1);
}

.main-nav .nav-links a:focus-visible {
    outline: none;
    color: var(--primary-deep);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(47, 111, 173, 0.45);
    border-radius: 10px;
}

/* Referencias: submenú en la barra de navegación */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 14px;
    min-height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--header-muted);
    border-radius: 10px;
    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}

.main-nav .nav-dropdown__trigger {
    position: relative;
    z-index: 0;
    color: #3d4e63;
}

.main-nav .nav-dropdown__trigger::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--primary) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.main-nav .nav-dropdown__trigger:hover::after,
.main-nav .nav-dropdown__trigger:focus-visible::after,
.main-nav .nav-dropdown--open .nav-dropdown__trigger::after {
    transform: scaleX(1);
}

.main-nav .nav-dropdown--current-branch .nav-dropdown__trigger::after {
    transform: scaleX(1);
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible {
    color: var(--primary-deep);
    outline: none;
    background-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-dropdown__trigger:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(47, 111, 173, 0.45);
}

.nav-dropdown--open .nav-dropdown__trigger {
    color: var(--primary-deep);
    background: linear-gradient(180deg, rgba(47, 111, 173, 0.11) 0%, rgba(13, 148, 136, 0.07) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(47, 111, 173, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.85);
}

.nav-dropdown__caret {
    flex-shrink: 0;
    padding: 3px;
    border-radius: 6px;
    background: rgba(47, 111, 173, 0.1);
    color: var(--primary-deep);
    opacity: 1;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.nav-dropdown--open .nav-dropdown__caret {
    transform: rotate(180deg);
    background: rgba(47, 111, 173, 0.18);
}

.nav-dropdown--current-branch .nav-dropdown__trigger {
    color: var(--primary-deep);
    font-weight: 700;
    background: linear-gradient(180deg, rgba(47, 111, 173, 0.12) 0%, rgba(255, 255, 255, 0.5) 100%);
    box-shadow: inset 0 0 0 1px rgba(47, 111, 173, 0.15);
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    box-shadow:
        0 4px 6px -2px rgba(15, 23, 42, 0.05),
        0 22px 48px -12px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    z-index: 1005;
}

.nav-dropdown__panel::before {
    content: "";
    display: block;
    height: 4px;
    margin: -8px -8px 8px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, var(--primary) 0%, #3d8fd4 40%, var(--accent) 100%);
}

.nav-dropdown--open .nav-dropdown__panel {
    animation: nav-dropdown-reveal 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nav-dropdown-reveal {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-dropdown__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px 11px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--header-text);
    text-decoration: none;
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-dropdown__link::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(47, 111, 173, 0.25);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.nav-dropdown__link:hover::before,
.nav-dropdown__link:focus-visible::before {
    opacity: 1;
    transform: scale(1);
    background: var(--accent);
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
    background: linear-gradient(90deg, rgba(47, 111, 173, 0.08) 0%, rgba(13, 148, 136, 0.05) 100%);
    color: var(--primary-deep);
    border-left-color: var(--accent);
    outline: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.main-nav .nav-dropdown__link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(47, 111, 173, 0.12) 0%, rgba(13, 148, 136, 0.06) 100%);
    color: var(--primary-deep);
    font-weight: 700;
    border-left-color: var(--primary);
}

.main-nav .nav-dropdown__link[aria-current="page"]::before {
    opacity: 1;
    transform: scale(1);
    background: var(--primary);
}

/* ——— Megamenú (tres secciones con resumen, grid e iconos) ——— */
.nav-mega-overlay {
    position: fixed;
    top: var(--site-header-offset, 120px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: linear-gradient(168deg, rgba(15, 23, 42, 0.48) 0%, rgba(30, 64, 110, 0.26) 55%, rgba(15, 23, 42, 0.35) 100%);
    backdrop-filter: blur(5px) saturate(128%);
    -webkit-backdrop-filter: blur(5px) saturate(128%);
    pointer-events: auto;
    cursor: default;
}

.nav-mega-overlay[hidden] {
    display: none !important;
    pointer-events: none;
}

.nav-dropdown--mega {
    position: static;
}

.main-nav {
    overflow: visible;
}

.site-header-fixed,
.main-nav,
.nav-links,
.nav-links__track {
    overflow: visible;
}

.nav-dropdown--mega .nav-dropdown__panel.nav-mega {
    position: fixed;
    top: var(--site-header-offset, 120px);
    left: 50%;
    right: auto;
    width: min(1080px, calc(100vw - 32px));
    max-height: min(80vh, 720px);
    overflow: hidden;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 22px;
    z-index: 1001;
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(47, 111, 173, 0.06) 0%, transparent 50%),
        linear-gradient(155deg, #ffffff 0%, #f5f8fc 38%, #eef2f7 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.92) inset,
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 28px 56px -16px rgba(15, 23, 42, 0.18),
        0 48px 100px -32px rgba(30, 64, 110, 0.2);
    transform: translateX(-50%) translateY(0);
    transform-origin: 50% 0;
}

.nav-dropdown--mega .nav-dropdown__panel.nav-mega::before {
    content: "";
    display: block;
    height: 5px;
    margin: 0 0 0 0;
    width: 100%;
    background: linear-gradient(90deg, #1e3a5f 0%, var(--primary) 14%, #3d8fd4 48%, #0d9488 86%, #2dd4bf 100%);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 3px 12px -2px rgba(47, 111, 173, 0.35);
}

.nav-dropdown--mega.nav-dropdown--open .nav-dropdown__panel.nav-mega {
    animation: nav-mega-panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nav-mega-panel-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.nav-mega__inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.88fr) minmax(0, 1.42fr);
    gap: 0;
    align-items: stretch;
    min-height: 0;
    max-height: min(80vh, 720px);
}

.nav-mega__rail {
    position: relative;
    padding: 1.5rem 1.45rem 1.55rem 1.65rem;
    background:
        radial-gradient(130% 90% at 0% 0%, rgba(47, 111, 173, 0.14) 0%, transparent 55%),
        radial-gradient(80% 50% at 100% 100%, rgba(13, 148, 136, 0.08) 0%, transparent 45%),
        linear-gradient(165deg, rgba(30, 58, 95, 0.07) 0%, transparent 45%),
        linear-gradient(180deg, rgba(15, 118, 110, 0.05) 0%, rgba(15, 23, 42, 0.02) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-mega__rail::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    bottom: 1.25rem;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(47, 111, 173, 0.2) 20%, rgba(13, 148, 136, 0.15) 80%, transparent);
    pointer-events: none;
}

.nav-mega__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.nav-mega__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    box-shadow: 0 0 0 2px rgba(47, 111, 173, 0.2);
    flex-shrink: 0;
}

.nav-mega__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: #1e293b;
    background: linear-gradient(120deg, #0f172a 0%, var(--primary-deep) 55%, #0d9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@supports not (-webkit-background-clip: text) {
    .nav-mega__title {
        color: var(--primary-deep);
    }
}

.nav-mega__lede {
    margin: 0;
    max-width: 22rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
    font-weight: 500;
}

.nav-mega__grid {
    margin: 0;
    padding: 0.75rem 0.65rem 0.8rem 0.55rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: min(80vh, 720px);
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 111, 173, 0.35) rgba(15, 23, 42, 0.06);
}

.nav-mega__grid::-webkit-scrollbar {
    width: 7px;
}

.nav-mega__grid::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 6px;
    margin: 6px 0;
}

.nav-mega__grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(47, 111, 173, 0.45) 0%, rgba(13, 148, 136, 0.35) 100%);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.nav-mega__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-mega__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.85rem 0.9rem 0.85rem 0.7rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    outline: none;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.nav-mega__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--primary) 0%, #0d9488 100%);
    opacity: 0;
    transform: scaleY(0.6);
    transition:
        opacity 0.22s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-mega__card::after {
    content: "→";
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transition:
        opacity 0.2s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.nav-mega__card:hover,
.nav-mega__card:focus-visible {
    background: linear-gradient(120deg, rgba(47, 111, 173, 0.1) 0%, rgba(13, 148, 136, 0.07) 100%);
    border-color: rgba(47, 111, 173, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 8px 24px -8px rgba(15, 23, 42, 0.14);
    transform: translateX(3px);
}

.nav-mega__card:hover::before,
.nav-mega__card:focus-visible::before {
    opacity: 1;
    transform: scaleY(1);
}

.nav-mega__card:hover::after,
.nav-mega__card:focus-visible::after {
    opacity: 0.7;
    transform: translateY(-50%) translateX(0);
}

.nav-mega__card:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(47, 111, 173, 0.45);
    transform: translateX(0);
}

.nav-mega__card:focus-visible::after {
    opacity: 0.85;
}

a.nav-mega__card.nav-mega__card--campus-featured {
    border-color: rgba(13, 148, 136, 0.4);
    background: linear-gradient(140deg, rgba(13, 148, 136, 0.16) 0%, rgba(47, 111, 173, 0.12) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 0 0 1px rgba(45, 212, 191, 0.25),
        0 10px 32px -8px rgba(13, 148, 136, 0.35);
}

a.nav-mega__card.nav-mega__card--campus-featured::before {
    opacity: 1;
    transform: scaleY(1);
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--primary) 100%);
}

.nav-mega__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    color: #1e3a5f;
    background: linear-gradient(145deg, #ffffff 0%, #e8eef4 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 8px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.nav-mega__icon {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
    fill: none;
}

.nav-mega__card:hover .nav-mega__icon-wrap,
.nav-mega__card:focus-visible .nav-mega__icon-wrap {
    color: #fff;
    background: linear-gradient(145deg, #2b6a9a 0%, #1e3a5f 45%, #0d9488 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.25);
    transform: scale(1.04);
}

.nav-mega__card-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
    padding-top: 1px;
    padding-right: 1.1rem;
}

.nav-mega__card-title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.nav-mega__card-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 500;
    color: #64748b;
}

.nav-mega__card:hover .nav-mega__card-title,
.nav-mega__card:focus-visible .nav-mega__card-title {
    color: #0a1628;
}

a.nav-mega__card[aria-current="page"] {
    background: linear-gradient(120deg, rgba(47, 111, 173, 0.16) 0%, rgba(13, 148, 136, 0.11) 100%);
    border-color: rgba(47, 111, 173, 0.32);
    box-shadow: inset 0 0 0 1px rgba(47, 111, 173, 0.12);
}

a.nav-mega__card[aria-current="page"]::before {
    opacity: 1;
    transform: scaleY(1);
}

a.nav-mega__card[aria-current="page"]::after {
    opacity: 0.5;
    transform: translateY(-50%) translateX(0);
}

a.nav-mega__card[aria-current="page"] .nav-mega__icon-wrap {
    color: #fff;
    background: linear-gradient(145deg, #2b6a9a 0%, #1e3a5f 50%, #0d9488 100%);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.nav-dropdown--mega.nav-dropdown--open .nav-mega__item .nav-mega__card {
    animation: nav-mega-card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.nav-dropdown--mega.nav-dropdown--open .nav-mega__item:nth-child(1) .nav-mega__card {
    animation-delay: 0.04s;
}

.nav-dropdown--mega.nav-dropdown--open .nav-mega__item:nth-child(2) .nav-mega__card {
    animation-delay: 0.09s;
}

.nav-dropdown--mega.nav-dropdown--open .nav-mega__item:nth-child(3) .nav-mega__card {
    animation-delay: 0.14s;
}

.nav-dropdown--mega.nav-dropdown--open .nav-mega__item:nth-child(4) .nav-mega__card {
    animation-delay: 0.19s;
}

.nav-dropdown--mega.nav-dropdown--open .nav-mega__item:nth-child(5) .nav-mega__card {
    animation-delay: 0.24s;
}

@keyframes nav-mega-card-in {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-dropdown--mega.nav-dropdown--open .nav-dropdown__trigger {
    z-index: 1002;
    position: relative;
}

@media (min-width: 901px) {
    .main-nav {
        z-index: 2;
    }
}

@media (max-width: 900px) {
    .nav-mega-overlay {
        display: none !important;
    }

    .nav-dropdown--mega .nav-dropdown__panel.nav-mega {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        max-height: none;
        border-radius: 16px;
        z-index: auto;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06) inset, 0 4px 16px -4px rgba(15, 23, 42, 0.12);
    }

    .nav-dropdown--mega .nav-dropdown__panel.nav-mega::before {
        border-radius: 16px 16px 0 0;
    }

    .nav-mega__inner {
        grid-template-columns: 1fr;
    }

    .nav-mega__rail {
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        padding: 1.1rem 1rem 1.15rem;
    }

    .nav-mega__title {
        font-size: 1.15rem;
    }

    .nav-mega__grid {
        max-height: none;
        padding: 0.45rem 0.35rem 0.4rem;
    }

    .nav-mega__card::after {
        display: none;
    }

    .nav-mega__card-text {
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-mega__card,
    .nav-dropdown--mega.nav-dropdown--open .nav-dropdown__panel.nav-mega,
    .nav-dropdown--mega.nav-dropdown--open .nav-mega__item .nav-mega__card {
        transition-duration: 0.01ms;
        animation: none !important;
    }

    .nav-dropdown__caret {
        transition-duration: 0.01ms;
    }

    .nav-dropdown--open .nav-dropdown__panel:not(.nav-mega) {
        animation: none;
    }

    .main-nav .nav-links__track > a::after {
        transition-duration: 0.01ms;
    }

    .main-nav .nav-dropdown__trigger::after {
        transition-duration: 0.01ms;
    }

    .main-nav .btn-portal::after {
        transition-duration: 0.01ms;
    }

    .footer-legal .footer-list a::after {
        transition-duration: 0.01ms;
    }
}

/* Páginas Bibliografía / Videografía */
.ref-page .ref-page__box {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 12px;
    background: rgba(15, 20, 28, 0.5);
    border: 1px solid var(--border);
}

.ref-page__p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.ref-page__p:last-of-type {
    margin-bottom: 0;
}

.ref-page__p a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ref-page__p a:hover {
    text-decoration: underline;
    border-bottom-color: rgba(153, 246, 228, 0.55);
}

.ref-page__cite {
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 1rem 0 1.25rem;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}

.ref-page__list {
    margin: 1rem 0 1.25rem;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ref-page__list li {
    margin-bottom: 0.65rem;
}

.ref-page__list li strong {
    color: #cbd5e1;
}

.ref-page__list a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ref-page__list a:hover {
    text-decoration: underline;
    border-bottom-color: rgba(153, 246, 228, 0.55);
}

/* ——— Webgrafía (directorio de enlaces curados) ——— */
.ref-page--webgrafia .disclaimer-inner {
    max-width: 1120px;
}

.webgrafia-hero {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.webgrafia-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin: 0 0 0.5rem;
    opacity: 0.95;
}

.ref-page--webgrafia .webgrafia-title {
    margin-bottom: 0.65rem;
}

.webgrafia-lead {
    max-width: 52rem;
}

.webgrafia-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.webgrafia-meta__num {
    font-weight: 700;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.webgrafia-meta__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.45);
}

.ref-page__box.webgrafia-notice {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 720px) {
    .ref-page__box.webgrafia-notice {
        grid-template-columns: 1fr auto;
    }

    .webgrafia-notice__actions {
        justify-self: end;
        align-self: center;
    }
}

.webgrafia-toc {
    margin: 1.75rem 0 2rem;
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 12px;
    background: rgba(12, 18, 28, 0.55);
    border: 1px solid var(--border);
}

.webgrafia-toc__heading {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.75rem;
}

.webgrafia-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
}

.webgrafia-toc__list li {
    margin: 0;
}

.webgrafia-toc__list a {
    display: inline-block;
    padding: 0.38rem 0.72rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.webgrafia-toc__list a:hover {
    color: var(--accent-light);
    border-color: rgba(45, 212, 191, 0.35);
    background: rgba(15, 23, 42, 0.92);
}

.webgrafia-cats {
    margin-top: 0;
}

.webgrafia-cat {
    scroll-margin-top: calc(var(--site-header-offset) + 20px);
    margin-top: 2.5rem;
}

.webgrafia-cat:first-child {
    margin-top: 0;
}

.webgrafia-cat__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.webgrafia-cat__title {
    font-family: var(--serif);
    font-size: 1.42rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.25;
}

.webgrafia-cat__badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.28rem 0.58rem;
    border-radius: 6px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.22);
}

.webgrafia-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px 14px;
}

.webgrafia-li {
    margin: 0;
}

.webgrafia-item {
    height: 100%;
    margin: 0;
    padding: 1rem 1rem 1.05rem;
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(18, 26, 38, 0.92) 0%, rgba(12, 18, 28, 0.78) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.webgrafia-item:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.webgrafia-item__title {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 0.45rem;
    line-height: 1.35;
    color: #e2e8f0;
}

.webgrafia-item__link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(45, 212, 191, 0.28);
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.webgrafia-item__link:hover {
    color: #99f6e4;
    border-bottom-color: rgba(153, 246, 228, 0.55);
}

.webgrafia-item__link::after {
    content: "";
    display: inline-block;
    width: 0.82em;
    height: 0.82em;
    margin-left: 0.3em;
    vertical-align: -0.06em;
    opacity: 0.55;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14 21 3'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.webgrafia-item__alias {
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.88em;
}

.webgrafia-item__desc {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

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

    .webgrafia-item:hover {
        transform: none;
    }
}

@media (max-width: 520px) {
    .webgrafia-grid {
        grid-template-columns: 1fr;
    }
}

.ref-page__muted {
    font-size: 0.92rem !important;
}

.ref-page__muted a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.35);
}

.ref-page__muted a:hover {
    text-decoration: underline;
}

.ref-page__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 1.5rem;
}

.ref-page__secondary {
    text-decoration: none;
}

/* Bloque IX/X transcrito desde el PDF de la tesis */
.ref-page .tesis-ref {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 12px;
    background: rgba(12, 18, 28, 0.72);
    border: 1px solid var(--border);
    max-height: min(70vh, 720px);
    overflow-y: auto;
}

.tesis-ref__heading {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.75rem;
    scroll-margin-top: calc(var(--site-header-offset) + 12px);
}

.tesis-ref__note {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.tesis-ref__note cite {
    font-style: italic;
    color: #cbd5e1;
}

.tesis-ref__p {
    font-size: 0.92rem;
    line-height: 1.62;
    color: #cbd5e1;
    margin: 0 0 0.85rem;
    word-break: break-word;
}

.tesis-ref__p:last-child {
    margin-bottom: 0;
}

.tesis-ref__p a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.3);
    word-break: break-all;
}

.tesis-ref__p a:hover {
    text-decoration: underline;
    border-bottom-color: rgba(153, 246, 228, 0.5);
}

.tesis-ref__page-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
    margin: 1.35rem 0 0.65rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

.tesis-ref__page-label:first-of-type {
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: none;
}

@media (prefers-reduced-motion: reduce) {
    .ref-page .tesis-ref {
        scroll-behavior: auto;
    }
}

/* Agrupa buscador + enlaces en el header */
.nav-shell__cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 16px;
    flex: 1;
    min-width: 0;
}

/* Botón mostrar/ocultar menú principal (solo ≤900px) */
.nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--primary-deep);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.nav-mobile-toggle:hover {
    border-color: rgba(47, 111, 173, 0.35);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(47, 111, 173, 0.12);
}

.nav-mobile-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(47, 111, 173, 0.45);
}

.nav-mobile-toggle__icon {
    display: block;
    pointer-events: none;
}

.nav-mobile-toggle__icon--close {
    display: none;
}

.site-header-fixed.nav-mobile--expanded .nav-mobile-toggle__icon--menu {
    display: none;
}

.site-header-fixed.nav-mobile--expanded .nav-mobile-toggle__icon--close {
    display: block;
}

@media (min-width: 901px) {
    .site-header-fixed .nav-links {
        display: flex !important;
    }
}

/* Buscador del sitio (índice textual en search.js) */
.site-search {
    --ss-border: #e2e8f0;
    --ss-border-hover: #cbd5e1;
    --ss-surface: #ffffff;
    --ss-muted: #64748b;
    --ss-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 10px 20px -5px rgba(15, 23, 42, 0.08);
    --ss-shadow-lg: 0 8px 10px -2px rgba(15, 23, 42, 0.06), 0 20px 40px -12px rgba(15, 23, 42, 0.12);

    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1002;
}

.site-search__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-search__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--ss-muted);
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 8px rgba(15, 23, 42, 0.05);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.site-search__trigger:hover {
    color: var(--primary-deep);
    border-color: var(--ss-border-hover);
    background: #f8fafc;
}

.site-search__trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.site-search--open .site-search__trigger {
    color: var(--primary);
    border-color: rgba(47, 111, 173, 0.45);
    background: #f1f5f9;
    box-shadow:
        0 0 0 1px rgba(47, 111, 173, 0.12),
        0 2px 8px rgba(47, 111, 173, 0.1);
}

.site-search__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    min-width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
        max-width 0.4s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.28s ease;
}

.site-search--open .site-search__body {
    max-width: min(380px, 74vw);
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
}

.site-search__panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    width: 100%;
}

.site-search__input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--ss-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.015em;
    font-family: inherit;
    color: var(--header-text);
    background-color: var(--ss-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l3.5 3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px 50%;
    background-size: 18px 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search__input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.site-search__input:hover {
    border-color: var(--ss-border-hover);
}

.site-search__input:focus {
    outline: none;
    border-color: rgba(47, 111, 173, 0.55);
    box-shadow:
        0 0 0 3px rgba(47, 111, 173, 0.12),
        0 1px 2px rgba(15, 23, 42, 0.05);
}

.site-search__results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    margin: 0;
    padding: 4px;
    list-style: none;
    max-height: min(340px, 52vh);
    overflow-y: auto;
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: 10px;
    box-shadow: var(--ss-shadow-lg);
    z-index: 1003;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.site-search__results::-webkit-scrollbar {
    width: 6px;
}

.site-search__results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.site-search__results::-webkit-scrollbar-track {
    background: transparent;
}

.site-search__hit {
    margin: 0;
    border-radius: 6px;
}

.site-search__hit + .site-search__hit {
    margin-top: 1px;
}

.site-search__hit-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 11px 12px;
    text-decoration: none;
    color: var(--header-text);
    border-radius: 6px;
    transition: background 0.15s ease;
}

.site-search__hit-link:hover,
.site-search__hit-link:focus-visible {
    background: #f1f5f9;
    outline: none;
}

.site-search__hit-link:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(47, 111, 173, 0.25);
}

.site-search__hit-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--primary-deep);
    line-height: 1.35;
}

.site-search__hit-excerpt {
    font-size: 0.75rem;
    color: var(--ss-muted);
    line-height: 1.5;
}

.site-search__empty {
    padding: 14px 12px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ss-muted);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .site-search__body,
    .site-search__trigger {
        transition-duration: 0.01ms;
    }

    .main-nav .btn-portal:hover,
    .main-nav .btn-portal:active {
        transform: none;
    }
}

.btn-portal {
    background: transparent;
    border: 1px solid var(--accent-warm);
    color: #fcd9a8;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.main-nav .btn-portal {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    padding: 10px 22px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 4px 14px rgba(47, 111, 173, 0.35);
    transition:
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.main-nav .btn-portal::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 26px;
    background: linear-gradient(180deg, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
    pointer-events: none;
}

.main-nav .btn-portal::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(191, 219, 254, 0.85) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.main-nav .btn-portal:hover::after,
.main-nav .btn-portal:focus-visible::after {
    transform: scaleX(1);
}

.btn-portal:hover {
    background: var(--accent-warm);
    color: var(--deep-dark);
    border-color: var(--accent-warm);
}

.main-nav .btn-portal:hover {
    color: #99f6e4;
    background: linear-gradient(135deg, #3a7ab8 0%, #1a5588 100%);
    border-color: transparent;
    filter: brightness(1.03);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.08),
        0 8px 22px rgba(30, 77, 123, 0.45);
    transform: translateY(-1px);
}

.main-nav .btn-portal:focus-visible {
    outline: none;
    color: #99f6e4;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 5px rgba(47, 111, 173, 0.5),
        0 4px 14px rgba(47, 111, 173, 0.35);
}

.main-nav .btn-portal:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

/* ——— Hero ——— */
[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#hero-master.hero-with-media {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: calc(28px + var(--site-header-offset)) 0 80px;
    background-blend-mode: multiply;
    background-color: rgba(20, 35, 55, 0.55);
}

#hero-master .overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(var(--section-grid-step) - 1px),
            var(--section-grid-line) calc(var(--section-grid-step) - 1px),
            var(--section-grid-line) var(--section-grid-step)
        ),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(var(--section-grid-step) - 1px),
            var(--section-grid-line) calc(var(--section-grid-step) - 1px),
            var(--section-grid-line) var(--section-grid-step)
        ),
        linear-gradient(
            110deg,
            rgba(15, 20, 28, 0.94) 0%,
            rgba(20, 40, 58, 0.78) 42%,
            rgba(13, 90, 82, 0.35) 100%
        );
    pointer-events: none;
}

#conclusiones {
    position: relative;
}

#conclusiones::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(var(--section-grid-step) - 1px),
            var(--section-grid-line) calc(var(--section-grid-step) - 1px),
            var(--section-grid-line) var(--section-grid-step)
        ),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(var(--section-grid-step) - 1px),
            var(--section-grid-line) calc(var(--section-grid-step) - 1px),
            var(--section-grid-line) var(--section-grid-step)
        );
}

#conclusiones > * {
    position: relative;
    z-index: 1;
}

#hero-master .hero-with-media__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(28px, 5vw, 52px);
    width: 80%;
    max-width: none;
    margin: 0 auto;
}

#hero-master .content {
    position: relative;
    flex: 1 1 18rem;
    max-width: 38rem;
    min-width: 0;
}

/* Relojes mundiales (banner principal) — una fila */
.hero-clocks {
    --hero-clocks-map-opacity: 0.1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(138px, 1fr));
    gap: 10px 12px;
    flex: 0 1 auto;
    width: min(100%, 720px);
    max-width: 100%;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    background: transparent;
    border: none;
    box-shadow: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.hero-clocks::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("images/mapa-mundi.png") center / 200% auto no-repeat;
    opacity: var(--hero-clocks-map-opacity);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.hero-clocks-intro {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 20px 20px 0;
    margin: 0 0 14px;
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: center;
    color: rgba(226, 236, 245, 0.92);
}

.hero-clocks-progress {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 5px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.22);
}

.hero-clocks-progress__fill {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    border-radius: inherit;
    background: linear-gradient(90deg, #5eead4 0%, var(--accent-light) 35%, var(--accent) 100%);
    will-change: transform;
}

.hero-clocks-matrix {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    margin: 14px auto 18px;
    padding: 0 18px;
    max-width: 42rem;
    font-size: 0.8rem;
    line-height: 1.55;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.01em;
    min-height: 2.5em;
    color: #7dd3fc;
}

.hero-clocks-matrix__text {
    background: linear-gradient(
        105deg,
        #38bdf8 0%,
        #7dd3fc 28%,
        #e0f2fe 52%,
        #7dd3fc 75%,
        #0ea5e9 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-clocks-matrix__cursor {
    display: inline-block;
    margin-left: 1px;
    color: #7dd3fc;
    font-weight: 400;
    font-size: 1em;
    vertical-align: baseline;
    line-height: 1;
    animation: hero-clocks-matrix-cursor-blink 0.85s step-end infinite;
}

@keyframes hero-clocks-matrix-cursor-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

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

.world-clock {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 11px 11px 13px;
    box-shadow: none;
    text-align: center;
}

.world-clock__city {
    font-size: 0.76rem;
    font-weight: 700;
    color: #e8eef5;
    letter-spacing: 0.02em;
    margin: 0 0 9px;
    line-height: 1.2;
}

.world-clock__dial {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 9px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.06);
}

.world-clock__ticks {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

.world-clock__tick {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.75px;
    height: 6px;
    margin-left: -0.875px;
    margin-top: -49px;
    background: #94a3b8;
    transform-origin: 50% 49px;
    transform: rotate(var(--rot, 0deg));
    border-radius: 1px;
}

.world-clock__tick--hour {
    width: 2.25px;
    height: 10px;
    margin-left: -1.125px;
    margin-top: -49px;
    background: #475569;
    transform-origin: 50% 49px;
}

.world-clock__nums {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.world-clock__num {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.2rem;
    height: 1.05rem;
    margin-left: -0.6rem;
    margin-top: -0.525rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #475569;
    line-height: 1;
    transform: rotate(var(--nr, 0deg)) translateY(-37px) rotate(calc(-1 * var(--nr, 0deg)));
}

.world-clock__hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: 50% 100%;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 2px;
    pointer-events: none;
    z-index: 2;
}

.world-clock__hand--hour {
    width: 4.5px;
    height: 31px;
    margin-left: -2.25px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.world-clock__hand--min {
    width: 3.5px;
    height: 41px;
    margin-left: -1.75px;
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    z-index: 3;
}

.world-clock__hand--sec {
    width: 1.75px;
    height: 45px;
    margin-left: -0.875px;
    background: #dc2626;
    z-index: 4;
}

.world-clock__cap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #0f172a;
    z-index: 5;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.world-clock__digital {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f1f5f9;
    margin: 0 0 3px;
    letter-spacing: 0.02em;
}

.world-clock__region {
    display: block;
    font-size: 0.64rem;
    font-weight: 700;
    color: rgba(203, 213, 225, 0.88);
    line-height: 1.25;
}

@media (max-width: 960px) {
    #hero-master .hero-with-media__inner {
        flex-direction: column;
        align-items: center;
    }

    .hero-clocks {
        width: min(100%, 720px);
        max-width: 100%;
    }
}

.pre-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #7dd3c0;
    font-weight: 600;
    margin-bottom: 14px;
}

#hero-master .pre-title {
    white-space: nowrap;
    font-size: clamp(0.5rem, 2.35vw, 0.72rem);
    letter-spacing: clamp(0.07em, 0.35vw, 0.16em);
}

#hero-master h1 {
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    line-height: 1.08;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.accent {
    background: linear-gradient(105deg, var(--accent-light), var(--primary) 45%, #e8a355);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.65;
}

.hero-lead strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(47, 111, 173, 0.38);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(148, 163, 184, 0.35);
}

.btn-primary--large {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ——— Credenciales ——— */
.cred-bar {
    border-block: 1px solid var(--border);
    background: var(--surface-elevated);
}

.cred-inner {
    width: min(1120px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px 32px;
    padding: 22px 0;
}

.cred-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.cred-value {
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.35;
}

.cred-value__inst-en {
    white-space: nowrap;
}

.cred-value__line-nowrap {
    white-space: nowrap;
}

.cred-item--full {
    grid-column: 1 / -1;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

/* ——— Stats ——— */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    background: var(--surface);
    padding: 22px 28px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #7dd3c0;
    margin-bottom: 6px;
}

.stat-item--moodle strong {
    color: #ff9900;
}

.stat-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ——— Secciones genéricas ——— */
.section-padding {
    padding: clamp(56px, 10vw, 96px) 0;
    scroll-margin-top: calc(var(--site-header-offset) + 8px);
}

.section-alt {
    background: linear-gradient(180deg, rgba(34, 44, 59, 0.55) 0%, transparent 100%);
}

.section-title {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.section-subtitle--left {
    margin-left: 0;
    margin-right: 0;
}

.container-narrow {
    width: min(720px, 90%);
    margin: 0 auto;
}

.dark-bg { background-color: #0c1018; }
.text-center { text-align: center; }

/* ——— Justificación (sitio; inter-palabra; sin guiones entre líneas; fuera de UI centrada y figuras extracto) ——— */
body.pro-theme main
    :where(p, li, dd, blockquote):not(.ref-page__actions):not(.site-search__sr-only):not(.hero-clocks-intro):not(
        .hero-clocks-matrix
    ):not(.webgrafia-item__desc):not(.webgrafia-toc__list li):not(.webgrafia-li) {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: pretty;
}

body.pro-theme main tbody td {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: pretty;
}

body.pro-theme main .text-center,
body.pro-theme main .text-center :where(p, li, dd, blockquote) {
    text-align: center;
    text-justify: auto;
}

body.pro-theme main .thesis-extract-figref {
    text-align: start;
    text-justify: auto;
}

body.pro-theme main form :is(label, input, select, textarea, button, output) {
    text-align: revert;
    text-justify: auto;
}

body.pro-theme main .thesis-txt__area-head .thesis-txt__area-long {
    display: block;
    width: 100%;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: pretty;
}

body.pro-theme .thesis-txt--marco .thesis-txt__p,
body.pro-theme .thesis-txt--marco .thesis-txt__intro-areas,
body.pro-theme .thesis-txt--marco .thesis-txt__intro-list li {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: pretty;
}

body.pro-theme .thesis-txt--marco .thesis-extract-figref {
    text-align: start;
    text-justify: auto;
}

body.pro-theme .pro-footer .footer-note,
body.pro-theme .pro-footer .footer-copy {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: pretty;
}

/* ——— Investigación (fondo aeropuerto + velo para legibilidad) ——— */
.section-investigacion {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--deep-dark);
}

.section-investigacion::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("images/airport-bg.jpg") center center / cover no-repeat;
}

.section-investigacion::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        165deg,
        rgba(10, 14, 22, 0.93) 0%,
        rgba(15, 20, 30, 0.86) 42%,
        rgba(11, 16, 24, 0.9) 100%
    );
}

.section-investigacion__inner {
    position: relative;
    z-index: 2;
}

/* Misma anchura de columna que base-conceptual (container-table) */
.section-investigacion .container-table {
    width: var(--page-content-width);
    max-width: none;
}

.section-investigacion .section-subtitle {
    max-width: none;
}

.section-investigacion .investigacion-approval a {
    color: #7dd3c0;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    transition: color 0.2s ease;
}

.section-investigacion .investigacion-approval a:hover {
    color: #ccfbf1;
}

.section-investigacion .investigacion-approval a:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
    border-radius: 2px;
}

.thesis-quote {
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.65;
    color: #e2e8f0;
    border-left: 4px solid var(--accent);
    padding: 18px 24px 18px 24px;
    margin: 28px 0 32px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: var(--accent-soft);
    border-radius: 0 12px 12px 0;
}

.thesis-quote footer {
    margin-top: 12px;
    font-size: 0.85rem;
    font-family: "Inter", sans-serif;
    color: var(--text-muted);
    font-style: normal;
}

.prose {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.prose p + p {
    margin-top: 1rem;
}

.thesis-excerpt {
    margin: 28px 0 0;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(15, 25, 38, 0.6) 0%, rgba(8, 20, 32, 0.5) 100%);
    border: 1px solid rgba(100, 116, 139, 0.25);
    border-radius: 14px;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.65;
}

.thesis-excerpt__title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin: 0 0 12px;
    font-family: "Inter", sans-serif;
}

.thesis-excerpt p {
    margin: 0 0 0.9rem;
}

.thesis-excerpt p:last-child {
    margin-bottom: 0;
}

.thesis-excerpt__cite {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
}

.thesis-excerpt__cite a {
    color: #7dd3c0;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    transition: color 0.2s ease;
}

.thesis-excerpt__cite a:hover {
    color: #ccfbf1;
}

.thesis-excerpt__cite a:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
    border-radius: 2px;
}

.lms-thesis-compare {
    margin: 20px auto 8px;
    text-align: left;
}

.lms-compare__lead {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}

.lms-compare__lead--last {
    margin-bottom: 0;
}

.lms-compare__bridge {
    margin: 1.1rem auto 0;
    max-width: 48rem;
    font-size: 0.9rem;
    line-height: 1.62;
    color: var(--text-muted);
}

.lms-compare__bridge a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.35);
}

.lms-compare__bridge a:hover,
.lms-compare__bridge a:focus-visible {
    color: #99f6e4;
    border-bottom-color: rgba(153, 246, 228, 0.55);
}

.metodologia-tesis {
    margin: 1.1rem 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Aclaración de alcance: hallazgos vs. validación del sitio */
.hallazgos-alcance {
    margin: 0 0 1.2rem;
    padding: 12px 16px 12px 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b8c9d9;
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.12) 0%, rgba(47, 111, 173, 0.08) 100%);
    border-left: 3px solid rgba(45, 212, 191, 0.65);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.hallazgos-alcance strong {
    color: #e2eaf3;
    font-weight: 700;
}

.prose-muted {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    line-height: 1.6;
}

/* ——— Tabla de equivalencia (base conceptual) ——— */
.equiv-table-section {
    margin-top: clamp(40px, 6vw, 64px);
    padding-top: clamp(32px, 5vw, 48px);
    border-top: 1px solid var(--border);
}

.equiv-table-section__title {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.25;
}

.equiv-table-section__lead {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 52rem;
    margin-bottom: 18px;
}

.equiv-table-section__thesis {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.65;
    max-width: 52rem;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-left: 3px solid rgba(47, 111, 173, 0.65);
    background: rgba(15, 20, 28, 0.35);
    border-radius: 0 10px 10px 0;
}

.equiv-table-section__thesis cite {
    font-style: normal;
    color: var(--accent-light);
    font-weight: 600;
}

.equiv-table-section__subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 36px 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.equiv-table-section__note {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 48rem;
    margin-bottom: 16px;
}

.equiv-table--modules tbody td:first-child {
    font-weight: 600;
    color: #e2e8f0;
    min-width: 12rem;
    max-width: 16rem;
}

/* Enlace desde metodología hacia la página Base conceptual */
.metodologia-to-base {
    margin-top: clamp(28px, 5vw, 44px);
    padding-top: clamp(24px, 4vw, 36px);
    border-top: 1px solid var(--border);
}

.metodologia-to-base__text {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.metodologia-to-base__text a {
    font-weight: 600;
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.metodologia-to-base__text a:hover {
    color: #99f6e4;
    border-bottom-color: rgba(153, 246, 228, 0.55);
}

/* Página independiente: base conceptual */
.base-conceptual-page {
    scroll-margin-top: calc(var(--site-header-offset) + 8px);
}

.base-conceptual-page__h1 {
    margin-bottom: 10px;
}

.base-conceptual-page__intro {
    margin-bottom: 28px;
    max-width: 42rem;
}

.base-conceptual-page .equiv-table-section__title {
    margin-top: 0;
}

/* Página: marco teórico (extracto tesis, pp. 69–105) */
.marco-teorico-page {
    scroll-margin-top: calc(var(--site-header-offset) + 8px);
}

.marco-teorico-page__h1 {
    margin-bottom: 10px;
}

.marco-teorico-page__intro {
    margin-bottom: 28px;
    max-width: 44rem;
}

/* ——— Marco teórico: layout editorial (TOC + lectura rápida + cuerpo) ——— */
.marco-editorial {
    position: relative;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.marco-editorial__backdrop {
    position: fixed;
    inset: 0;
    z-index: 940;
    background: rgba(5, 8, 12, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.marco-editorial__backdrop[hidden] {
    display: none;
}

.marco-skip-link {
    position: absolute;
    left: -9999px;
    z-index: 10;
    padding: 0.35rem 0.75rem;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
}

.marco-skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.marco-toc-fab {
    display: none;
    position: fixed;
    z-index: 930;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem 0.55rem 0.75rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary));
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.marco-toc-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.marco-toc-fab:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

.marco-toc-fab__icon {
    display: flex;
    color: #a5f3fc;
}

.marco-editorial__grid {
    display: grid;
    grid-template-columns: min(280px, 32%) 1fr;
    gap: clamp(1rem, 2.5vw, 2.25rem);
    align-items: start;
}

.marco-editorial__sidebar {
    position: relative;
}

.marco-toc {
    position: sticky;
    top: calc(var(--site-header-offset) + 12px);
    padding: 1rem 1.1rem 1.1rem;
    background: rgba(22, 30, 42, 0.85);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.marco-toc__head {
    margin-bottom: 0.65rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.marco-toc__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.2rem;
    letter-spacing: 0.02em;
}

.marco-toc__meta {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.marco-toc__list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.marco-toc__link {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
    border-radius: 6px;
    margin: 0 -0.25rem;
    padding: 0.2rem 0.25rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.marco-toc__link:hover {
    color: #f1f5f9;
    background: rgba(47, 111, 173, 0.12);
}

.marco-toc__link.is-active {
    color: #5eead4;
    font-weight: 600;
    background: rgba(13, 148, 136, 0.12);
}

.marco-toc__badge {
    flex: 0 0 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(145deg, #5eead4, #2dd4bf);
    border-radius: 4px;
}

.marco-toc__close {
    display: none;
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-muted);
    background: rgba(15, 20, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.marco-toc__close:hover {
    color: var(--text-main);
    background: rgba(47, 111, 173, 0.2);
}

.marco-editorial__main {
    min-width: 0;
}

.marco-snapshot {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(125, 211, 252, 0.1);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.marco-snapshot__title {
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: #e0f2fe;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.marco-snapshot__lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 52rem;
}

.marco-pipeline {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    margin: 0 0 1.1rem;
    padding: 0.65rem 0.75rem;
    background: rgba(15, 20, 28, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    line-height: 1.35;
    color: #cbd5e1;
}

.marco-pipeline__step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.marco-pipeline__icon {
    color: #38bdf8;
    display: flex;
    flex-shrink: 0;
}

.marco-pipeline__arrow {
    color: #64748b;
    font-size: 0.85rem;
    user-select: none;
}

@media (max-width: 700px) {
    .marco-pipeline {
        flex-direction: column;
        align-items: stretch;
    }
    .marco-pipeline__arrow {
        display: none;
    }
    .marco-pipeline__step {
        border-bottom: 1px solid var(--border);
        padding: 0.3rem 0;
    }
    .marco-pipeline__step:last-child {
        border-bottom: 0;
    }
}

.marco-snapshot__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(15, 20, 28, 0.4);
}

.marco-areas-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.marco-areas-table__caption {
    caption-side: top;
    text-align: left;
    padding: 0.65rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 20, 28, 0.5);
}

.marco-areas-table th,
.marco-areas-table td {
    padding: 0.55rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid rgba(157, 176, 204, 0.1);
    vertical-align: top;
}

.marco-areas-table th[scope="row"] {
    width: 2.25rem;
    font-weight: 800;
    color: #5eead4;
    text-align: center;
    background: rgba(13, 148, 136, 0.08);
}

.marco-areas-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a8b9cc;
    background: rgba(47, 111, 173, 0.12);
}

.marco-nowrap {
    white-space: nowrap;
}

.marco-area-chart {
    margin: 0 0 1.1rem;
    padding: 0;
}

.marco-area-chart__cap {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 0.5rem;
}

.marco-area-chart__track {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.4rem;
    min-height: 4.5rem;
    padding: 0.5rem 0.4rem 0.25rem;
    background: rgba(15, 20, 28, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.marco-area-chart__bar {
    flex: 1 1 0;
    min-height: 1.2rem;
    max-width: 5.5rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 6px 2px 2px;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.marco-area-chart__n {
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}

.marco-area-chart__bar--a1 { height: 32%; min-height: 1.4rem; background: linear-gradient(180deg, #5eead4, #0d9488); }
.marco-area-chart__bar--a2 { height: 58%; min-height: 1.6rem; background: linear-gradient(180deg, #7dd3fc, #2f6fad); }
.marco-area-chart__bar--a3 { height: 44%; min-height: 1.4rem; background: linear-gradient(180deg, #a78bfa, #5b21b6); }
.marco-area-chart__bar--a4 { height: 100%; min-height: 1.7rem; background: linear-gradient(180deg, #fbbf24, #d97706); }

@media (min-width: 600px) {
    .marco-area-chart__track { min-height: 5.25rem; }
}

.marco-tips {
    list-style: none;
    margin: 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #9db0c4;
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 10px;
    border-left: 3px solid var(--accent-warm);
}

.marco-tips li {
    margin: 0 0 0.45rem;
    padding-left: 0.75rem;
    position: relative;
}

.marco-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: 700;
}

.marco-tips li:last-child {
    margin-bottom: 0;
}

/* Marco teórico — cabecera y separadores tipo publicación científica (solo body.page-marco-editorial) */
body.page-marco-editorial .marco-journal-masthead {
    display: grid;
    gap: 0.35rem;
    max-width: min(50rem, 100%);
    margin: 0 auto 1.35rem;
    padding: 0.75rem 0.5rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

body.page-marco-editorial .marco-journal-masthead__series {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

body.page-marco-editorial .marco-journal-masthead__ornament {
    width: 2.75rem;
    height: 1px;
    margin: 0.15rem auto;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), transparent);
}

body.page-marco-editorial .marco-journal-masthead__folio {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #e2e8f0;
}

body.page-marco-editorial .marco-journal-masthead__meta {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #64748b;
}

body.page-marco-editorial .marco-corpus-band {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 0 1.5rem;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.12);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.52));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

body.page-marco-editorial .marco-corpus-band__rail {
    flex: 0 0 4px;
    background: linear-gradient(180deg, #5eead4, #2f6fad 45%, #a78bfa);
}

body.page-marco-editorial .marco-corpus-band__body {
    flex: 1 1 auto;
    padding: 1rem 1.15rem 1.1rem 1rem;
}

body.page-marco-editorial .marco-corpus-band__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
}

body.page-marco-editorial .marco-corpus-band__title {
    margin: 0 0 0.45rem;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 600;
    line-height: 1.35;
    color: #f1f5f9;
}

body.page-marco-editorial .marco-corpus-band__meta {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #94a3b8;
}

body.page-marco-editorial .marco-corpus-band__docid {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}

body.page-marco-editorial .marco-corpus-band__sep {
    margin: 0 0.35rem;
    opacity: 0.45;
}

body.page-marco-editorial .marco-area-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 2.15rem 0 1rem;
}

body.page-marco-editorial .marco-area-divider:first-of-type {
    margin-top: 1.35rem;
}

body.page-marco-editorial .marco-area-divider__line {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.38) 12%, rgba(148, 163, 184, 0.38) 88%, transparent);
}

body.page-marco-editorial .marco-area-divider__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
    background: radial-gradient(circle at 32% 22%, #f8fafc, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.page-marco-editorial .marco-area-divider__badge:not(.marco-area-divider__badge--fin) {
    font-size: 0.95rem;
}

body.page-marco-editorial .marco-area-divider__badge--wide {
    min-width: 2.65rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

body.page-marco-editorial .marco-area-divider--fin {
    margin: 2.35rem 0 0.5rem;
}

body.page-marco-editorial .marco-area-divider__badge--fin {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 50%;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: #e0f2fe;
    background: linear-gradient(135deg, rgba(47, 111, 173, 0.55), rgba(15, 23, 42, 0.92));
    border-color: rgba(125, 211, 252, 0.28);
}

body.page-marco-editorial .marco-corpus-outro {
    margin-top: 0.25rem;
}

body.page-marco-editorial .marco-corpus-outro__note {
    margin: 0.55rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #64748b;
}

body.page-marco-editorial .marco-corpus-outro__note a {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.page-marco-editorial .marco-corpus-outro__note a:hover {
    color: #99f6e4;
}

body.page-marco-editorial .thesis-txt--marco .thesis-txt__kicker-section {
    position: relative;
    margin-top: 0.15rem;
    margin-bottom: 1rem;
    padding: 1.1rem 0 1.05rem 1.15rem;
    border-top: 3px double rgba(148, 163, 184, 0.28);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.12rem, 2.4vw, 1.4rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.32;
    color: #f1f5f9;
    text-wrap: balance;
}

body.page-marco-editorial .thesis-txt--marco .thesis-txt__kicker-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #38bdf8, #2dd4bf 52%, #818cf8);
    opacity: 0.88;
}

body.page-marco-editorial .thesis-txt__area-head {
    margin-top: 0.75rem;
    padding: 0.9rem 1rem 0.95rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(100, 116, 139, 0.22);
    border-left: 3px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.1);
}

body.page-marco-editorial .thesis-txt__area-label {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(125, 211, 252, 0.22);
}

body.page-marco-editorial .thesis-txt--marco .thesis-extract-figref {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 0.88rem;
}

body.page-marco-editorial .section-refs-apa--marco-journal {
    position: relative;
    padding-top: 2.65rem;
}

body.page-marco-editorial .section-refs-apa--marco-journal::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 1rem;
    width: min(28rem, 90%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.42), transparent);
}

body.page-marco-editorial .section-refs-apa--marco-journal .section-refs-apa__title {
    font-family: "Source Serif 4", Georgia, serif;
}

@media (max-width: 540px) {
    body.page-marco-editorial .marco-journal-masthead__meta {
        font-size: 0.72rem;
        line-height: 1.45;
    }

    body.page-marco-editorial .marco-corpus-band__meta {
        font-size: 0.76rem;
    }
}

.marco-editorial__main .thesis-txt--marco {
    margin: 0 auto;
    /* Misma intención que .thesis-txt--marco: columna de lectura (~50rem), dentro del container-table */
    max-width: min(50rem, 100%);
}

#marco-capitulo,
.thesis-txt__area-head {
    scroll-margin-top: calc(var(--site-header-offset) + 10px);
}

#refs-apa-marco {
    scroll-margin-top: calc(var(--site-header-offset) + 8px);
}

@media (max-width: 900px) {
    .marco-toc-fab {
        display: inline-flex;
        right: auto;
        left: max(12px, env(safe-area-inset-left));
    }

    .marco-editorial__grid {
        display: block;
    }

    .marco-editorial__sidebar {
        position: static;
        height: 0;
        min-height: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .marco-toc {
        position: fixed;
        left: 0;
        top: 0;
        width: min(20.5rem, 90vw);
        height: 100dvh;
        max-height: 100%;
        z-index: 950;
        margin: 0;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        border-radius: 0;
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
    }

    .marco-toc__nav {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }

    .marco-editorial--toc-open .marco-toc {
        transform: translateX(0);
        box-shadow: 8px 0 36px rgba(0, 0, 0, 0.5);
    }

    .marco-toc__close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .marco-toc__head {
        padding-right: 2.75rem;
    }
}

.thesis-txt--marco {
    max-width: 50rem;
    margin: 1.5rem auto 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-main);
}

.thesis-txt__kicker-section {
    font-size: 1.28rem;
    font-weight: 600;
    margin: 0 0 1rem;
    line-height: 1.3;
    color: #e2e8f0;
    letter-spacing: 0.01em;
}

.thesis-txt__area-head {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    line-height: 1.4;
    color: #cbd5e1;
}

.thesis-txt__area-label {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(47, 111, 173, 0.3);
    color: #7dd3fc;
}

.thesis-txt__area-long {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.5;
    color: #e2e8f0;
}

.thesis-txt__p {
    margin: 0 0 1.05rem;
    color: var(--text-muted);
}

.thesis-txt__p:last-child {
    margin-bottom: 0;
}

.thesis-txt__intro-list {
    margin: 0.25rem 0 1.05rem;
    padding-left: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.98rem;
}

.thesis-txt__intro-list li {
    margin: 0.4rem 0;
    padding-left: 0.15rem;
}

.thesis-txt__intro-li-k {
    font-weight: 700;
    color: #a5f3fc;
    margin-right: 0.15rem;
}

.thesis-extract-figref {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0.5rem 0 1.1rem;
    padding: 0.75rem 0.85rem 0.75rem 1rem;
    border-left: 3px solid rgba(47, 111, 173, 0.55);
    border-radius: 0 10px 10px 0;
    background: rgba(15, 20, 28, 0.5);
    color: #94a3b8;
}

.thesis-txt--marco a {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.thesis-txt--marco a:hover {
    color: #99f6e4;
}

.container-table {
    width: var(--page-content-width);
    margin: 0 auto;
}

.equiv-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(15, 20, 28, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.equiv-table-scroll:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

.equiv-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.5;
}

.equiv-table__caption {
    caption-side: top;
    text-align: left;
    padding: 14px 18px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: rgba(26, 34, 46, 0.65);
}

.equiv-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #e2e8f0;
    background: linear-gradient(180deg, rgba(47, 111, 173, 0.35) 0%, rgba(30, 77, 123, 0.25) 100%);
    border-bottom: 1px solid rgba(47, 111, 173, 0.35);
}

.equiv-table tbody td {
    padding: 14px 16px;
    color: var(--text-muted);
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.equiv-table tbody td:first-child {
    font-weight: 600;
    color: #cbd5e1;
    min-width: 9.5rem;
}

.equiv-table tbody tr:last-child td {
    border-bottom: none;
}

.equiv-table tbody tr:hover td {
    background: rgba(13, 148, 136, 0.06);
}

.equiv-table tbody td strong {
    color: var(--accent-light);
    font-weight: 600;
}

/* ——— Split layout ——— */
.container-split {
    display: flex;
    align-items: center;
    gap: clamp(32px, 5vw, 56px);
    width: var(--page-content-width);
    max-width: none;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.container-split.reverse {
    flex-direction: row-reverse;
}

.container-split .text-content {
    flex: 1;
    min-width: min(100%, 280px);
}

.container-split .image-content {
    flex: 1;
    min-height: 380px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

/* Diagrama modelo TECHDARIA — visor con zoom profesional */
.container-split .image-content.modelo-zoom {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: auto;
    align-self: flex-start;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(165deg, #121a24 0%, var(--surface) 100%);
    border-radius: 16px;
}

.modelo-zoom__chrome {
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(17, 24, 35, 0.92);
}

.modelo-zoom__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 14px 16px 10px;
}

.modelo-zoom__head-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.modelo-zoom__badge {
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.18);
    color: #5eead4;
    border: 1px solid rgba(45, 212, 191, 0.35);
}

.modelo-zoom__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 4px 16px 14px;
}

.modelo-zoom__cluster {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modelo-zoom__cluster--zoom {
    flex: 1 1 200px;
    min-width: min(100%, 220px);
}

.modelo-zoom__cluster--actions {
    flex: 0 0 auto;
}

.modelo-zoom__divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

.modelo-zoom__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.modelo-zoom__icon-btn:hover:not(:disabled) {
    background: rgba(13, 148, 136, 0.15);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2);
}

.modelo-zoom__icon-btn:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.modelo-zoom__icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.modelo-zoom__svg {
    flex-shrink: 0;
}

.modelo-zoom__svg--fs-exit {
    display: none;
}

.image-content.modelo-zoom:fullscreen .modelo-zoom__svg--fs-enter {
    display: none;
}

.image-content.modelo-zoom:fullscreen .modelo-zoom__svg--fs-exit {
    display: block;
}

.modelo-zoom__slider-field {
    flex: 1;
    min-width: 0;
    padding: 0 4px;
}

.modelo-zoom__slider {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(51, 65, 85, 0.9);
    cursor: pointer;
}

.modelo-zoom__slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2dd4bf, var(--primary));
    border: 2px solid #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: grab;
}

.modelo-zoom__slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.modelo-zoom__slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.9);
}

.modelo-zoom__slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2dd4bf, var(--primary));
    border: 2px solid #0f172a;
    cursor: grab;
}

.modelo-zoom__hint {
    font-size: 0.72rem;
    line-height: 1.45;
    color: #64748b;
    padding: 0 16px 12px;
    margin: 0;
}

.modelo-zoom__kbd {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-family: ui-monospace, monospace;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.6);
    color: #cbd5e1;
}

.modelo-zoom__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.modelo-zoom__viewport {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #0c1219;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    outline: none;
}

.modelo-zoom__viewport:focus-visible {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 2px var(--accent);
}

.modelo-zoom__img {
    display: block;
    width: 100%;
    height: auto;
    cursor: default;
    transition: width 0.18s ease;
    user-select: none;
}

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

.image-content.modelo-zoom:fullscreen {
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
    background: var(--deep-dark);
}

.image-content.modelo-zoom:fullscreen .modelo-zoom__viewport {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

@media (max-width: 640px) {
    .modelo-zoom__divider {
        display: none;
    }

    .modelo-zoom__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .modelo-zoom__cluster--actions {
        justify-content: flex-end;
    }

    .modelo-zoom__hint {
        font-size: 0.68rem;
    }
}

.pillar-list {
    list-style: none;
    margin-top: 8px;
}

.pillar-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.pillar-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.pillar-list--tight li {
    margin-bottom: 12px;
}

/* ——— Sección #modelo: foto en grises (25 %) + degradado tipo hero (sin rejilla) ——— */
#modelo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--deep-dark);
}

/* Fotografía solo en escala de grises */
#modelo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("images/vip-room.png") center / cover no-repeat;
    filter: grayscale(1);
    opacity: 0.25;
}

/* Mismo degradado que el hero, sin cuadrícula */
#modelo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        rgba(15, 20, 28, 0.94) 0%,
        rgba(20, 40, 58, 0.78) 42%,
        rgba(13, 90, 82, 0.35) 100%
    );
}

#modelo > * {
    position: relative;
    z-index: 1;
}

/* Tarjetas de componentes: fondo al 30 % para dejar ver el fondo de sección */
#modelo .feature-card {
    background: rgba(26, 34, 46, 0.3);
}

/* ——— Tarjetas modelo ——— */
.grid-framework {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    width: var(--page-content-width);
    max-width: none;
    margin: 0 auto;
    padding: 12px 0 0;
    box-sizing: border-box;
}

.feature-card {
    background: var(--surface);
    padding: 28px 26px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    border-color: rgba(13, 148, 136, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.feature-card .icon {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ——— Imagen ancho completo (overlay oscuro, matiz frío suave) ——— */
.full-width-image {
    width: 100%;
    max-width: 1200px;
    margin: 36px auto 0;
    height: min(360px, 50vw);
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: #12333c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: soft-light;
}

@media (prefers-reduced-motion: no-preference) {
    .full-width-image {
        background-attachment: fixed;
    }
}

.full-width-image .image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Menos azul: pizarra verde-azulado */
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.44) 100%),
        linear-gradient(
            165deg,
            rgba(6, 40, 48, 0.62) 0%,
            rgba(10, 52, 60, 0.55) 45%,
            rgba(4, 32, 40, 0.58) 100%
        );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-shadow: inset 0 0 120px rgba(6, 28, 32, 0.4);
}

.overlay-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-main);
    font-weight: 500;
    text-align: center;
    line-height: 1.55;
    max-width: 52rem;
}

.full-width-image .image-overlay__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 52rem;
}

.full-width-image .overlay-text {
    color: rgba(248, 250, 252, 0.96);
    margin: 0;
}

.full-width-image .btn-campus-virtual {
    --cv-btn-glow: rgba(45, 212, 191, 0.55);
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    min-width: min(100%, 320px);
    border-radius: 14px;
    overflow: hidden;
    font-weight: 700;
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    letter-spacing: 0.02em;
    background: linear-gradient(
        135deg,
        #0f766e 0%,
        var(--accent) 22%,
        #1d6fa8 55%,
        var(--primary-deep) 100%
    );
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22),
        0 0 0 1px rgba(13, 148, 136, 0.35) inset,
        0 4px 16px rgba(15, 23, 42, 0.35),
        0 12px 36px rgba(47, 111, 173, 0.42),
        0 24px 56px rgba(13, 148, 136, 0.28);
    animation: btn-campus-virtual-glow 2.8s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .full-width-image .btn-campus-virtual {
        animation: none;
    }
}

@keyframes btn-campus-virtual-glow {
    from {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.22),
            0 0 0 1px rgba(13, 148, 136, 0.35) inset,
            0 4px 16px rgba(15, 23, 42, 0.35),
            0 12px 36px rgba(47, 111, 173, 0.42),
            0 20px 48px rgba(13, 148, 136, 0.22);
    }
    to {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.28),
            0 0 0 1px rgba(13, 148, 136, 0.45) inset,
            0 6px 20px rgba(15, 23, 42, 0.4),
            0 16px 44px rgba(47, 111, 173, 0.5),
            0 28px 72px var(--cv-btn-glow);
    }
}

.btn-campus-virtual__chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 6px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.28) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.88);
}

.btn-campus-virtual__dots {
    display: inline-flex;
    gap: 5px;
    flex-shrink: 0;
}

.btn-campus-virtual__dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-campus-virtual__dots span:nth-child(1) {
    background: #fb7185;
}
.btn-campus-virtual__dots span:nth-child(2) {
    background: #fbbf24;
}
.btn-campus-virtual__dots span:nth-child(3) {
    background: #34d399;
}

.btn-campus-virtual__url {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(226, 232, 240, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.btn-campus-virtual__label {
    display: block;
    padding: 14px 22px 16px;
    text-shadow: 0 1px 12px rgba(15, 23, 42, 0.35);
}

.full-width-image .btn-campus-virtual:hover {
    transform: translateY(-3px) scale(1.02);
    filter: saturate(1.08);
}

.full-width-image .btn-campus-virtual:focus-visible {
    outline: 3px solid rgba(45, 212, 191, 0.85);
    outline-offset: 4px;
}

.full-width-image .btn-campus-virtual:active {
    transform: translateY(-1px) scale(1.01);
}

/* ——— Aviso validez doctoral / marco La Haya ——— */
.disclaimer-section {
    scroll-margin-top: calc(var(--site-header-offset) + 8px);
    background: linear-gradient(180deg, rgba(10, 15, 22, 0.95) 0%, var(--deep-dark) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.disclaimer-inner {
    width: var(--page-content-width);
    margin: 0 auto;
}

.disclaimer-title {
    text-align: center;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    line-height: 1.3;
    margin-bottom: 14px;
}

.disclaimer-lead {
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #7dd3c0;
    margin-bottom: 28px;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(22px, 4vw, 36px);
    border-left: 3px solid var(--accent);
}

.disclaimer-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.35rem 0 0.5rem;
    letter-spacing: -0.01em;
}

.disclaimer-box > .disclaimer-subtitle:first-of-type {
    margin-top: 0;
}

.disclaimer-box p {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.disclaimer-box p strong {
    color: #cbd5e1;
    font-weight: 600;
}

.disclaimer-list {
    margin: 0.35rem 0 1rem 1.2rem;
    padding: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.disclaimer-list li {
    margin-bottom: 0.5rem;
}

.disclaimer-list li::marker {
    color: var(--accent-light);
}

/* Página independiente: espacio bajo cabecera fija (sin doble relleno con la primera sección) */
.page-standalone-main {
    padding-top: calc(4px + var(--site-header-offset));
}

.page-standalone-main > .section-padding:first-child {
    padding-top: clamp(16px, 3vw, 32px);
}

.disclaimer-section--page {
    scroll-margin-top: 0;
    border-top: none;
}

/* ——— Migas de pan / navegación contextual (páginas independientes) ——— */
.page-nav {
    margin: 0 0 clamp(1.1rem, 3vw, 1.65rem);
}

.page-nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 11px 16px 11px 14px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(34, 44, 59, 0.65) 0%,
        rgba(26, 34, 46, 0.88) 50%,
        rgba(20, 28, 38, 0.92) 100%
    );
    border: 1px solid rgba(157, 176, 204, 0.16);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 8px 28px rgba(0, 0, 0, 0.22);
}

.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.page-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.page-breadcrumb__item + .page-breadcrumb__item::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 6px;
    flex-shrink: 0;
    opacity: 0.42;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239db0c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.page-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7eb8e8;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    padding: 2px 4px;
    margin: -2px -4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.page-breadcrumb__link:hover {
    color: var(--accent-light);
    background: rgba(13, 148, 136, 0.1);
}

.page-breadcrumb__link:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.page-breadcrumb__icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.page-breadcrumb__current {
    color: #e8eef5;
    font-weight: 700;
    padding: 2px 0;
    line-height: 1.35;
    border-bottom: 2px solid rgba(45, 212, 191, 0.45);
}

@media (max-width: 480px) {
    .page-nav__inner {
        padding: 10px 12px;
    }

    .page-breadcrumb {
        font-size: 0.78rem;
    }
}

.main-nav .nav-links__track > a.nav-links__current {
    color: var(--primary-deep);
    font-weight: 700;
    background: linear-gradient(180deg, rgba(47, 111, 173, 0.12) 0%, rgba(255, 255, 255, 0.65) 100%);
    box-shadow: inset 0 0 0 1px rgba(47, 111, 173, 0.14);
}

.main-nav .nav-links__track > a.nav-links__current::after {
    transform: scaleX(1);
}

.main-nav .nav-links__track > a.nav-links__current:hover {
    color: var(--primary-deep);
    background: linear-gradient(180deg, rgba(47, 111, 173, 0.14) 0%, rgba(255, 255, 255, 0.75) 100%);
}

.footer-brand-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-brand-link:hover {
    color: #7dd3c0;
}

.footer-brand-link:has(.footer-brand__logo):hover {
    color: inherit;
}

.footer-brand__logo {
    display: block;
    height: 76px;
    width: auto;
    max-width: min(380px, 100%);
    object-fit: contain;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.footer-brand-link:hover .footer-brand__logo {
    filter: brightness(1.12);
}

/* ——— CTA ——— */
.section-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 72px) 8%;
    background: linear-gradient(
        165deg,
        var(--accent-soft) 0%,
        var(--accent-warm-soft) 35%,
        var(--surface) 55%,
        var(--deep-dark) 100%
    );
    border-top: 1px solid var(--border);
}

.section-cta__backdrop {
    container-type: inline-size;
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 22px);
    padding: 0 5%;
    pointer-events: none;
}

.section-cta__watermark {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(4rem, 26vw, 13.5rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.82;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.06);
    text-shadow: 0 0 80px rgba(45, 212, 191, 0.12);
    user-select: none;
}

.section-cta__watermark-expansion {
    position: absolute;
    left: 50%;
    bottom: clamp(0.15rem, 1vw, 0.6rem);
    transform: translateX(-50%);
    margin: 0;
    padding: 0 clamp(12px, 4vw, 28px);
    box-sizing: border-box;
    width: max-content;
    max-width: none;
    white-space: nowrap;
    font-size: clamp(0.62rem, 1.25vw, 1rem);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    letter-spacing: 0.02em;
    color: rgba(203, 213, 225, 0.3);
    user-select: none;
}

@supports (font-size: 1cqi) {
    .section-cta__watermark-expansion {
        font-size: min(1.28rem, max(0.75rem, calc(100cqi / 50)));
    }
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-text {
    color: var(--text-muted);
    margin-bottom: 22px;
    font-size: 1rem;
}

.section-cta .cta-text a {
    color: #7dd3c0;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    transition: color 0.2s ease;
}

.section-cta .cta-text a:hover {
    color: #ccfbf1;
}

.section-cta .cta-text a:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ——— Footer ——— */
.pro-footer {
    padding: 48px 0 28px;
    border-top: 1px solid var(--border);
    background: #000000;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 22px;
    width: 80%;
    max-width: none;
    margin: 0 auto 28px;
    align-items: start;
}

.footer-brand {
    margin-bottom: 10px;
    line-height: 0;
}

.footer-heading {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #7ecfff;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.52;
}

.footer-note--inst {
    margin-top: 10px;
    font-size: 0.7rem;
    line-height: 1.48;
    color: rgba(157, 176, 204, 0.88);
}

.pro-footer .footer-text-plain {
    font-weight: 400;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-legal > .footer-heading {
    margin-bottom: 4px;
}

.footer-list {
    list-style: disc;
    margin: 0;
    padding-left: 1.2em;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-list li {
    padding-left: 0.15em;
}

.footer-list li::marker {
    color: rgba(125, 211, 192, 0.5);
    font-size: 0.65em;
}

.footer-legal .footer-list a {
    position: relative;
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    padding-bottom: 3px;
}

.footer-legal .footer-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--primary) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-legal .footer-list a:hover {
    color: var(--accent-light);
}

.footer-legal .footer-list a:hover::after,
.footer-legal .footer-list a:focus-visible::after {
    transform: scaleX(1);
}

.footer-legal .footer-list a:focus-visible {
    outline: 2px solid rgba(125, 211, 192, 0.4);
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-legal .footer-list a[aria-current="page"] {
    color: var(--accent-light);
    font-weight: 600;
}

.footer-copy {
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
    width: 80%;
    max-width: none;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-copy__author {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(100, 116, 139, 0.45);
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-copy__author:hover {
    color: var(--accent-light);
    text-decoration-color: rgba(45, 212, 191, 0.55);
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
    .container-split,
    .container-split.reverse {
        flex-direction: column;
    }

    .container-split .image-content {
        min-height: 260px;
        width: 100%;
    }

    .nav-shell__cluster {
        width: 100%;
        justify-content: center;
    }

    .nav-mobile-toggle {
        display: inline-flex;
    }

    .site-header-fixed:not(.nav-mobile--expanded) .nav-links {
        display: none !important;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .nav-links__track {
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
    }

    .glass-container {
        justify-content: center;
    }

    .brand-link {
        width: 100%;
        justify-content: center;
    }

    .main-nav .btn-portal {
        margin-left: 0;
    }

    .main-nav .btn-portal::before {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --site-nav-band: clamp(250px, 56vh, 420px);
    }

    .brand-logo {
        height: 72px;
    }
}

/* ——— Volver arriba (encima del gadget WhatsApp) ——— */
.scroll-up {
    position: fixed;
    right: 27px;
    bottom: 150px;
    z-index: 1110;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary-deep);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(30, 77, 123, 0.45);
    transition: opacity 0.25s ease, transform 0.2s ease, visibility 0.25s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-up.scroll-up--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-up:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

.scroll-up:focus-visible {
    outline: 3px solid var(--accent-light);
    outline-offset: 3px;
}

/* ——— Gadget WhatsApp / asistente (paleta TECHDARIA) ——— */
.wa-gadget {
    --wa-panel-bg: #ffffff;
    --wa-panel-text: #1e293b;
    --wa-panel-muted: #64748b;
    --wa-chip-bg: rgba(47, 111, 173, 0.1);
    --wa-chip-border: rgba(47, 111, 173, 0.35);
    font-family: "Inter", system-ui, sans-serif;
}

.wa-gadget__launcher {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1101;
    width: 58px;
    padding: 10px 8px 12px;
    border: none;
    border-radius: 16px;
    background: var(--primary-deep);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(30, 77, 123, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-gadget__launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(30, 77, 123, 0.55);
}

.wa-gadget__launcher:focus-visible {
    outline: 3px solid var(--accent-light);
    outline-offset: 3px;
}

.wa-gadget__launcher-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wa-gadget__launcher-actions {
    display: flex;
    gap: 5px;
}

.wa-gadget__launcher-mini {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
}

.wa-gadget__launcher-mini--accent {
    background: rgba(255, 255, 255, 0.32);
}

.wa-gadget__launcher-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    opacity: 0.92;
    color: #b8e8e0;
}

.wa-gadget[data-open="true"] .wa-gadget__launcher {
    opacity: 0.92;
}

.wa-gadget__panel {
    position: fixed;
    right: 22px;
    bottom: 118px;
    z-index: 1100;
    width: min(400px, calc(100vw - 36px));
    max-height: min(580px, calc(100vh - 150px));
    background: var(--wa-panel-bg);
    color: var(--wa-panel-text);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(30, 77, 123, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wa-gadget__panel[hidden] {
    display: none;
}

.wa-gadget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--primary-deep);
    color: #fff;
}

.wa-gadget__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding-right: 8px;
}

.wa-gadget__close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.wa-gadget__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.wa-gadget__extension {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #e8eef4;
    background: #fafbfc;
}

.wa-gadget__extension-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wa-panel-muted);
}

.wa-gadget__extension-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wa-gadget__ext-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--wa-chip-border);
    background: #fff;
    color: var(--primary-deep);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.wa-gadget__ext-btn:hover {
    background: var(--wa-chip-bg);
}

.wa-gadget__ext-btn.is-active {
    background: rgba(13, 148, 136, 0.12);
    border-color: var(--accent);
    color: var(--primary-deep);
}

.wa-gadget__messages {
    flex: 1 1 auto;
    min-height: 140px;
    max-height: 220px;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid #e8eef4;
}

.wa-gadget__msg {
    display: flex;
    width: 100%;
}

.wa-gadget__msg--bot {
    justify-content: flex-start;
}

.wa-gadget__msg--user {
    justify-content: flex-end;
}

.wa-gadget__bubble {
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.wa-gadget__msg--bot .wa-gadget__bubble {
    background: #f1f5f9;
    color: var(--wa-panel-text);
    border: 1px solid #e2e8f0;
}

.wa-gadget__msg--user .wa-gadget__bubble {
    background: var(--accent-soft);
    color: var(--primary-deep);
    border: 1px solid rgba(13, 148, 136, 0.25);
}

.wa-gadget__bubble strong {
    color: var(--primary-deep);
    font-weight: 700;
}

.wa-gadget__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #e8eef4;
}

.wa-gadget__chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--wa-chip-border);
    background: var(--wa-chip-bg);
    color: var(--primary-deep);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
}

.wa-gadget__chip:hover {
    background: rgba(47, 111, 173, 0.16);
    border-color: var(--primary);
}

.wa-gadget__form {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.wa-gadget__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.wa-gadget__input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--wa-panel-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wa-gadget__input::placeholder {
    color: #94a3b8;
}

.wa-gadget__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.15);
}

.wa-gadget__form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.wa-gadget__btn-bot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary-deep);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.wa-gadget__btn-bot:hover {
    background: var(--wa-chip-bg);
}

.wa-gadget__btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    background: var(--accent-warm);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
    transition: filter 0.2s, transform 0.2s;
}

.wa-gadget__btn-wa:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .scroll-up {
        right: 19px;
        bottom: 142px;
    }

    .wa-gadget__launcher {
        right: 14px;
        bottom: 14px;
    }

    .wa-gadget__panel {
        right: 14px;
        left: 14px;
        width: auto;
        bottom: 108px;
        max-height: min(70vh, 520px);
    }

    .wa-gadget__form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wa-gadget__btn-bot,
    .wa-gadget__btn-wa {
        width: 100%;
        justify-content: center;
    }
}

/* Enlace a página Etapas bajo componentes del modelo (inicio) */
.modelo-etapas-cta {
    max-width: 42rem;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.modelo-etapas-cta a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.35);
}

.modelo-etapas-cta a:hover {
    color: #99f6e4;
    border-bottom-color: rgba(153, 246, 228, 0.55);
}

.modelo-etapas-cta--tight {
    margin-top: 1.05rem;
    font-size: 0.95rem;
    max-width: 44rem;
}

/* Página Etapas */
.etapas-page__intro {
    margin-bottom: 1.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 48rem;
}

.etapas-page__flow-hint {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.etapas-page__flow-hint a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.35);
}

.etapas-page__flow-hint a:hover,
.etapas-page__flow-hint a:focus-visible {
    color: #99f6e4;
    border-bottom-color: rgba(153, 246, 228, 0.55);
}

.etapas-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 720px;
    margin: 0 auto 2.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--serif);
}

.etapas-overview-grid__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    text-align: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.etapas-overview-grid__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    color: var(--accent-light);
    line-height: 0;
}

.etapas-overview-grid__icon svg {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.etapas-overview-grid__cell:nth-child(4),
.etapas-overview-grid__cell:nth-child(6) {
    background: rgba(255, 255, 255, 0.06);
}

.etapas-overview-grid__num {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.etapas-overview-grid__label {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.etapa-block {
    margin-bottom: 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.etapa-block:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.etapa-block__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--accent-light);
}

.etapa-block__lead {
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.55;
}

.etapa-block__list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-main);
    line-height: 1.6;
}

.etapa-block__list li {
    margin-bottom: 0.4rem;
}

.recurso-ia-item {
    margin-bottom: 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.recurso-ia-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recurso-ia-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--accent-light);
}

.recurso-ia-item__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.recurso-ia-item__valor {
    margin: 0.75rem 0 0;
    line-height: 1.6;
    color: var(--text-main);
}

.recurso-ia-item__link {
    margin: 0.6rem 0 0;
}

.recurso-ia-item__link a {
    color: var(--accent-light);
    font-weight: 500;
}

.recurso-ia-page__intro {
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.recurso-ia-page__section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2.25rem 0 0.75rem;
    color: var(--text-main);
}

.etapas-page__pdf-hint {
    margin-top: 2rem;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.etapas-page__pdf-hint a {
    color: var(--accent-light);
    font-weight: 600;
}

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

/* ——— Página de contacto ——— */
.main-nav a.btn-portal {
    text-decoration: none;
    color: #fff;
}

.main-nav a.btn-portal:hover,
.main-nav a.btn-portal:focus-visible,
.main-nav a.btn-portal:active {
    color: #99f6e4;
}

.main-nav .btn-portal[aria-current="page"] {
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.35),
        0 2px 4px rgba(15, 23, 42, 0.08),
        0 8px 22px rgba(30, 77, 123, 0.45);
}

.contact-page {
    position: relative;
    overflow: hidden;
}

.contact-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 15% -10%, rgba(47, 111, 173, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(13, 148, 136, 0.12), transparent 50%);
    pointer-events: none;
}

.contact-page__inner {
    position: relative;
    z-index: 1;
    width: var(--page-content-width);
    max-width: none;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.contact-page__intro {
    margin-bottom: clamp(16px, 3vw, 28px);
}

.contact-page__intro .section-title {
    margin-bottom: 0.75rem;
}

.contact-page__lead {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 52ch;
}

.contact-page .page-nav {
    margin-bottom: clamp(0.75rem, 2.2vw, 1.15rem);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: clamp(16px, 3.5vw, 28px);
    align-items: start;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-aside__card {
    padding: clamp(14px, 2.5vw, 20px);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--surface) 0%, rgba(26, 34, 46, 0.92) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.contact-aside__card h2 {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin: 0 0 0.45rem;
}

.contact-aside__card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.contact-aside__links {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-aside__links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.contact-aside__links a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.contact-aside__contact-list {
    margin-top: 0.35rem;
}

.contact-aside__contact-list a {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-aside__contact-icon {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 0.12em;
    color: inherit;
    opacity: 0.88;
}

.contact-aside__contact-icon svg {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
}

.contact-aside__meta {
    font-size: 0.8em;
    font-weight: 500;
    color: rgba(157, 176, 204, 0.75);
}

.contact-card {
    padding: clamp(16px, 3vw, 24px);
    border-radius: 16px;
    background: linear-gradient(160deg, var(--surface-elevated) 0%, var(--surface) 45%, rgba(15, 20, 25, 0.96) 100%);
    border: 1px solid var(--border);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 24px 48px rgba(0, 0, 0, 0.35);
}

.contact-card__title {
    font-family: var(--serif);
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.3rem;
}

.contact-card__subtitle {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 62ch;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 2.2vw, 1.1rem);
}

.contact-form__fieldset {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.contact-form__fieldset + .contact-form__fieldset {
    padding-top: 0.35rem;
    margin-top: 0.15rem;
    border-top: 1px solid rgba(157, 176, 204, 0.1);
}

.contact-form__fieldset--compact {
    gap: 0.55rem;
    padding-top: 0.35rem;
    margin-top: 0.1rem;
    border-top: 1px solid rgba(157, 176, 204, 0.1);
}

.contact-form__legend {
    float: left;
    width: 100%;
    padding: 0 0 0.35rem;
    margin: 0 0 0.1rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent-light);
    border-bottom: 1px solid rgba(157, 176, 204, 0.2);
}

.contact-form__fieldset::after {
    content: "";
    display: table;
    clear: both;
}

.contact-form__field--radios {
    gap: 0.35rem;
}

.contact-form__radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 0;
}

.contact-form__radio {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid rgba(157, 176, 204, 0.22);
    background: rgba(15, 20, 28, 0.45);
    transition: border-color 0.2s, background 0.2s;
}

.contact-form__radio:hover {
    border-color: rgba(45, 212, 191, 0.35);
    background: rgba(13, 148, 136, 0.08);
}

.contact-form__radio:focus-within {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.contact-form__radio input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.contact-form__checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.contact-form__check--boxed {
    margin: 0;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid rgba(157, 176, 204, 0.18);
    background: rgba(15, 20, 28, 0.4);
    transition: border-color 0.2s, background 0.2s;
}

.contact-form__check--boxed:hover {
    border-color: rgba(45, 212, 191, 0.3);
    background: rgba(13, 148, 136, 0.06);
}

.contact-form__check--boxed input {
    margin-top: 2px;
}

@media (max-width: 540px) {
    .contact-form__radio-row {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form__radio {
        justify-content: flex-start;
    }
}

.contact-form__row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
}

@media (max-width: 540px) {
    .contact-form__row--2 {
        grid-template-columns: 1fr;
    }
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.contact-form__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #cbd5e1;
}

.contact-form__label .req {
    color: var(--accent-warm);
    font-weight: 700;
}

.contact-form__optional {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    width: 100%;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-main);
    background: rgba(15, 20, 28, 0.75);
    border: 1px solid rgba(157, 176, 204, 0.22);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: rgba(157, 176, 204, 0.55);
}

.contact-form__input:hover,
.contact-form__select:hover,
.contact-form__textarea:hover {
    border-color: rgba(45, 212, 191, 0.28);
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
    background: rgba(15, 20, 28, 0.92);
}

.contact-form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239db0c4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 34px;
}

.contact-form__textarea {
    min-height: 118px;
    resize: vertical;
    line-height: 1.52;
}

.contact-form__check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.contact-form__check input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

.contact-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.15rem;
}

.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    box-shadow: 0 4px 16px rgba(47, 111, 173, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-contact-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 8px 22px rgba(30, 77, 123, 0.45);
}

.btn-contact-submit:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px var(--deep-dark),
        0 0 0 5px rgba(45, 212, 191, 0.45),
        0 4px 16px rgba(47, 111, 173, 0.4);
}

.btn-contact-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2ffef;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.45);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-contact-wa:hover {
    background: rgba(37, 211, 102, 0.28);
    border-color: rgba(37, 211, 102, 0.65);
    transform: translateY(-1px);
}

.btn-contact-wa:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.35);
}

.contact-form__error {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #fecaca;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.contact-form__note {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 58ch;
}

.contact-form__code {
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(15, 20, 28, 0.9);
    border: 1px solid var(--border);
    color: var(--accent-light);
}

/* ——— Citas e identificación APA (7.ª ed., español) ——— */
.apa-intext {
    font-size: 0.9em;
    color: #64748b;
    font-style: normal;
    font-weight: 500;
    white-space: normal;
}

.section-investigacion .apa-intext,
.prose .apa-intext,
.thesis-excerpt .apa-intext {
    color: #7dd3c0;
}

#lms.dark-bg .apa-intext,
.dark-bg .apa-intext {
    color: #94a3b8;
}

/* Cita in-texto sobre franja con imagen (fondo verde; contraste con el gris por defecto) */
.full-width-image .image-overlay .apa-intext {
    color: #6ee7b7;
    font-weight: 600;
}

.section-refs-apa {
    scroll-margin-top: calc(var(--site-header-offset) + 8px);
    padding: 2rem 0 2.25rem;
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.35) 0%, rgba(12, 18, 28, 0.25) 100%);
    border-top: 1px solid var(--border, rgba(100, 116, 139, 0.2));
    border-bottom: 1px solid var(--border, rgba(100, 116, 139, 0.15));
}

.section-refs-apa__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    color: var(--text-main, #e8ecf4);
}

.section-refs-apa__note {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 1rem;
    max-width: 62ch;
}

.section-refs-apa__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 56rem;
}

.section-refs-apa__item {
    position: relative;
    padding-left: 1.5rem;
    margin: 0 0 0.6rem;
    text-indent: -1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main, #e2e8f0);
}

.section-refs-apa__item em {
    font-style: italic;
}

.section-refs-apa__anon {
    color: var(--text-muted, #89a0b4);
    font-size: 0.92em;
}
