/* =========================================================================
   Dovaluesa — hoja de estilos del sitio
   Tokens: tema oscuro cálido, acento teja/ámbar #B8551A + oro decorativo
   Perfil visual: geo-adapted (España) sobre design.md
   ========================================================================= */

:root {
  --bg: #13161B;
  --surface: #1A1F26;
  --surface-2: #222832;
  --border: #2C3440;
  --text: #ECE7DD;
  --text-muted: #A8A199;
  --accent: #B8551A;
  --accent-hover: #D06A24;
  --accent-link: #E08A4F;
  --accent-tint: rgba(184, 85, 26, 0.14);
  --gold: #D9A441;
  --gold-tint: rgba(217, 164, 65, 0.10);
  --ok: #4F9E6A;
  --bad: #C7574C;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(6, 8, 12, 0.5), 0 2px 8px rgba(6, 8, 12, 0.35);
  --shadow-md: 0 1px 3px rgba(6, 8, 12, 0.55), 0 10px 28px rgba(6, 8, 12, 0.45);
  --shadow-lg: 0 2px 6px rgba(6, 8, 12, 0.6), 0 24px 56px rgba(6, 8, 12, 0.55);

  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, Menlo, monospace;

  --header-h: 72px;
}

/* ----- Base ------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--gold-tint), transparent 60%),
    radial-gradient(900px 480px at -10% 12%, rgba(184, 85, 26, 0.08), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--accent-link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.icon { width: 24px; height: 24px; flex: none; }
.icon--inline { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.icon--caret { width: 16px; height: 16px; transition: transform 0.16s ease; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ----- Botones ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-hover); text-decoration: none; }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ----- Header ------------------------------------------------------------ */

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}

.header-logo { display: inline-flex; align-items: center; text-decoration: none; }
.header-logo:hover { text-decoration: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__word {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo__word::first-letter { color: var(--gold); }

.header-nav { margin-left: auto; }

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

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-trigger:hover { background: var(--surface-2); color: var(--accent-hover); }
.nav-trigger[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }
.nav-trigger[aria-expanded="true"] { color: var(--accent-hover); }

.nav-group { position: relative; }

.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 110;
}
.nav-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 22px;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-group--wide .nav-panel { min-width: 300px; max-width: 340px; }
.nav-panel.nav-panel--right { left: auto; right: 0; }
.nav-panel.nav-panel--right::before { left: auto; right: 22px; }

.nav-panel.is-open { animation: navIn 0.16s ease; }
@keyframes navIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-panel__list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.nav-panel__link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
}
.nav-panel__link:hover, .nav-panel__link:focus-visible {
  background: var(--accent-tint);
  color: var(--text);
  text-decoration: none;
}
.nav-panel__link.is-current { color: var(--accent-hover); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px;
  cursor: pointer;
}
.nav-burger .icon--burger-close { display: none; }
.nav-burger[aria-expanded="true"] .icon--burger { display: none; }
.nav-burger[aria-expanded="true"] .icon--burger-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 14px 0 22px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }

