/* ============================================================
   Cumbre Prendumbre — main.css
   Perfil: MOUNTAIN_MODERNIST_EDITORIAL (DESIGN.md del sitio)
   Referencia GetDesign: WIRED (lienzo claro, acento único, kickers)
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg: #F7F9F8;
  --surface: #FFFFFF;
  --surface-2: #EDF0EF;
  --border: #DAE0DF;
  --border-strong: #C4CCCB;
  --text: #182430;
  --text-muted: #4C5B66; /* pizarra media: 7.0:1 sobre blanco, 6.6:1 sobre nieve */

  --accent: #1F35A8;
  --accent-hover: #16297E;
  --accent-tint: #E9EDFA;

  --copper: #B4642D;
  --copper-deep: #96521F;
  --copper-tint: #F7EAE0;

  --ok: #1E7A46;
  --no: #B33636;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(24, 36, 48, .07);
  --shadow-md: 0 1px 2px rgba(24, 36, 48, .06), 0 10px 28px rgba(24, 36, 48, .10);
  --shadow-lg: 0 2px 4px rgba(24, 36, 48, .08), 0 20px 48px rgba(24, 36, 48, .16);

  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --sec-tall: clamp(4.5rem, 9vw, 8rem);
  --sec-short: clamp(3rem, 6vw, 5rem);

  /* motion tokens (escala transitions.dev: fast 160 / med 200 / slow 350) */
  --dur-fast: 160ms;
  --dur-med: 200ms;
  --dur-slow: 350ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg, iframe, video, canvas { max-width: 100%; height: auto; }
svg { overflow: hidden; } /* clip motif paths: never widen the page */
html { overflow-x: clip; }
img { display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-inline { width: 18px; height: 18px; vertical-align: -3px; color: var(--copper-deep); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--surface); color: var(--accent); padding: 10px 16px;
  border-radius: var(--r-sm); box-shadow: var(--shadow-md); font-weight: 600;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.container--narrow { max-width: 860px; }

/* --- Type scale --- */
.h1, main h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.015em; font-weight: 650; }
.h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); letter-spacing: -.01em; font-weight: 620; }
.h3 { font-size: 1.15rem; font-weight: 620; }
.kicker {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--copper-deep);
  margin: 0 0 .8rem;
}
.section-lead { color: var(--text-muted); max-width: 62ch; margin-bottom: 0; }
.section-head { margin-bottom: clamp(1.6rem, 3.5vw, 2.8rem); }
.section-head .h2 { margin-bottom: .4em; }

