/* ================================================================
   LANDING — Comisión Film MX
   Video hero + barra de navegación + modal de login
   ================================================================ */

/* ─── Variables ──────────────────────────────────────────────── */
:root {
    --gold:        #d4a04a;
    --gold-dim:    rgba(212, 160, 74, 0.18);
    --text:        #f5f0e8;
    --text-muted:  rgba(245, 240, 232, 0.50);
    --text-dim:    rgba(245, 240, 232, 0.70);
    --bg:          #040b20;
    --surface:     rgba(4, 9, 28, 0.88);
    --border:      rgba(212, 160, 74, 0.13);
    --font-serif:  'Cormorant Garamond', Georgia, serif;
    --font-sans:   'DM Sans', system-ui, sans-serif;
    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    background-image: url('../img/fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    color: var(--text);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* ================================================================
   HERO — Video pantalla completa
   ================================================================ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 360px;
    overflow: hidden;
    background: #040b20;
}

@supports (height: 100svh) {
    .hero { height: 100svh; }
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Gradiente: sutil arriba (logos) + denso abajo (navbar) */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(4, 11, 32, 0.42)  0%,
        rgba(4, 11, 32, 0.12)  22%,
        transparent             38%,
        rgba(4, 11, 32, 0.55)  65%,
        rgba(4, 11, 32, 0.85)  85%,
        #040b20                100%
    );
    pointer-events: none;
}

/* ── Logos superpuestos ─────────────────────────────────────── */
.hero__logo {
    position: absolute;
    top: clamp(20px, 3.5vw, 48px);
    left: clamp(20px, 4vw, 60px);
    height: clamp(72px, 10vw, 130px);
    width: auto;
    z-index: 10;
    opacity: 0.93;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.50));
}

.hero__marca {
    position: absolute;
    top: clamp(20px, 3.5vw, 48px);
    right: clamp(20px, 4vw, 60px);
    height: clamp(52px, 7.5vw, 96px);
    width: auto;
    z-index: 10;
    opacity: 0.88;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

/* ================================================================
   NAVBAR — 5 botones en fila
   ================================================================ */

.navbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    border-top: 1px solid rgba(212, 160, 74, 0.20);
    padding: clamp(20px, 2.8vw, 32px) clamp(16px, 5vw, 64px) clamp(28px, 3.5vw, 48px);
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
}

.navbar__btn {
    flex: 1;
    padding: 14px 12px;
    background: transparent;
    border: 1px solid rgba(212, 160, 74, 0.28);
    border-radius: 10px;
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: clamp(0.70rem, 1.1vw, 0.82rem);
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    min-height: 50px;
    transition: color 0.22s ease,
                border-color 0.22s ease,
                background 0.22s ease,
                box-shadow 0.22s ease,
                transform 0.15s ease;
}

.navbar__btn:hover {
    color: var(--text);
    border-color: rgba(212, 160, 74, 0.55);
    background: rgba(212, 160, 74, 0.06);
    transform: translateY(-1px);
}

.navbar__btn:active {
    transform: translateY(0);
}

.navbar__btn--primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #07070a;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.navbar__btn--primary:hover {
    filter: brightness(1.1);
    background: var(--gold);
    border-color: var(--gold);
    color: #07070a;
    box-shadow: 0 4px 24px rgba(212, 160, 74, 0.35);
}

/* ================================================================
   MODAL — Overlay de login
   ================================================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal[hidden] { display: none; }

/* Backdrop con blur */
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 22, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

/* Tarjeta del modal */
.modal__card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    backdrop-filter: blur(36px) saturate(170%);
    -webkit-backdrop-filter: blur(36px) saturate(170%);
    border-radius: 24px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
    max-height: 92vh;
    max-height: 92svh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
    box-shadow:
        0 0 0 0.5px rgba(255,255,255,0.03),
        0 32px 80px rgba(0,0,0,0.78),
        0 12px 32px rgba(0,0,0,0.52),
        inset 0 1px 0 rgba(212,160,74,0.09);
    /* Estado cerrado */
    transform: scale(0.93) translateY(18px);
    opacity: 0;
    transition: transform 0.38s var(--ease-spring),
                opacity   0.28s ease;
    will-change: transform, opacity;
}

.modal__card::-webkit-scrollbar       { width: 4px; }
.modal__card::-webkit-scrollbar-track { background: transparent; }
.modal__card::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }

/* Estado abierto */
.modal.is-open .modal__card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Franja dorada superior */
.modal__stripe {
    height: 2px;
    flex-shrink: 0;
    background: linear-gradient(
        90deg,
        transparent  0%,
        var(--gold)  30%,
        rgba(212, 160, 74, 0.55) 70%,
        transparent 100%
    );
}

/* Botón cerrar (X) */
.modal__close {
    position: sticky;
    float: right;
    top: 14px;
    right: 14px;
    margin-top: -42px;
    margin-right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(245,240,232,0.12);
    background: rgba(245,240,232,0.06);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
}

.modal__close:hover {
    background: rgba(245,240,232,0.14);
    color: var(--text);
    border-color: rgba(245,240,232,0.24);
}

.modal__body {
    padding: 1rem 2rem 2.25rem;
}

/* ─── Marca ──────────────────────────────────────────────────── */
.brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.modal__logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* ─── Encabezados del modal ──────────────────────────────────── */
.modal__title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

.modal__subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    animation: alertIn 0.3s var(--ease-out);
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert--error {
    background: rgba(200, 40, 40, 0.12);
    border: 1px solid rgba(200, 40, 40, 0.25);
    color: #f5a5a5;
}

.alert--success {
    background: rgba(40, 180, 80, 0.12);
    border: 1px solid rgba(40, 180, 80, 0.25);
    color: #a0f0b8;
}

/* ─── Campos del formulario ──────────────────────────────────── */
.form-group {
    margin-bottom: 1.05rem;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.42rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(245, 240, 232, 0.04);
    border: 1px solid rgba(245, 240, 232, 0.09);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    min-height: 46px;
    outline: none;
    -webkit-appearance: none;
    transition: border-color 0.25s ease,
                background 0.25s ease,
                box-shadow 0.25s ease;
}

.form-input:focus {
    border-color: rgba(212, 160, 74, 0.55);
    background: rgba(212, 160, 74, 0.04);
    box-shadow: 0 0 0 3px rgba(212,160,74,0.09),
                0 1px 3px rgba(0,0,0,0.3);
}

.form-input::placeholder {
    color: rgba(245, 240, 232, 0.20);
}

/* ─── Botón primario ─────────────────────────────────────────── */
.btn-primary {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--gold);
    color: #07070a;
    border: none;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    margin-top: 0.6rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    transition: filter 0.2s ease,
                transform 0.15s ease,
                box-shadow 0.2s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
    transform: translateX(-100%);
    transition: transform 0.52s ease;
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,160,74,0.30);
}

.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.96); }