.mobile-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 14px 2px;
  cursor: pointer;
}
.mobile-group__head[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }
.mobile-group__list { list-style: none; margin: 0 0 6px; padding: 6px 0 8px 10px; }
.mobile-group__list[hidden] { display: none; }
.mobile-group__link {
  display: block;
  padding: 9px 8px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.mobile-group__link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.mobile-menu .btn { margin-top: 14px; }

/* ----- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 460px at 78% 8%, rgba(217, 164, 65, 0.13), transparent 62%),
    radial-gradient(760px 420px at 12% 90%, rgba(184, 85, 26, 0.12), transparent 60%),
    linear-gradient(105deg, rgba(19,22,27,.97) 0%, rgba(19,22,27,.86) 40%, rgba(19,22,27,.38) 100%),
    url("../images/hero-trading.webp") center / cover no-repeat, #13161B;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23A8A199' stroke-opacity='0.055' stroke-width='1'%3E%3Cpath d='M0 30h120M0 60h120M0 90h120M30 0v120M60 0v120M90 0v120'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas: "main side" "extra side";
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero__main { grid-area: main; }
.hero__extra { grid-area: extra; }
.hero__side { grid-area: side; }

.hero__coin { position: absolute; pointer-events: none; opacity: 0.95; filter: drop-shadow(0 4px 18px rgba(217, 164, 65, 0.25)); }
.hero__coin--1 { top: 12%; right: 8%; }
.hero__coin--2 { bottom: 26%; left: 44%; opacity: 0.68; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero__kicker .icon { width: 18px; height: 18px; }

.hero__title { max-width: 15ch; }
.hero__title em {
  font-style: normal;
  color: var(--accent-hover);
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 54ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 22px 0 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero__meta strong { color: var(--text); font-weight: 600; }

.hero__offices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero__offices .flags { display: inline-flex; gap: 8px; align-items: center; }
.flag {
  display: inline-flex;
  width: 30px;
  height: 21px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(236, 231, 221, 0.18);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.hero__badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}
.hero__badge .icon { width: 20px; height: 20px; color: var(--accent-hover); }

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero__note .icon { width: 18px; height: 18px; color: var(--gold); }

.hero__side { position: relative; }

/* ----- Secciones ---------------------------------------------------------- */

.section { padding-block: clamp(44px, 6vw, 84px); }
.section--tint {
  background:
    radial-gradient(700px 300px at 90% 10%, var(--gold-tint), transparent 60%),
    var(--surface);
  border-block: 1px solid var(--border);
}
.section--deco {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23D9A441' stroke-opacity='0.07'%3E%3Ccircle cx='20' cy='20' r='1.6'/%3E%3Ccircle cx='120' cy='46' r='1.6'/%3E%3Ccircle cx='58' cy='112' r='1.6'/%3E%3Cpath d='M20 20 120 46 58 112Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(26, 31, 38, 0.55), rgba(19, 22, 27, 0.2));
}
.section__head { max-width: 68ch; margin-bottom: clamp(20px, 3vw, 36px); }
.section__head p { color: var(--text-muted); font-size: 1.02rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ----- Tarjetas e icon-badges --------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card-grid--pair { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card p { color: var(--text-muted); margin: 0; }
.card p + p { margin-top: 0.7em; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent-hover);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--gold { background: var(--gold-tint); color: var(--gold); }

/* ----- Pasos numerados ----------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: paso;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ----- Historia (Sobre nosotros) -------------------------------------------- */

.history-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.history-item { padding: 22px 20px; }
.history-item .icon-badge { margin-bottom: 12px; }
.history-item h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--gold); letter-spacing: 0.02em; }
.history-item p { color: var(--text-muted); margin: 0; font-size: 0.93rem; }

/* ----- Tablas ---------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.94rem;
}
.table-wrap th {
  text-align: left;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-wrap td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(44, 52, 64, 0.6);
  color: var(--text-muted);
  vertical-align: top;
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:nth-child(even) { background: rgba(34, 40, 50, 0.35); }

.tick { color: var(--ok); font-weight: 700; }
.cross { color: var(--bad); font-weight: 700; }
.table-wrap td.tick, .table-wrap td.cross { white-space: nowrap; }

/* ----- Chips de exchanges ----------------------------------------------------- */

