/* ==========================================================================
   Sereno Reditavura — hoja de estilos del sitio.
   Tema: grafito aireado + dorado cálido. Perfil base (design.md).
   Tokens, escala de radios 20px, sombras cálidas, líneas finas ámbar.
   ========================================================================== */

/* ---------- Fuente de pantalla autohospedada (Manrope 700/800) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/display-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/display-800.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #16181D;
  --surface: #1F232B;
  --surface-2: #262B35;
  --border: #333A47;
  --border-soft: #2B313C;
  --text: #EDEFF3;
  --muted: #A6ADBB;

  --accent: #E8B435;
  --accent-hover: #F2C464;
  --accent-tint: rgba(232, 180, 53, 0.13);
  --accent-tint-2: rgba(232, 180, 53, 0.07);
  --on-accent: #201A07;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(10, 12, 16, 0.5), 0 2px 8px rgba(10, 12, 16, 0.35);
  --shadow-md: 0 2px 4px rgba(10, 12, 16, 0.45), 0 10px 28px rgba(10, 12, 16, 0.4);
  --shadow-lg: 0 4px 8px rgba(10, 12, 16, 0.5), 0 20px 48px rgba(10, 12, 16, 0.55);

  --font-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --hairline: 1px solid rgba(232, 180, 53, 0.22);
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 0.6em;
  color: var(--text);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

strong { color: #fff; font-weight: 700; }
code { font-family: Consolas, 'Courier New', monospace; font-size: 0.92em; }

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

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

.icon { width: 24px; height: 24px; flex: none; }
.icon--xs { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section--tint { background: var(--surface-2); }
.section--panel { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.section-cta { margin-top: clamp(24px, 3vw, 36px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* fondos decorativos de sección: gradiente base SIEMPRE con motivo encima */
.deco-band {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.deco-band > svg { position: absolute; }

.section > .container { position: relative; z-index: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
              transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
              border-color 0.16s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint-2);
}
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--header { padding: 11px 20px; font-size: 0.9rem; }

/* ---------- Insignias de icono ---------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid rgba(232, 180, 53, 0.25);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 24, 29, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(22, 24, 29, 0.97); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__tile { fill: var(--surface-2); stroke: var(--border); }
.brand__path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.brand__peak { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.brand__node { fill: #C79A2E; }
.brand__node--hot { fill: var(--accent); }
.brand__word {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.05;
  font-size: 1.02rem;
}
.brand__word b { font-weight: 800; color: var(--text); }
.brand__word i { font-style: normal; font-weight: 700; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; }

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; }

.main-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.main-nav__trigger:hover, .main-nav__trigger:focus-visible { background: var(--surface-2); color: var(--accent); }
.nav-caret { transition: transform 0.18s var(--ease); }
.main-nav__item.is-open .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 264px;
  max-width: min(88vw, 340px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
  z-index: 110;
}
.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 { left: auto; right: 0; }
.dropdown.align-right::before { left: auto; right: 22px; }
.main-nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown__list { list-style: none; margin: 0; padding: 0; }
.dropdown__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.dropdown__link .icon { width: 14px; height: 14px; color: var(--muted); }
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--accent-tint); color: var(--text); }
.dropdown__link.is-active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  padding: 12px clamp(16px, 4vw, 40px) 20px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.mobile-nav__group { border-bottom: 1px solid var(--border-soft); }
.mobile-nav__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  list-style: none;
}
.mobile-nav__group summary::-webkit-details-marker { display: none; }
.mobile-nav__group ul { list-style: none; margin: 0 0 12px; padding: 0 4px; }
.mobile-nav__group a {
  display: block;
  padding: 9px 10px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.94rem;
}
.mobile-nav__group a:hover, .mobile-nav__group a[aria-current="page"] { color: var(--accent); background: var(--accent-tint-2); }
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Ticker (Beacon inyecta .beacon-ticker tras </header>) ---------- */
main { display: block; }