/* ─── Links ──────────────────────────────────────────────────── */
.auth-link {
    display: block;
    text-align: center;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.82rem;
    margin-top: 1.1rem;
    opacity: 0.8;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-link:hover { opacity: 1; color: var(--text); }

.forgot-link {
    display: block;
    text-align: right;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.73rem;
    margin-top: -0.3rem;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.forgot-link:hover { color: var(--gold); }

.modal__card--wide {
    max-width: 760px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.auth-tab-btn {
    border: 1px solid rgba(245, 240, 232, 0.10);
    background: rgba(245, 240, 232, 0.04);
    color: var(--text-muted);
    border-radius: 999px;
    min-height: 46px;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-tab-btn:hover,
.auth-tab-btn.is-active {
    color: #07070a;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(212, 160, 74, 0.24);
}

.auth-panel {
    display: none;
}

.auth-panel.is-active {
    display: block;
    animation: panelFade 0.24s var(--ease-out);
}

@keyframes panelFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-scroll {
    max-height: 50vh;
    max-height: 50svh;
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
}

.panel-scroll::-webkit-scrollbar {
    width: 4px;
}

.panel-scroll::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 999px;
}

.form-grid {
    display: grid;
    gap: 0.95rem;
}

.form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-section {
    margin: 1rem 0 0.85rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-input--file {
    padding: 0.7rem 0.9rem;
}

.form-input--file::file-selector-button {
    margin-right: 0.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(212, 160, 74, 0.14);
    color: var(--text);
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.form-hint {
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}


.consent-box {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(212, 160, 74, 0.18);
    border-radius: 16px;
    background: rgba(245, 240, 232, 0.03);
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 0.8rem;
}

.consent-check:last-of-type {
    margin-bottom: 0;
}

.consent-check input {
    margin-top: 0.2rem;
    accent-color: var(--gold);
    flex: 0 0 auto;
}

.consent-check a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.auth-link--button {
    width: 100%;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.empty-state {
    border: 1px dashed rgba(212, 160, 74, 0.24);
    border-radius: 16px;
    padding: 1.1rem 1rem;
    background: rgba(245, 240, 232, 0.02);
}

.empty-state__title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.empty-state__text {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Logos en pantallas pequeñas */
@media (max-width: 480px) {
    .hero__logo  { height: 54px; top: 14px; left: 14px; }
    .hero__marca { height: 38px; top: 14px; right: 14px; }
}

/* Pantallas medianas: permitir wrapping */
@media (max-width: 720px) {
    .navbar {
        flex-wrap: wrap;
        padding: 16px 14px 24px;
        gap: 10px;
    }

    .navbar__btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        font-size: 0.72rem;
        padding: 12px 8px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .navbar__btn--primary {
        flex: 1 1 100%;
        order: 10;
        font-size: 0.82rem;
        padding: 14px;
    }

    .modal__card--wide {
        max-width: 100%;
    }

    .form-grid--two {
        grid-template-columns: 1fr;
    }
}

/* Móviles pequeños: modal sin padding lateral */
@media (max-width: 420px) {
    .modal { padding: 0.5rem; }
    .modal__card { border-radius: 18px; max-height: 96vh; max-height: 96svh; }
    .modal__body { padding: 0.75rem 1.25rem 1.75rem; }
    .modal__title { font-size: 1.6rem; }
    .auth-tabs { grid-template-columns: 1fr; }
    .panel-scroll { max-height: 56vh; max-height: 56svh; }
}

/* ================================================================
   SITE HEADER — Convocatorias y otras páginas internas
   ================================================================ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(4, 11, 32, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 60px);
    z-index: 100;
    gap: 1.5rem;
}

.site-header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 1px 6px rgba(0,0,0,0.4));
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.site-header__link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-header__link:hover,
.site-header__link--active {
    color: var(--gold);
}

.site-header__marca {
    height: 34px;
    width: auto;
    opacity: 0.80;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

/* ================================================================
   CONVOCATORIAS — Contenido principal
   ================================================================ */

.conv-main {
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.conv-hero {
    padding: clamp(3rem, 6vw, 5rem) clamp(20px, 6vw, 80px) clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border);
}

.conv-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.conv-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.conv-subtitle {
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.65;
}

.conv-layout {
    flex: 1;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(20px, 6vw, 80px);
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.conv-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr);
    gap: 1.5rem;
    align-content: start;
}

.conv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 5rem 2rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    border: 1px dashed rgba(212, 160, 74, 0.20);
    border-radius: 16px;
}

.conv-empty svg {
    opacity: 0.35;
    color: var(--gold);
}

.conv-visual {
    position: sticky;
    top: 108px;
    align-self: start;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(212, 160, 74, 0.14);
    background: rgba(7, 13, 29, 0.28);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.20);
}

.conv-visual__image {
    display: block;
    width: 100%;
    max-height: min(72vh, 720px);
    object-fit: cover;
    object-position: center top;
}

.conv-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    border: 1px solid rgba(212, 160, 74, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(11, 20, 42, 0.96), rgba(7, 13, 29, 0.98));
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.conv-card__status {
    margin: 0;
    color: var(--gold);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.conv-card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    color: var(--text);
    line-height: 1.08;
}

.conv-card__description,
.conv-card__dates,
.conv-card__document-description {
    margin: 0;
    color: rgba(245, 240, 232, 0.78);
    line-height: 1.7;
}

.conv-card__dates {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.64);
}

.conv-card__document {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 160, 74, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.conv-card__document-label {
    margin: 0;
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.conv-card__document-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
}

.conv-card__document-actions,
.conv-card__footer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.conv-card__cta {
    text-decoration: none;
}

.conv-card__cta--disabled {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

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

    .conv-visual {
        position: static;
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .conv-card {
        padding: 1.5rem;
    }

    .conv-card__document-actions,
    .conv-card__footer {
        flex-direction: column;
    }

    .conv-card__document-actions .doc-btn,
    .conv-card__footer .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
/* ================================================================
   SITE FOOTER
   ================================================================ */

.site-footer {
    background: rgba(4, 11, 32, 0.97);
    border-top: 1px solid var(--border);
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(20px, 4vw, 60px);
}

.site-footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-footer__logo {
    height: 42px;
    width: auto;
    opacity: 0.75;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

.site-footer__copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    flex: 1;
    min-width: 200px;
    line-height: 1.6;
}

.site-footer__marca {
    height: 28px;
    width: auto;
    opacity: 0.65;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

@media (max-width: 600px) {
    .site-header__nav { gap: 1rem; }
    .site-header__marca { display: none; }
    .site-footer__content { justify-content: center; text-align: center; }
    .site-footer__logo, .site-footer__marca { height: 32px; }
}

/* ================================================================
   DOCUMENTACIÓN — Grid de tarjetas PDF
   ================================================================ */

.docs-grid {
    flex: 1;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(20px, 6vw, 80px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    align-content: start;
}

.doc-card {
    background: rgba(7, 21, 48, 0.85);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), rgba(212,160,74,0.4), transparent);
}

.doc-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 160, 74, 0.30);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.40);
}

.doc-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(212, 160, 74, 0.10);
    border: 1px solid rgba(212, 160, 74, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.doc-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-card__tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 160, 74, 0.10);
    border: 1px solid rgba(212, 160, 74, 0.20);
    border-radius: 4px;
    padding: 2px 8px;
    align-self: flex-start;
}

.doc-card__title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.doc-card__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.doc-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    cursor: pointer;
}

.doc-btn--primary {
    background: var(--gold);
    color: #040b20;
    border: 1px solid var(--gold);
}

.doc-btn--primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(212, 160, 74, 0.30);
    transform: translateY(-1px);
}