.exchange-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
  justify-content: center;
  gap: 16px;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.chip--light { background: #ffffff; }
.chip--dark { background: #0f172a; }
.chip img { height: 26px; width: auto; max-width: 130px; display: block; }

/* ----- Reseñas ------------------------------------------------------------------ */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.review { display: flex; flex-direction: column; gap: 12px; }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex: none;
}
.review__name { font-weight: 700; margin: 0; }
.review__role { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.review__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.review__stats span { color: var(--text-muted); }
.review__stats strong { color: var(--text); font-weight: 700; }
.review blockquote {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.reviews-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; }

/* ----- Formulario (envoltorio de formFactory) ------------------------------------ */

.form-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 30px);
}
.form-block__title {
  font-size: 1.12rem;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-block__title .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(79, 158, 106, 0.2);
  flex: none;
}
.form-block__sub { color: var(--gold); font-size: 0.85rem; font-weight: 700; margin: 0 0 14px; }
.form-block__intro { color: var(--text-muted); margin: 0 0 14px; font-size: 0.95rem; }
.form-legal { font-size: 0.82rem; color: var(--text-muted); margin: 12px 0 0; }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Contraste del selector de prefijo telefónico dentro de las tarjetas oscuras */
.form-block .iti__selected-dial-code { color: #666666; }
.form-block .iti__selected-flag { background: transparent; }

.hero-form .form-block { background: rgba(26, 31, 38, 0.88); backdrop-filter: blur(6px); }

/* ----- Calculadora ---------------------------------------------------------------- */

.calc-section { position: relative; overflow: hidden; }
/* El título del modal del módulo siempre claro sobre su fondo azul oscuro */
.calc-modal__title { color: #ffffff; }
.calc-canvas {
  position: absolute;
  inset: auto 0 -20px 0;
  height: 220px;
  width: 100%;
  opacity: 0.5;
  pointer-events: none;
}

/* ----- Compañía (bloque con tarjetas-enlace) --------------------------------------- */

.company-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.company-facts { display: grid; gap: 14px; margin: 18px 0 22px; }
.company-fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.company-fact .icon { color: var(--gold); width: 20px; height: 20px; margin-top: 2px; }
.company-fact strong { display: block; color: var(--text); }
.company-fact span { color: var(--text-muted); font-size: 0.92rem; }

.link-cards { display: grid; gap: 12px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  color: var(--text);
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}
.link-card .icon { color: var(--accent-hover); }
.link-card .icon--arrow { margin-left: auto; color: var(--text-muted); }

/* ----- FAQ ------------------------------------------------------------------------- */

.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  padding: 16px 18px;
  cursor: pointer;
}
.faq-item__q:hover { color: var(--accent-hover); }
.faq-item__q .icon--caret { color: var(--text-muted); }
.faq-item__q[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }
.faq-item__a { padding: 0 18px 16px; color: var(--text-muted); }
.faq-item__a[hidden] { display: none; }

/* ----- Migas de pan -------------------------------------------------------------------- */

.breadcrumbs { padding-block: 14px; border-bottom: 1px solid rgba(44, 52, 64, 0.5); }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.breadcrumbs__sep { color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-hover); }

/* ----- Página de contenido general ------------------------------------------------------ */

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(760px 380px at 82% 6%, rgba(217, 164, 65, 0.12), transparent 60%),
    radial-gradient(620px 340px at 8% 95%, rgba(184, 85, 26, 0.10), transparent 60%),
    linear-gradient(180deg, #171B21 0%, #13161B 100%);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 5.5vw, 72px);
}
.page-hero__lead { color: var(--text-muted); font-size: 1.04rem; max-width: 56ch; }

.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 22px; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text); }

.duo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--text-muted);
}
.callout--warn { border-left-color: var(--bad); }

/* ----- Mapa ----------------------------------------------------------------------------- */

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

/* ----- Pie -------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(800px 300px at 15% 0%, var(--gold-tint), transparent 55%),
    #101318;
  padding-block: clamp(36px, 5vw, 64px) 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(140px, 1fr));
  gap: 28px;
}

.footer-logo { display: inline-flex; margin-bottom: 14px; }
.footer-brand__text { color: var(--text-muted); font-size: 0.92rem; max-width: 34ch; }
.footer-brand__contact { color: var(--text-muted); font-size: 0.9rem; }
.footer-col__title { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer-col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col__list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: inline-block;
  padding: 5px 0;          /* objetivo táctil ≥ 24 px de alto en móvil */
  min-height: 24px;
  line-height: 1.4;
}
.footer-col__list a:hover { color: var(--text); }

.footer-disclaimer {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.footer-disclaimer__title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 8px; }
.footer-disclaimer p { color: var(--text-muted); font-size: 0.84rem; margin: 0; }

.footer-copy { margin: 22px 0 0; color: var(--text-muted); font-size: 0.82rem; }

/* ----- Página 404 --------------------------------------------------------------------------- */

.error-page { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.error-page__code { font-family: var(--font-mono); font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; color: var(--accent-hover); line-height: 1; }
.error-page .btn { margin-top: 10px; }

/* ----- Special offer ------------------------------------------------------------------------- */

.urgency-strip { background: var(--accent); color: #fff; font-size: 0.88rem; }
.urgency-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
  padding-block: 9px;
  font-weight: 600;
}
.urgency-strip span { display: inline-flex; align-items: center; gap: 8px; }

.so-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 360px at 80% 10%, rgba(217, 164, 65, 0.16), transparent 60%),
    linear-gradient(180deg, #1C1712 0%, #13161B 100%);
}
.so-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding-block: clamp(40px, 5.5vw, 76px);
}
.so-hero__bonus {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 18px;
}
.so-hero__bonus .icon { color: var(--gold); width: 30px; height: 30px; }