/* --- Sections / vertical rhythm --- */
.section { padding-block: var(--sec-tall); }
.section--tint {
  padding-block: var(--sec-tall);
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}
.section--tall { padding-block: var(--sec-tall); }
.section--page-head { padding-block: var(--sec-short) var(--sec-tall); }
.section--form { padding-block: var(--sec-tall); background: var(--surface); border-block: 1px solid var(--border); }
.section--cta-band {
  padding-block: var(--sec-tall);
  background:
    radial-gradient(1100px 420px at 85% 10%, rgba(180, 100, 45, .28), transparent 60%),
    linear-gradient(160deg, #1F35A8 0%, #16297E 100%);
  color: #F2F4FA;
}
.section--cta-band .cta-band__title { color: #FFFFFF; }
.section--cta-band .cta-band__text { color: #C9D3EE; }

/* --- Buttons --- */
.btn,
.btn-primary,
.btn-secondary,
.btn-copper {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 12px 26px; border-radius: var(--r-md); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-tint); transform: translateY(-1px); }
.btn-copper { background: var(--copper-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn-copper:hover { background: #7E4419; transform: translateY(-1px); }
.btn-block { width: 100%; }
.section-cta { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 248, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand .logo-svg { width: 200px; height: 36px; }
.brand-fallback { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.main-nav { margin-inline: auto; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a, .nav-trigger { white-space: nowrap; }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; font: inherit; font-weight: 550;
  color: var(--text); padding: 10px 12px; border-radius: var(--r-sm);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-trigger:hover { background: var(--surface-2); }
.nav-trigger .icon-caret { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.nav-item.is-open .nav-trigger .icon-caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 110;
  min-width: 250px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; transform: translateY(4px); visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.dropdown.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.dropdown.align-right { left: auto; right: 0; }
.dropdown::before {
  content: ""; position: absolute; top: -5px; left: 22px; width: 10px; height: 10px;
  background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.dropdown.align-right::before { left: auto; right: 22px; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--text);
  font-size: .93rem; line-height: 1.4;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--accent-tint); color: var(--accent); text-decoration: none; }
.btn-header { flex: none; padding: 10px 20px; }
.nav-burger {
  transition: background-color var(--dur-fast) var(--ease-out);
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  border-radius: var(--r-sm); color: var(--text);
}
.nav-burger:hover { background: var(--surface-2); }
.nav-burger .icon-close { display: none; }
.nav-burger.is-open .icon-menu { display: none; }
.nav-burger.is-open .icon-close { display: block; }
.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); padding-block: 14px; }
.mobile-group { border-bottom: 1px solid var(--border); }
.mobile-group summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; padding: 12px 4px; list-style: none;
}
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary .icon { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.mobile-group[open] summary .icon { transform: rotate(180deg); }
.mobile-group ul { list-style: none; margin: 0 0 10px; padding: 0; }
.mobile-group a { display: block; padding: 8px 6px; color: var(--text-muted); font-size: .95rem; }
.mobile-nav .btn { margin-top: 14px; }

/* --- Breadcrumbs --- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 12px 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-current] { color: var(--text); font-weight: 550; }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; }
.hero--home { padding-block: clamp(2.8rem, 5vw, 4.5rem) clamp(2.6rem, 5vw, 4.5rem); }
.hero--split, .hero--auth, .hero--so { padding-block: clamp(3rem, 6vw, 5rem); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media--grid {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(31, 53, 168, .14), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, var(--surface-2) 100%);
}
.hero-media--grid::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 0H0v44' fill='none' stroke='%23C4CCCB' stroke-width='.6'/%3E%3C/svg%3E");
}
.hero-veil {
  position: absolute; inset: 0; display: block;
  background: linear-gradient(100deg, rgba(16, 24, 34, .88) 0%, rgba(16, 24, 34, .66) 46%, rgba(16, 24, 34, .34) 100%);
}
.hero-veil--strong { background: linear-gradient(100deg, rgba(14, 22, 36, .92) 0%, rgba(14, 22, 36, .74) 50%, rgba(14, 22, 36, .46) 100%); }
.hero-inner { position: relative; }
.hero--home .hero-title, .hero--split .hero-title, .hero--auth .hero-title, .hero--so .hero-title { color: #F4F7F6; }
.hero--home .kicker, .hero--split .kicker, .hero--auth .kicker { color: #D9A05B; }
.hero--home .hero-lead, .hero--split .hero-lead, .hero--auth .hero-lead, .hero--so .hero-lead { color: #C9D2D4; }
.hero-title { font-size: clamp(2.05rem, 4vw, 3.35rem); letter-spacing: -.02em; font-weight: 660; max-width: 23ch; }
.hero-lead { font-size: 1.06rem; max-width: 58ch; }
.hero-cta { margin-top: 1.4rem; }

.hero-grid, .auth-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.6rem, 3.5vw, 3.5rem); align-items: start;
}
.hero-grid { grid-template-areas: "copy form" "trust form"; }
.hero-copy { grid-area: copy; }
.hero-form { grid-area: form; }
.hero-trust { grid-area: trust; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2rem; align-items: flex-start; }
.auth-grid .hero-copy { grid-area: auto; }

/* hero motif (crestas + línea ascendente) */
.hero-motif {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%;
  pointer-events: none;
}
.hm-contour { fill: none; stroke: rgba(233, 237, 250, .34); stroke-width: 1.4; }
.hm-c2 { stroke: rgba(233, 237, 250, .2); }
.hm-ridge { fill: none; stroke: rgba(247, 249, 248, .4); stroke-width: 2; }
.hm-rise { fill: none; stroke: #D9A05B; stroke-width: 2.6; stroke-linecap: round; }
.hm-coin { fill: none; stroke: rgba(217, 160, 91, .8); stroke-width: 2; }
.hm-node { fill: rgba(217, 160, 91, .9); }
.hm-link { fill: none; stroke: rgba(233, 237, 250, .4); stroke-width: 1.2; }
.hm-candles rect { fill: rgba(247, 249, 248, .5); }
.hero-media--grid .hero-motif { height: 100%; opacity: .8; }
.hero-media--grid .hm-contour { stroke: rgba(31, 53, 168, .3); }
.hero-media--grid .hm-ridge { stroke: rgba(24, 36, 48, .35); }
.hero-media--grid .hm-rise { stroke: rgba(180, 100, 45, .75); }
.hero-media--grid .hm-candles rect { fill: rgba(31, 53, 168, .35); }

/* --- Form card / form block --- */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 2.6vw, 2rem);
}
.form-card__title {
  font-family: var(--font-display); font-weight: 620; font-size: 1.12rem;
  line-height: 1.2; color: var(--text); margin: 0 0 .9rem;
}
.form-card__note {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 1rem 0 0; font-size: .88rem; color: var(--text-muted);
}
.form-card__note .icon-inline { margin-top: 2px; color: var(--copper-deep); }
.form-block { position: relative; }
.form-block__intro { font-size: .93rem; color: var(--text-muted); margin-bottom: .8rem; }
.form-legal { font-size: .8rem; color: var(--text-muted); margin: .9rem 0 0; }
.form-legal a { color: var(--accent); }

/* --- Flags --- */
.flags-caption { color: #C9D2D4; font-size: .88rem; margin-bottom: .6rem; }
.flags-list { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.flag { display: flex; align-items: center; gap: 8px; color: #E8ECEC; font-size: .9rem; }
.flag-svg { width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); display: block; }
.flag--first { font-weight: 600; }

/* --- Icon links (hero trust + company) --- */
.hero-links { display: flex; flex-direction: column; gap: .9rem; }
.icon-link { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.icon-link:hover { text-decoration: none; }
.icon-link__text { display: flex; flex-direction: column; }
.icon-link__text strong { color: #F4F7F6; font-size: .96rem; line-height: 1.3; }
.icon-link__text small { color: #AEB9BC; font-size: .82rem; }
.icon-link--card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 16px 18px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.icon-link--card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.icon-link--card .icon-link__text strong { color: var(--text); }
.icon-link--card .icon-link__text small { color: var(--text-muted); }

/* --- Icon badge --- */
.icon-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent);
}
.icon-badge--copper { background: var(--copper-tint); color: var(--copper-deep); }
.icon-badge .icon { width: 24px; height: 24px; }
.hero-trust .icon-badge { background: rgba(233, 237, 250, .16); color: #E9EDFA; width: 44px; height: 44px; }
.hero-trust .icon-badge--copper { background: rgba(217, 160, 91, .18); color: #D9A05B; }

/* --- Exchange logos row --- */
.section--logos { padding-block: var(--sec-short) var(--sec-tall); }
.logos-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; list-style: none; margin: 0; padding: 0;
}
.logo-chip {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 13px 18px; box-shadow: var(--shadow-sm);
  color: var(--text-muted); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.logo-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text); }
.logo-mark { width: 24px; height: 24px; }
.logo-name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: .01em; }

/* --- Calculator --- */
.calc-wrap { max-width: 980px; }
/* El módulo trae título/subtítulo propios; el bloque usa el section-head del
   sitio (un solo h2 por sección, misma escala tipográfica). */
.calc-widget__title, .calc-widget__subtitle { display: none; }
.calc-widget__cta { padding: 12px 26px; font-weight: 600; font-size: .98rem; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps--three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps--four-vertical { grid-template-columns: 1fr; gap: 1.8rem; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 22px 22px 18px; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 650; font-size: .95rem;
  margin-bottom: .8rem; font-family: var(--font-display);
}
.step--wide { display: flex; gap: 18px; align-items: flex-start; padding: clamp(20px, 3vw, 30px); }
.step--wide .step-num { margin-bottom: 0; }
.step-title { font-size: 1.05rem; margin-bottom: .4rem; }
.step-text { color: var(--text-muted); font-size: .95rem; margin-bottom: 0; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; position: relative; contain: paint; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare-table, .data-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.compare-table { min-width: 640px; }
.compare-table th, .compare-table td, .data-table th, .data-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare-table thead th, .data-table thead th {
  background: var(--surface-2); font-family: var(--font-display); font-weight: 620; font-size: .92rem;
}
.compare-table thead th.col-us { color: var(--accent); }
.compare-table tbody tr:last-child td, .data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: rgba(237, 240, 239, .5); }
.data-table tbody th[scope="row"] { font-weight: 600; width: 34%; }
.data-table .cell-desc { color: var(--text-muted); max-width: 46ch; }
.cell-yes { text-align: center; }
.cell-no { text-align: center; }
.icon-yes { color: var(--ok); width: 20px; height: 20px; }
.icon-no { color: var(--no); width: 20px; height: 20px; }
.note-block {
  background: var(--accent-tint); border: 1px solid rgba(31, 53, 168, .22);
  border-radius: var(--r-sm); padding: 14px 18px; margin: 1.4rem 0 0;
  font-size: .93rem; color: var(--text);
}
.section--tint .note-block { background: var(--surface); }

/* --- Cards --- */
.cards-grid { display: grid; gap: 1.3rem; }
.cards-grid--two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-grid--three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-grid--four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 22px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card--wide { display: flex; flex-direction: column; gap: .6rem; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { text-decoration: none; }
.card-title { font-size: 1.04rem; margin: .9rem 0 .45rem; }
.card--wide .card-title { margin-top: 0; }
.card-text { color: var(--text-muted); font-size: .94rem; margin-bottom: 0; }
.card-advice { font-size: .88rem; color: var(--text); margin: .8rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--border-strong); }
.card-advice .icon-inline { color: var(--ok); }

/* risk intro (wide card) */
.risk-intro {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: clamp(20px, 3vw, 30px); margin-bottom: 1.6rem;
}
.risk-intro--wide { margin: 1.6rem 0 0; }
.risk-intro h2, .risk-intro h3 { margin-top: 0; }

/* --- Reviews --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.3rem; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 22px; display: flex; flex-direction: column; gap: .7rem; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.review:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review-head { display: flex; align-items: center; gap: 13px; }
.review-name { font-size: 1rem; margin: 0; }
.review-role { color: var(--text-muted); font-size: .85rem; margin: 0; }
.review-text { color: var(--text); font-size: .95rem; margin: 0; }
.review-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .84rem; color: var(--text-muted); margin: 0; padding-top: .7rem; border-top: 1px solid var(--border); }
.review-stats strong { color: var(--text); }
.review-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), var(--shadow-sm);
}
.review-avatar .icon { width: 26px; height: 26px; }
.review-avatar--a { background: var(--accent-tint); color: var(--accent); }
.review-avatar--b { background: var(--copper-tint); color: var(--copper-deep); }
.review-avatar--c { background: var(--surface-2); color: var(--text-muted); }

/* --- Company block --- */
.section--company {
  background:
    radial-gradient(800px 380px at 12% 15%, rgba(31, 53, 168, .07), transparent 60%),
    var(--bg);
}
.company-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.company-facts { margin: 1.4rem 0 0; display: grid; gap: .9rem; }
.company-facts div { display: flex; flex-direction: column; }
.company-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--copper-deep); font-weight: 600; }
.company-facts dd { margin: 2px 0 0; color: var(--text); }
.company-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }

/* --- Form band (pre-FAQ) --- */
.form-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }

/* --- FAQ --- */
.faq-cat { margin-top: 2.2rem; }
.faq-cta { text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  cursor: pointer; padding: 15px 18px; font-weight: 600; font-family: var(--font-display); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: -5px;
  border-right: 2px solid var(--copper-deep); border-bottom: 2px solid var(--copper-deep);
  transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease-out); margin-right: 3px;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 5px; }
.faq-answer { padding: 0 18px 16px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* --- Prose / policy --- */
.prose p { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.policy h2 { font-size: 1.3rem; margin-top: 2em; }
.policy h2:first-of-type { margin-top: 0; }
.numbered { margin-top: .5em; }
.numbered li { margin-bottom: .6em; }
.check-list { list-style: none; padding: 0; margin: 1em 0 0; display: flex; flex-direction: column; gap: .55em; }
.check-list .icon-inline { color: var(--ok); margin-right: 6px; }
.check-list--plain { margin-top: .8em; }
.auth-grid .check-list li { color: #C9D2D4; font-size: .95rem; }
.auth-grid .check-list a { color: #D9A05B; }
.article { margin-bottom: 3rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--border); }
.article:last-of-type { border-bottom: 0; margin-bottom: 0; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.contact-facts { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-fact { display: flex; gap: 14px; align-items: flex-start; }
.contact-fact h3 { margin: 0 0 .2rem; font-size: 1rem; }
.contact-fact p { margin: 0; color: var(--text-muted); font-size: .94rem; }
.map-embed {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); max-width: 100%; aspect-ratio: 16 / 9; min-height: 320px; background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Timeline (about) --- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px;
  padding: 22px 0; border-left: 2px solid var(--border); position: relative; padding-left: 26px; margin-left: 40px;
}
.timeline-item::before {
  content: ""; position: absolute; left: -7px; top: 30px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--copper);
}
.timeline-year { font-family: var(--font-display); font-weight: 680; font-size: 1.25rem; color: var(--accent); }
.timeline-text { color: var(--text-muted); margin: 0; max-width: 68ch; }

/* --- Vacancies --- */
.vacancy-list { display: flex; flex-direction: column; gap: 1.1rem; }
.vacancy {
  display: flex; gap: 1.4rem; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 22px 24px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.vacancy:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vacancy__title { margin: 0 0 .35rem; font-size: 1.08rem; }
.vacancy__desc { margin: 0 0 .6rem; color: var(--text-muted); font-size: .94rem; max-width: 62ch; }
.vacancy__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; font-size: .85rem; color: var(--text-muted); }
.vacancy__meta .icon-inline { color: var(--accent); }
.vacancy .btn { flex: none; }

/* --- CTA band --- */
.cta-band { display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: .35em; }
.cta-band__text { max-width: 60ch; margin: 0; }

/* --- Special offer --- */
.so-strip { background: linear-gradient(90deg, #141F4D 0%, #1F35A8 60%, #96521F 100%); color: #fff; font-size: .87rem; }
.so-strip__inner { display: flex; flex-wrap: wrap; gap: .5rem 2.2rem; padding-block: 9px; justify-content: center; }
.so-strip__stat { display: inline-flex; gap: 7px; align-items: center; color: #E4E8F4; }
.so-strip__stat .icon-inline { color: #D9A05B; width: 15px; height: 15px; }
.so-strip__stat strong { color: #fff; }
.so-strip__stat--hot { color: #F3D9BF; }
.so-badge {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #D9A05B; border: 1px solid rgba(217, 160, 91, .55);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 1.1rem;
}
.form-card--so .form-card__title::before {
  content: ""; display: block; width: 34px; height: 3px; border-radius: 2px;
  background: var(--copper); margin-bottom: .7rem;
}
.so-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.so-modal[hidden] { display: none; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(14, 22, 36, .68); }
.so-modal__card {
  position: relative; width: min(480px, 100%); background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 30px 28px 28px;
  text-align: center; animation: so-pop var(--dur-med) var(--ease-out);
}
@keyframes so-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
/* salida (receta modal-open-close: 200ms in / 150ms out) */
.so-modal.is-closing { animation: so-fade var(--dur-fast) var(--ease-out) forwards; }
.so-modal.is-closing .so-modal__card { animation: so-pop var(--dur-fast) var(--ease-out) reverse forwards; }
@keyframes so-fade { from { opacity: 1; } to { opacity: 0; } }
.so-modal__close {
  position: absolute; top: 10px; right: 12px; background: none; border: 0;
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 6px;
}
.so-modal__close { transition: color var(--dur-fast) var(--ease-out); }
.so-modal__close:hover { color: var(--text); }
.so-modal__art { width: 130px; height: auto; color: var(--accent); margin: 0 auto .8rem; display: block; }
.so-modal__title { font-size: 1.5rem; margin-bottom: .4rem; }
.so-modal__text { color: var(--text-muted); font-size: .95rem; }
.so-count { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 1.1rem 0 1.3rem; }
.so-count__seg { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.so-count__seg b {
  font-family: var(--font-display); font-weight: 680; font-size: 1.7rem; color: var(--accent);
  background: var(--accent-tint); border-radius: 8px; min-width: 62px; padding: 6px 8px;
  font-variant-numeric: tabular-nums; display: block;
}
.so-count__seg i { font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.so-count__sep { font-size: 1.5rem; font-weight: 700; color: var(--text-muted); margin-top: -14px; }

/* --- 404 --- */
.notfound { padding-block: var(--sec-tall); }
.notfound__inner { text-align: center; }
.notfound__motif { width: 120px; height: auto; color: var(--copper); margin: 0 auto 1.2rem; display: block; }
.notfound__inner .hero-title { margin-inline: auto; }
.notfound__inner .hero-lead { color: var(--text-muted); margin-inline: auto; }
.notfound__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1.6rem 0 1.8rem; }
.notfound__links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: center; padding: 0; margin: 0; font-size: .93rem; }

/* --- Footer --- */
.site-footer { background: #101B26; color: #B9C4C6; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h3 { color: #F2F4F4; font-size: .95rem; letter-spacing: .02em; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45em; }
.footer-col a { color: #B9C4C6; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-disclaimer { border-top: 1px solid rgba(185, 196, 198, .2); margin-top: 2.4rem; padding-top: 1.6rem; font-size: .8rem; line-height: 1.6; color: #93A0A3; }
.footer-disclaimer p { margin-bottom: .6em; }
.footer-meta { display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
.footer-meta a { color: #D9A05B; }
.footer-credits { margin: .4em 0 0; font-size: .75rem; color: #7C898D; }
.footer-credits a { color: #93A0A3; }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Ticker row (beacon injects; give it the band treatment) --- */
.beacon-ticker-row, .ticker-row { background: var(--surface); border-bottom: 1px solid var(--border); }

/* --- Responsive --- */
@media (max-width: 1020px) {
  .hero-grid, .auth-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-areas: "copy" "form" "trust"; }
  .company-grid, .form-band, .contact-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-burger { display: inline-flex; }
  .brand .logo-svg { width: 168px; height: 30px; }
  .btn-header { padding: 9px 16px; font-size: .92rem; }
}
@media (max-width: 768px) {
  .hero-motif { height: 46%; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; margin-left: 18px; }
  .vacancy { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .so-strip__inner { flex-direction: column; gap: .3rem; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero--home { padding-block: 2rem 2.2rem; }
  .hero-title { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .hero-lead { font-size: .98rem; line-height: 1.55; margin-bottom: .8em; }
  .form-card { padding: 1.15rem; }
  .hero-trust { gap: 1.4rem; margin-top: 1.5rem; }
  .btn-header { display: none; }
  .compare-table, .data-table { font-size: .88rem; }
  .card { padding: 18px; }
  .step { padding: 18px; }
  .so-count__seg b { min-width: 54px; font-size: 1.4rem; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .step:hover, .review:hover, .logo-chip:hover, .vacancy:hover, .icon-link--card:hover, .btn:hover { transform: none; }
}

/* Ticker and international phone field */
.tv-ticker-wrapper {
  padding-top: 0px !important;
  height: 58px !important;
}
.iti__selected-country, .iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}

/* Header registration and navigation */
.site-header .registration-cta {
  min-height: 44px;
  gap: .65em;
  font-weight: 700;
}
.registration-cta .cta-arrow { width: 1.05em; height: 1.05em; flex: none; }
.registration-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header .dropdown { top: 100%; }
.site-header .dropdown ul { max-height: min(62vh, 32rem); overflow-y: auto; }
.site-header .mobile-nav { max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; }
.site-header .mobile-nav[hidden] { display: none; }
.site-header .mobile-nav summary, .site-header .mobile-nav li a { min-height: 44px; align-content: center; }
.site-header .nav-burger { min-width: 44px; min-height: 44px; }

/* Home page media */
#content > .hero h1 { text-wrap: balance; }
#content > .hero .form-block { scroll-margin-top: 6rem; }
.review-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.review-photo-note { margin-block: .65rem 1rem; font-size: .875rem; }

#content > .hero--home .hero-veil { background: linear-gradient(100deg, rgba(14, 22, 36, .94), rgba(14, 22, 36, .74) 50%, rgba(14, 22, 36, .32)); }
#content > .hero--home .hero-form { align-self: start; }
#content > .hero--home .hero-title { max-inline-size: 18ch; }

.site-header .nav-burger { margin-inline-start: auto; }
@media (min-width: 561px) and (max-width: 1020px) {
  .site-header .nav-burger { margin-inline-start: 0; }
  .site-header .btn-header { margin-inline-start: auto; }
}

/* Home reading and spacing */
.home-page .form-block :is(input[type="text"], input[type="email"], input[type="tel"]),
.home-page .calc-modal :is(input[type="text"], input[type="email"], input[type="tel"]) {
  min-height: 44px;
  font-size: 1rem;
}
.home-page :is(.form-block, .calc-modal) :is(input[type="text"], input[type="email"], input[type="tel"])::placeholder {
  font-size: .875rem;
  opacity: 1;
}
.home-page .form-legal { font-size: .875rem; line-height: 1.5; }
.home-page .review-photo-note { max-width: 65ch; line-height: 1.5; }
@media (max-width: 640px) {
  .home-page > .section .section-head { margin-bottom: 20px; }
}

#content.home-page > .section { padding-block: clamp(40px, 6.2vw, 88px); }
#content.home-page > .section--logos { padding-block: clamp(36px, 4.4vw, 64px); }
.home-page > .hero--home .hero-grid { row-gap: clamp(22px, 3vw, 36px); }
.home-page > .hero--home .hero-lead { margin-bottom: 0; color: #edf0f3; }
.home-page > .hero--home .hero-trust {
  gap: 16px 28px;
  margin-top: 0;
  padding: 16px 18px;
  background: #162337;
  border: 1px solid #506078;
  border-radius: var(--r-md);
}
.home-page > .hero--home .hero-links { gap: 10px; }
.home-page > .hero--home .hero-links small { color: #c9d2dc; }
.home-page > .hero--home .flags-list { gap: 10px 16px; }

/* The registration form reserves a grid row for an optional password. */
#content.home-page :is(.form-block, .calc-modal) form > div:has(> div > input[name="first_name"]):not(:has(input[type="password"])) {
  row-gap: 0;
}
#content.home-page :is(.form-block, .calc-modal) form > div:has(> div > input[name="first_name"]):not(:has(input[type="password"])) > div:has(> :is(input[name="first_name"], input[name="last_name"], input[type="email"], input[type="tel"], .iti)) {
  margin-block-end: 12px;
}
.home-page :is(.form-block, .calc-modal) :is(input, button)[type="submit"] {
  min-height: 44px;
}