.doc-btn--secondary {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid rgba(245, 240, 232, 0.14);
}

.doc-btn--secondary:hover {
    border-color: rgba(212, 160, 74, 0.40);
    color: var(--gold);
}

@media (max-width: 480px) {
    .docs-grid { grid-template-columns: 1fr; }
    .doc-card__actions { flex-direction: column; }
    .doc-btn { justify-content: center; }
}

/* ================================================================
   CONTACTO
   ================================================================ */

.contact-section {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(20px, 6vw, 80px);
    align-items: start;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tarjetas de dato (dirección, teléfono, etc.) */
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(7, 21, 48, 0.85);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s ease;
}

.contact-card:hover {
    border-color: rgba(212, 160, 74, 0.28);
}

.contact-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212, 160, 74, 0.10);
    border: 1px solid rgba(212, 160, 74, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-card__label {
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.contact-card__value {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.contact-card__link {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dim);
    text-decoration: none;
    line-height: 1.7;
    transition: color 0.2s ease;
}

.contact-card__link:hover { color: var(--gold); }

.contact-card__link--sm { font-size: 0.80rem; }

/* Directorio de personas */
.contact-team-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(7, 21, 48, 0.85);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    transition: border-color 0.2s ease;
}

.contact-person:hover {
    border-color: rgba(212, 160, 74, 0.28);
}

.contact-person__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 160, 74, 0.12);
    border: 1px solid rgba(212, 160, 74, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.contact-person__name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.contact-person__role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* ================================================================
   AVISO DE PRIVACIDAD — Artículo de texto
   ================================================================ */

.privacy-body {
    max-width: 820px;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(20px, 6vw, 80px) clamp(3rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.privacy-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(212, 160, 74, 0.10);
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-heading {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.01em;
    margin-bottom: 0.85rem;
}

.privacy-text {
    font-size: 0.90rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.privacy-text:last-child { margin-bottom: 0; }

.privacy-text strong {
    color: var(--text);
    font-weight: 600;
}

.privacy-text--muted {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.privacy-list li {
    font-size: 0.88rem;
    color: var(--text-dim);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.privacy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
}

.privacy-link {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

.privacy-link:hover { opacity: 0.75; }

.privacy-body--wide {
    max-width: 1320px;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.privacy-body--wide .privacy-section--intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.privacy-section--viewer {
    border-bottom: none;
    padding-top: 1.5rem;
}

.privacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.privacy-viewer {
    width: 100%;
    min-height: 86vh;
    background: rgba(9, 13, 20, 0.92);
    border: 1px solid rgba(212, 160, 74, 0.16);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.privacy-viewer iframe {
    width: 100%;
    height: 86vh;
    border: 0;
    display: block;
    background: #fff;
}

@media (max-width: 720px) {
    .privacy-actions {
        flex-direction: column;
    }

    .privacy-actions .doc-btn {
        width: 100%;
        justify-content: center;
    }

    .privacy-body--wide {
        width: 100%;
    }

    .privacy-viewer,
    .privacy-viewer iframe {
        min-height: 70vh;
        height: 70vh;
    }
}