/* ══════════════════════════════════════════════════════════════════════════
   AURORA PATRIMONIAL — hoja de estilos del sitio
   Perfil: editorial patrimonial. Azul medianoche #1E2A4A, oro suave #C9A227,
   papel #F8F7F3. EB Garamond (display) + Source Sans 3 (texto).
   Radio 8 px, filetes finos, sombras cálidas discretas, hover = borde oro.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── fuentes locales (subset latino, variable) ─────────────────────────── */
@font-face {
    font-family: 'EB Garamond';
    src: url('/assets/fonts/eb-garamond-var.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('/assets/fonts/source-sans-3-var.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
    --bg: #F8F7F3;
    --surface: #FFFFFF;
    --surface-2: #EFEFEA;
    --border: #DFDDD3;

    --ink: #1E2A4A;            /* azul medianoche: títulos, banda hero, pie */
    --ink-soft: #2A3A61;       /* medianoche al hover */
    --ink-line: #39496F;       /* filetes sobre medianoche */
    --text: #414B60;
    --text-muted: #5C6474;

    --accent: #C9A227;         /* oro suave */
    --accent-hover: #B08D1E;
    --accent-ink: #8A6D14;     /* oro legible sobre claro (texto) */
    --accent-tint: #F4EBD3;

    --hero-lead: #C7CDDC;      /* texto secundario sobre medianoche */
    --hero-mute: #8E97AC;
    --paper: #F8F7F3;          /* texto claro sobre medianoche */
    --line-gold: rgba(201, 162, 39, 0.45);

    --radius: 8px;
    --radius-sm: 6px;

    --shadow-sm: 0 1px 2px rgba(30, 42, 74, 0.05), 0 2px 8px rgba(30, 42, 74, 0.05);
    --shadow-md: 0 1px 2px rgba(30, 42, 74, 0.06), 0 10px 28px rgba(30, 42, 74, 0.10);
    --shadow-lg: 0 2px 4px rgba(30, 42, 74, 0.07), 0 18px 44px rgba(30, 42, 74, 0.14);

    --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

    --dot-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23C9A227' fill-opacity='0.13'/%3E%3C/svg%3E");
}

/* ── base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, iframe, video, canvas { max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--ink);
    line-height: 1.18;
    margin: 0 0 0.55em;
    font-weight: 600;
    text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 4.2vw, 3.3rem); font-weight: 500; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.22rem; line-height: 1.3; margin-bottom: 0.4em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-color: var(--line-gold); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
strong { color: var(--ink); font-weight: 600; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 17px; height: 17px; }
.icon-xs { width: 15px; height: 15px; }

::selection { background: var(--accent-tint); color: var(--ink); }

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 400;
    background: var(--ink);
    color: var(--paper);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 40px);
}

.text-muted { color: var(--text-muted); }

/* ── secciones ──────────────────────────────────────────────────────────── */
.section { padding-block: clamp(54px, 7.5vw, 92px); position: relative; }

.section--tint {
    background:
        var(--dot-grid),
        radial-gradient(1100px 420px at 88% 0%, rgba(201, 162, 39, 0.07), transparent 65%),
        var(--surface-2);
    border-block: 1px solid var(--border);
}

.section--paper {
    background:
        var(--dot-grid),
        radial-gradient(900px 360px at -8% 100%, rgba(201, 162, 39, 0.05), transparent 60%),
        var(--bg);
}

.section__head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.section__head h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 16px;
}
.section__head .lead { font-size: 1.08rem; color: var(--text-muted); }

.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center h2::before { margin-inline: auto; }

.lead { font-size: 1.1rem; color: var(--text-muted); }