/* ---------- Migas de pan ---------- */
.breadcrumbs { background: var(--surface-2); border-bottom: 1px solid var(--border-soft); }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs__list li[aria-hidden] { color: var(--border); }
.breadcrumbs__list a { color: var(--muted); }
.breadcrumbs__list a:hover { color: var(--accent); }
.breadcrumbs__list li[aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Héroe ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(900px 520px at 74% 8%, rgba(232, 180, 53, 0.10), transparent 62%),
    radial-gradient(700px 460px at 8% 88%, rgba(232, 180, 53, 0.05), transparent 60%),
    var(--bg);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

/* brillo dorado que respira (GSAP lo anima con suavidad) */
.hero__glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 780px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(232, 180, 53, 0.16), rgba(232, 180, 53, 0.05) 55%, transparent 75%);
  border-radius: 50%;
  opacity: 0.85;
  will-change: transform, opacity;
}

/* rejilla de puntos estrella, capa de parallax */
.hero__stars {
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(rgba(166, 173, 187, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 460px at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 460px at 70% 30%, #000 30%, transparent 75%);
  will-change: transform;
}

/* curva ascendente punteada con monedas doradas */
.hero__curve { position: absolute; right: -40px; bottom: -30px; width: min(760px, 72vw); height: auto; opacity: 0.9; }
.hero__curve-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1 12;
}
.hero__coin { fill: rgba(232, 180, 53, 0.16); stroke: var(--accent); stroke-width: 1.6; }
.hero__coin-core { fill: var(--accent); }
.hero__coin-label { fill: var(--muted); font-family: Consolas, monospace; font-size: 12px; letter-spacing: 0.08em; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.hero__lead { color: var(--muted); font-size: 1.06rem; max-width: 58ch; }
.hero__lead strong { color: var(--text); }

.tick {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 800;
}

.hero__meta { margin-top: 26px; }

.flags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.flags__caption { color: var(--muted); font-size: 0.92rem; }
.flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
}
.flag svg { width: 26px; height: 17px; border-radius: 3px; display: block; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), background 0.16s var(--ease);
}
.icon-link .icon-badge { width: 38px; height: 38px; border-radius: var(--r-sm); }
.icon-link:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }

/* ---------- Bloque de formulario (formFactory) ---------- */
.form-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3vw, 32px);
}
.form-block__heading { font-size: 1.28rem; margin-bottom: 6px; }
.form-block__intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.form-block__card { border: 0; padding: 0; }

.form-legal { color: var(--muted); font-size: 0.8rem; margin: 12px 0 0; }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }
.form-manager {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.86rem;
  margin: 10px 0 0;
}

/* estilo del formulario inyectado */
.beacon-form { width: 100%; }
.beacon-form__form { display: grid; gap: 12px; margin: 14px 0 0; }
.beacon-form__row { display: grid; gap: 6px; }
.beacon-form__label { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.beacon-form__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.beacon-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.beacon-form__submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--r-md);
  background: var(--beacon-accent, var(--accent));
  color: var(--beacon-on-accent, var(--on-accent));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: filter 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.beacon-form__submit:hover, .beacon-form__submit:focus-visible { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Fila de exchanges ---------- */
.exchange-strip {
  padding: 34px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.exchange-strip__title { font-size: 0.95rem; color: var(--muted); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.exchange-strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.exchange-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: var(--hairline);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease);
}
.exchange-chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.exchange-chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.exchange-strip__note { color: var(--muted); font-size: 0.85rem; margin: 14px 0 0; }

/* ---------- Calculadora ---------- */
.calc-section { background: var(--surface); }
.calc-lead { max-width: 68ch; }
.calc-wrap { position: relative; }

/* ---------- Tarjetas de pasos ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform 0.17s var(--ease), box-shadow 0.17s var(--ease), border-color 0.17s var(--ease);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(232, 180, 53, 0.35); }
.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid rgba(232, 180, 53, 0.3);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.step-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Tabla comparativa ---------- */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.94rem;
}
.compare thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td { background: var(--accent-tint-2); }
.compare td:first-child { color: var(--text); max-width: 400px; }
.mark-yes, .mark-no { text-align: center !important; width: 130px; }
.mark-yes b { color: #7FC98B; font-size: 1.1rem; }
.mark-no b { color: #D97A72; font-size: 1.1rem; }

/* ---------- Tarjetas de seguridad ---------- */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.sec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: transform 0.17s var(--ease), box-shadow 0.17s var(--ease);
}
.sec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sec-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
}
.sec-card h3 .icon-badge { width: 42px; height: 42px; }
.sec-card p { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }

/* ---------- Reseñas ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 18px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.17s var(--ease), box-shadow 0.17s var(--ease);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-card__head { display: flex; align-items: center; gap: 13px; }
.review-card__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid rgba(232, 180, 53, 0.3);
  color: var(--accent);
}
.review-card__name { font-weight: 700; color: var(--text); }
.review-card__role { color: var(--muted); font-size: 0.84rem; }
.review-card__text { color: var(--text); font-size: 0.95rem; margin: 0; flex: 1; }
.review-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-top: 12px;
  border-top: var(--hairline);
  color: var(--muted);
  font-size: 0.84rem;
}
.review-card__stats b { color: var(--text); font-weight: 700; }
.review-card__stats b.up { color: #C9E3B4; }
.reviews-note { color: var(--muted); font-size: 0.84rem; margin-top: 20px; }

/* ---------- Bloque de compañía ---------- */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
.company-facts { display: grid; gap: 10px; margin: 18px 0 22px; }
.company-facts dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.company-facts dt .icon { width: 16px; height: 16px; color: var(--accent); }
.company-facts dd { margin: 0 0 6px 24px; color: var(--text); font-size: 0.96rem; }

.company-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.company-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease);
}
.company-card .icon-badge { width: 40px; height: 40px; }
.company-card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }

.company-visual {
  position: relative;
  min-height: 300px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(420px 260px at 72% 18%, rgba(232, 180, 53, 0.09), transparent 70%),
    var(--surface-2);
  overflow: hidden;
}

/* ---------- Ventajas ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.adv-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: transform 0.17s var(--ease), box-shadow 0.17s var(--ease);
}
.adv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.adv-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.adv-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.16s var(--ease);
}
.faq-item[open] { border-color: rgba(232, 180, 53, 0.35); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.99rem;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--accent); transition: transform 0.18s var(--ease); flex: none; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item__answer { padding: 0 20px 18px; color: var(--muted); font-size: 0.95rem; }
.faq-item__answer p { margin: 0; }
.faq-item__answer ul { margin-top: 8px; }

/* ---------- Héroe de página interior ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 80px) 0;
  background:
    radial-gradient(760px 420px at 82% 0%, rgba(232, 180, 53, 0.09), transparent 62%),
    var(--bg);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.page-hero__lead { color: var(--muted); font-size: 1.03rem; }
.page-hero__motif { position: absolute; right: -20px; top: -20px; width: min(420px, 46vw); opacity: 0.5; pointer-events: none; }

/* ---------- Contenido de páginas ---------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose p strong, .prose li strong { color: var(--text); }
.prose table { color: var(--muted); }

.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin: 24px 0;
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: transform 0.17s var(--ease), box-shadow 0.17s var(--ease);
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.doc-card h3 { display: flex; gap: 12px; align-items: center; font-size: 1rem; }
.doc-card p { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }

/* ---------- Tablas ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin: 20px 0 28px;
  background: var(--surface);
}
.table-wrap table { width: 100%; border-collapse: collapse; margin: 0; }
.table-wrap th, .table-wrap td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.93rem;
  vertical-align: top;
}
.table-wrap thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(38, 43, 53, 0.45); }
.table-wrap td strong { color: var(--text); }
.table-wrap .ok { color: #7FC98B; font-weight: 700; }

/* ---------- Mapa ---------- */
.map-embed {
  max-width: 860px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.map-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 0;
}

/* ---------- Pie de página ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  padding: clamp(40px, 6vw, 64px) 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(160px, 1fr)) minmax(160px, 1.6fr);
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: 34px;
}
.footer-brand__note { color: var(--muted); font-size: 0.9rem; margin: 16px 0 10px; }
.footer-brand__mail { font-size: 0.9rem; }
.footer-brand__mail a { text-decoration: underline; text-underline-offset: 2px; }
.footer-col h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  display: inline-block;
  color: var(--muted);
  font-size: 0.89rem;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-colwrap { display: grid; gap: 20px; }

.footer-disclaimer {
  border-top: var(--hairline);
  padding-top: 24px;
}
.footer-disclaimer h4 { font-size: 0.9rem; color: var(--accent); margin-bottom: 8px; }
.footer-disclaimer p { color: var(--muted); font-size: 0.8rem; line-height: 1.65; margin: 0; }
.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.footer-bottom p { color: var(--muted); font-size: 0.8rem; margin: 0; }

/* ---------- Página 404 ---------- */
.error-page { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-page__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 12vw, 8rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

/* ---------- /special-offer/ ---------- */
.urgency-strip {
  background: linear-gradient(90deg, rgba(232, 180, 53, 0.16), rgba(232, 180, 53, 0.07));
  border-bottom: 1px solid rgba(232, 180, 53, 0.35);
  color: var(--text);
  font-size: 0.85rem;
}
.urgency-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
  padding: 9px 0;
}
.urgency-strip__inner span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.urgency-strip__inner .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
  flex: none;
}