.countdown { display: inline-flex; gap: 8px; margin: 14px 0 4px; font-family: var(--font-mono); }
.countdown span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 58px;
}
.countdown b {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.countdown small { font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.so-cta-band {
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(217, 164, 65, 0.16), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--gold);
  text-align: center;
  padding-block: clamp(36px, 5vw, 56px);
}
.so-cta-band .btn { margin-top: 12px; }

.modal-so { position: fixed; inset: 0; z-index: 300; display: none; }
.modal-so.is-open { display: block; }
.modal-so__overlay { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.72); }
.modal-so__card {
  position: relative;
  max-width: 480px;
  margin: 8vh auto 0;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 26px;
  text-align: center;
  margin-inline: 16px;
}
.modal-so__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.modal-so__illu { width: 180px; height: auto; margin: 0 auto 12px; display: block; }

/* ----- Scroll reveal ------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(10px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

/* ----- Utilidades ---------------------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* ----- Responsive ------------------------------------------------------------------------------ */

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

@media (max-width: 900px) {
  .header-nav { display: none; }
  .nav-burger { display: inline-flex; }
  .header-actions .btn--sm { display: none; }

  .hero__inner, .page-hero__inner, .so-hero__inner, .company-grid {
    grid-template-columns: 1fr;
  }
  .hero__canvas { display: none; }
  /* El skyline (motivo geo-adapted con velas de cotización) sigue visible en
     móvil como fondo estático del hero: es el fallback del canvas (D13). */
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .exchange-chips { grid-template-columns: repeat(auto-fit, minmax(140px, max-content)); }
  .chip { width: 140px; height: 52px; }
  .urgency-strip .container { gap: 6px 16px; font-size: 0.8rem; }
}

/* Mapa sin altura mínima en pantallas estrechas: evita que aspect-ratio fuerce
   un ancho mínimo mayor que el viewport (desbordamiento horizontal a 360 px). */
@media (max-width: 720px) {
  .map-embed { aspect-ratio: auto; height: 300px; min-height: 0; }
}

/* El host del ticker del addon deja 40 px de sangrado a la derecha que en
   móvil desborda el viewport; se ajusta solo en pantallas estrechas.
   Especificidad extra (body) para ganar al <style> que el addon inyecta luego. */
@media (max-width: 560px) {
  body .tv-ticker-host { width: 100%; }
}

/* ----- Movimiento reducido ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__canvas, .calc-canvas { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .link-card, .hero__badge, .nav-panel.is-open { transition: none; animation: none; }
  * { scroll-behavior: auto; }
}

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

.iti__selected-country,
.iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}

.iti__country-name {
  color: #000 !important;
}

@media (min-width: 1024px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(12,21,38,.96) 0%, rgba(12,21,38,.83) 65%, rgba(12,21,38,.56) 100%),
      url("../images/hero-trading.webp") center / cover no-repeat, #13161B;
  }
}

/* Account action in the header and mobile navigation. */
.btn.header-account {
  min-height: 44px;
  gap: 9px;
  padding: 6px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe1a0, #e8aa47);
  color: #2b1708;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(230, 166, 69, .30), inset 0 1px 0 rgba(255, 255, 255, .19);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn.header-account svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  flex: none;
  border-radius: 50%;
  background: rgba(97, 53, 10, .13);
  color: currentColor;
}
.btn.header-account:hover {
  background: #ffdf97;
  color: #2b1708;
  box-shadow: 0 5px 12px rgba(230, 166, 69, .30);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn.header-account:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn.header-account:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .btn.header-account { transition: none; }
  .btn.header-account:hover, .btn.header-account:focus-visible, .btn.header-account:active { transform: none; }
}

/* Homepage hero */
.hero-title__accent { color: var(--accent-link); }

@media (max-width: 900px) {
  .hero .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    reading-flow: flex-visual;
  }
  .hero .hero__inner > .hero__main { display: contents; }
  .hero .hero__inner > .hero__main > h1 { order: -2; }
  .hero .hero__inner > .hero__side { order: -1; min-width: 0; }
}