/* ── botones ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--ink-soft);
    color: var(--paper);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn--gold { background: var(--accent); color: var(--ink); }
.btn--gold:hover, .btn--gold:focus-visible { background: var(--accent-hover); color: var(--ink); transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); color: var(--accent-ink); }
.btn-header { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-lg { font-size: 16px; padding: 16px 32px; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--line-gold);
    padding-bottom: 2px;
}
.link-more:hover { border-bottom-color: var(--accent); }

/* ── encabezado del sitio ───────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(248, 247, 243, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.18s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 30px);
    min-height: 70px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { width: 200px; height: auto; display: block; }
.brand__fallback { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.site-nav__item { position: relative; }

.site-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav__trigger:hover { color: var(--accent-ink); background: var(--accent-tint); }
.site-nav__trigger .icon-xs { transition: transform 0.16s ease; color: var(--accent-ink); }
.site-nav__item.is-open .site-nav__trigger .icon-xs { transform: rotate(180deg); }

/* menú desplegable */
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 262px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 210;
}
.dropdown::before { /* caret */
    content: "";
    position: absolute;
    top: -6px;
    left: 22px;
    width: 11px;
    height: 11px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.dropdown--right { left: auto; right: 0; }
.dropdown--right::before { left: auto; right: 22px; }

.site-nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown__list { list-style: none; margin: 0; padding: 0; }
.dropdown__link {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.14s ease, color 0.14s ease;
}
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--accent-tint); color: var(--ink); }

/* botón hamburguesa */
.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px;
    cursor: pointer;
    color: var(--ink);
}
.nav-toggle .icon { display: block; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }

/* menú móvil */
.mobile-menu {
    border-top: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-md);
}
.mobile-menu__inner { padding-block: 14px 22px; }
.mobile-menu__group { border-bottom: 1px solid var(--border); }
.mobile-menu__group summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 2px;
    font-weight: 600;
    color: var(--ink);
    font-size: 15px;
}
.mobile-menu__group summary::-webkit-details-marker { display: none; }
.mobile-menu__group[open] summary .icon-xs { transform: rotate(180deg); }
.mobile-menu__group summary .icon-xs { transition: transform 0.16s ease; color: var(--accent-ink); }
.mobile-menu__group ul { list-style: none; margin: 0 0 10px; padding: 0 2px; }
.mobile-menu__group a {
    display: block;
    padding: 8px 10px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
}
.mobile-menu__group a:hover { background: var(--accent-tint); color: var(--ink); }
.mobile-menu .btn { margin-top: 16px; }

@media (max-width: 1080px) {
    .site-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .btn-header { display: none; }
}
@media (max-width: 560px) {
    .brand svg { width: 172px; }
}

/* ── ticker: banda medianoche alineada con la paleta ────────────────────── */
.bct-row {
    --bct-bg: #1E2A4A;
    --bct-text: #F8F7F3;
    --bct-muted: #C7CDDC;
    --bct-line: #2A3A61;
}

/* ── migas ──────────────────────────────────────────────────────────────── */
.breadcrumbs { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumbs__list a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs__list a:hover { color: var(--accent-ink); }
.breadcrumbs__list li + li::before { content: "/"; margin-right: 10px; color: var(--border); }

/* ── HERO medianoche ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(168deg, #1E2A4A 0%, #22305A 58%, #1E2A4A 100%);
    color: var(--paper);
    overflow: hidden;
}
.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.hero__art {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}
.hero__art img, .hero__art svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}
.hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px);
}

.hero__kicker {
    font-family: var(--font-serif);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 18px;
}
.hero__title { color: var(--paper); margin-bottom: 0.5em; }
.hero__title .u-gold {
    border-bottom: 3px solid var(--accent);
    padding-bottom: 1px;
}
.hero__lead {
    color: var(--hero-lead);
    font-size: 1.13rem;
    max-width: 54ch;
}
.hero__market {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--hero-lead);
    font-size: 15px;
    margin: 20px 0 6px;
}
.hero__market .icon-sm { color: var(--accent); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 14px 0 18px; padding: 0; list-style: none; }
.trust-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--paper);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.trust-link .icon-xs { color: var(--accent); transform: rotate(-90deg); }
.trust-link:hover { border-bottom-color: var(--accent); color: var(--paper); }
.hero__risk { color: var(--hero-mute); font-size: 12.5px; margin: 0; }

@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__form { max-width: 480px; }
}
@media (max-width: 767px) {
    .hero__canvas { display: none; } /* reemplazo estático: queda el SVG de la Rambla */
}