.so-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 76px) 0;
  background:
    radial-gradient(760px 440px at 78% 6%, rgba(232, 180, 53, 0.14), transparent 64%),
    var(--bg);
}
.so-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid rgba(232, 180, 53, 0.35);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.so-countdown {
  display: inline-flex;
  gap: 10px;
  margin-top: 22px;
}
.so-countdown__cell {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 78px;
  padding: 12px 10px;
  background: var(--surface);
  border: 1px solid rgba(232, 180, 53, 0.4);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.so-countdown__cell b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.so-countdown__cell span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(232, 180, 53, 0.16), rgba(232, 180, 53, 0.05));
  border: 1px solid rgba(232, 180, 53, 0.4);
  box-shadow: var(--shadow-md);
}
.cta-band p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  max-width: 32ch;
}

.so-steps { margin-top: 24px; }

.so-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.so-modal.is-open { display: flex; }
.so-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(3px);
}
.so-modal__card {
  position: relative;
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid rgba(232, 180, 53, 0.4);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px 28px 28px;
  text-align: center;
  animation: so-pop 0.22s var(--ease);
}
@keyframes so-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.so-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.so-modal__close:hover { color: var(--text); border-color: var(--accent); }
.so-modal__art { width: min(240px, 80%); height: auto; margin: 4px auto 12px; display: block; }
.so-modal__card h3 { font-size: 1.45rem; }
.so-modal__card .so-countdown { justify-content: center; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Aviso genérico ---------- */
.note {
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--accent-tint-2);
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.9rem;
}
.note strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero__inner, .page-hero__inner { grid-template-columns: 1fr; }
  .hero__curve { opacity: 0.4; }
  .company-grid { grid-template-columns: 1fr; }
  .company-visual { min-height: 220px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .btn--header { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .mobile-nav { display: block; }
  .hero { padding-top: 40px; }
  .hero__curve { display: none; }
  .hero__stars { display: none; }
  .so-countdown__cell { min-width: 66px; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-band p { max-width: none; }
}

@media (max-width: 480px) {
  .flags { gap: 8px; }
  .flag { font-size: 0.78rem; padding: 4px 10px 4px 5px; }
  .hero__badges { flex-direction: column; align-items: stretch; }
  .footer-top { grid-template-columns: 1fr; }
  .exchange-chip { padding: 9px 16px; font-size: 0.85rem; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__stars { display: none; }
}

/* testimonial photos: fill the avatar badge edge to edge */
.review-card__fallback img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }

/* Production form widget integration: the beacon formFactory randomizes its
   field class names and leaves input colors to the page. These structural
   rules theme every input inside our form containers, covering both the
   page forms and the calculator modal, with this site's palette. */
.form-block input[type="text"], .form-block input[type="email"], .form-block input[type="tel"],
.form-block input[type="password"], .form-block select,
.calc-modal__content input[type="text"], .calc-modal__content input[type="email"],
.calc-modal__content input[type="tel"], .calc-modal__content input[type="password"],
.calc-modal__content select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.form-block input::placeholder, .calc-modal__content input::placeholder { color: #777777; }
.form-block input:focus, .calc-modal__content input:focus { outline: none; border-color: currentColor; }
.form-block .iti__country-list, .calc-modal__content .iti__country-list {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-top: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.form-block .iti__country:hover, .calc-modal__content .iti__country:hover,
.form-block .iti__highlight, .calc-modal__content .iti__highlight { background: rgba(232, 180, 53, 0.13); }
.form-block .iti__selected-flag, .calc-modal__content .iti__selected-flag { background: transparent; }
.form-block .iti__selected-dial-code, .calc-modal__content .iti__selected-dial-code { color: #777777; }

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