/* ── formulario (tarjeta blanca alta con filete de oro) ─────────────────── */
.form-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: clamp(22px, 3vw, 30px);
}
.form-block__headline {
    font-family: var(--font-serif);
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 6px;
}
.form-block__intro { font-size: 14.5px; color: var(--text-muted); margin-bottom: 14px; }
.form-legal { font-size: 12.5px; color: var(--text-muted); margin: 12px 0 0; }
.form-legal a { color: var(--accent-ink); }
.form-manager {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 8px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.form-block .beacon-form { font-family: var(--font-sans); }
.form-block .bf-legend { color: var(--text-muted); }
.form-block .bf-input { border-radius: var(--radius-sm); }

/* ── exchanges: chips tipográficos ──────────────────────────────────────── */
.exchanges { border-bottom: 1px solid var(--border); background: var(--bg); }
.exchanges .container { padding-block: 22px; }
.exchanges__label {
    font-size: 12.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 14px;
}
.exchanges__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}
.chip {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 22px;
    transition: border-color 0.15s ease;
}
.chip:hover { border-color: var(--accent); }

/* ── calculadora: marco de filetes de oro ───────────────────────────────── */
.calc-frame {
    border-block: 1px solid var(--line-gold);
    padding-block: clamp(24px, 3.4vw, 38px);
    padding-inline: clamp(20px, 4vw, 48px);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.calc-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin: 18px 0 0;
}

/* ── pasos numerados ────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    transition: border-color 0.16s ease;
}
.step:hover { border-color: var(--accent); }
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-tint);
    border: 1px solid var(--line-gold);
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}
.step p { font-size: 14.8px; color: var(--text-muted); margin: 0; }

/* ── tablas ─────────────────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 14.8px; }
thead th {
    background: var(--surface-2);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(239, 239, 234, 0.55); }
td.yes, td.no { font-weight: 600; white-space: nowrap; }
td.yes { color: var(--accent-ink); }
td.no { color: var(--text-muted); }
td.yes::before { content: "\2713\00a0"; }
td.no::before { content: "\2717\00a0"; opacity: 0.6; }

/* ── tarjetas e insignias de ícono ──────────────────────────────────────── */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--accent-tint);
    border: 1px solid var(--line-gold);
    color: var(--accent-ink);
    margin-bottom: 14px;
}
.icon-badge .icon { width: 23px; height: 23px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    color: inherit;
    text-decoration: none;
    display: block;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.card:hover, .card:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
a.card:hover h3 { color: var(--accent-ink); }
.card p { color: var(--text-muted); font-size: 14.8px; margin: 0; }
.card--rule { border-left: 2px solid var(--accent); }
.card--rule:hover { transform: none; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── reseñas ────────────────────────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review {
    display: flex;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
}
.review__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex: none;
}
.avatar-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-tint);
    border: 1px solid var(--line-gold);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.avatar-badge .icon { width: 26px; height: 26px; }
.review__name { font-weight: 600; color: var(--ink); margin: 0 0 2px; font-size: 15.5px; }
.review__meta { font-size: 13px; color: var(--text-muted); margin: 0 0 8px; }
.review__text { margin: 0 0 8px; font-size: 15.2px; }
.review__text::first-letter {
    font-family: var(--font-serif);
    font-size: 2.5em;
    line-height: 0.82;
    color: var(--ink);
    font-weight: 600;
    padding-right: 4px;
}
.reviews-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

@media (max-width: 620px) {
    .review { flex-direction: column; }
}

/* ── banda medianoche (compromiso / CTA) ────────────────────────────────── */
.band-midnight {
    --dot-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23C9A227' fill-opacity='0.10'/%3E%3C/svg%3E");
    background:
        var(--dot-grid),
        radial-gradient(900px 320px at 85% 10%, rgba(201, 162, 39, 0.10), transparent 60%),
        var(--ink);
    color: var(--paper);
    padding-block: clamp(48px, 7vw, 84px);
    border-block: 1px solid var(--ink);
}
.band-midnight h2 { color: var(--paper); }
.band-midnight h2::before { background: var(--accent); }
.band-midnight p { color: var(--hero-lead); }
.band-midnight .lead { color: var(--hero-lead); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 4px;
    font-family: var(--font-serif);
    font-size: 1.14rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::after {
    content: "+";
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 400;
    color: var(--accent-ink);
    line-height: 1;
    flex: none;
    transition: transform 0.16s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 4px 16px; color: var(--text-muted); max-width: 72ch; margin: 0; }

/* ── nota enmarcada ─────────────────────────────────────────────────────── */
.note-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px 20px;
    font-size: 14.5px;
    color: var(--text-muted);
}
.note-box p:last-child { margin-bottom: 0; }

/* ── mapa (contacto) ────────────────────────────────────────────────────── */
.map-embed {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 880px;
    aspect-ratio: 16 / 9;
    min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── cabezal de páginas internas ────────────────────────────────────────── */
.page-intro { padding-block: clamp(40px, 5.5vw, 68px) clamp(6px, 1.5vw, 14px); }
.page-intro h1::before {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 16px;
}
.page-intro .lead { max-width: 68ch; }

.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 410px); gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 960px) { .split-grid { grid-template-columns: 1fr; } }

/* ── prosa de páginas documentales ──────────────────────────────────────── */
.prose { max-width: 78ch; }
.prose h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin-top: 1.9em; }
.prose h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 12px;
}
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { font-size: 15.8px; }
.prose ul li::marker { color: var(--accent-ink); }
.doc-index {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    font-size: 14.5px;
    margin-bottom: 8px;
}
.doc-index strong { display: block; margin-bottom: 6px; }
.doc-index ul { margin: 0; padding-left: 1.1em; }

/* ── página 404 ─────────────────────────────────────────────────────────── */
.error-wrap { text-align: center; padding-block: clamp(70px, 10vw, 130px); }
.error-code {
    font-family: var(--font-serif);
    font-size: clamp(4.6rem, 12vw, 7.6rem);
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    margin: 0 0 8px;
}
.error-code span { color: var(--accent); }

/* ── pie del sitio ──────────────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: var(--hero-lead);
    border-top: 2px solid var(--accent);
    padding-top: clamp(44px, 6vw, 72px);
    font-size: 14.5px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(150px, 1fr));
    gap: 30px 26px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--ink-line);
}
.site-footer__brand .brand svg { width: 196px; }
.brand-footer .logo-word { fill: var(--paper); }
.brand-footer .logo-sub { fill: var(--accent); }
.brand-footer .logo-mark-ink { stroke: var(--paper); }
.site-footer__tagline { color: var(--hero-lead); font-size: 13.8px; max-width: 34ch; margin-top: 16px; }
.site-footer__mail { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.site-footer__mail .icon-sm { color: var(--accent); }
.site-footer__mail a { color: var(--paper); text-decoration: none; font-size: 13.8px; }
.site-footer__mail a:hover { color: var(--accent); }

.site-footer__col h3 {
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.site-footer__col h3::after {
    content: "";
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--accent);
    margin-top: 8px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col a {
    color: var(--hero-lead);
    text-decoration: none;
    display: inline-block;
    padding: 3.5px 0;
    font-size: 13.8px;
}
.site-footer__col a:hover { color: var(--accent); }

.site-footer__disclaimer { padding: 26px 0 6px; }
.site-footer__disclaimer h3 {
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.site-footer__disclaimer p { color: var(--hero-mute); font-size: 13px; max-width: 88ch; margin: 0; }
.site-footer__bottom { border-top: 1px solid var(--ink-line); padding: 18px 0 26px; margin-top: 18px; }
.site-footer__bottom p { color: var(--hero-mute); font-size: 12.8px; margin: 0; }

@media (max-width: 1024px) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ── reveal on scroll ───────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.001s !important; animation-duration: 0.001s !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

.tv-ticker-wrapper {
    padding-top: 0 !important;
    height: 58px !important;
}

.iti__selected-country, .iti__selected-dial-code {
    color: #18212f !important;
}
