/* ==========================================================================
   Certera Valmovia: sistema de diseno (geo-adapted, claro, cobre/Andes)
   Tipografia local: Space Grotesk (display) + Inter (texto)
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spacegrotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spacegrotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf7f1;
  --surface: #fffdf9;
  --surface-2: #f3eee3;
  --border: #e4dbcb;
  --text: #221c15;
  --text-muted: #6b5f4e;
  --accent: #b45309;
  --accent-hover: #8f4106;
  --accent-tint: #f6e7d5;
  --deep: #0b3c6b;          /* azul bandera, uso puntual */
  --deep-tint: #e3edf6;
  --ok: #2f7d4f;
  --ok-tint: #e6f2ea;
  --bad: #b3372c;
  --bad-tint: #f9e8e6;
  --ink-invert: #f7f2e9;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

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

  --shadow-sm: 0 1px 2px rgba(70, 50, 25, 0.07), 0 2px 6px rgba(70, 50, 25, 0.06);
  --shadow-md: 0 1px 2px rgba(70, 50, 25, 0.06), 0 8px 24px rgba(70, 50, 25, 0.10);
  --shadow-lg: 0 2px 6px rgba(70, 50, 25, 0.08), 0 18px 44px rgba(70, 50, 25, 0.14);

  --ease: cubic-bezier(.2, .6, .2, 1);
  --header-h: 72px;
}

/* ---------- Reset y base ---------- */

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

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

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 14px; height: 14px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.2;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background-color .16s var(--ease), color .16s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.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(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-tint);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; }
.brand__word { width: 172px; height: 22px; }
.brand__word-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  fill: var(--text);
  letter-spacing: -0.02em;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.main-nav { margin-left: auto; }
.nav-groups {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .93rem;
  color: var(--text);
  background: none;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav-trigger:hover { background: var(--accent-tint); color: var(--accent); }
.nav-caret { transition: transform .18s var(--ease); }
.nav-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  z-index: 110;
}
.nav-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);
}
.nav-group.is-open .nav-dropdown,
.nav-trigger[aria-expanded="true"] + .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown ul { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow: auto; }
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .92rem;
  transition: background-color .14s var(--ease), color .14s var(--ease);
}
.nav-dropdown a:hover { background: var(--accent-tint); color: var(--accent); text-decoration: none; }

.nav-plain, .mobile-plain { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-plain a, .mobile-plain a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: .93rem;
}
.nav-plain a:hover { background: var(--accent-tint); text-decoration: none; }
.main-nav--trim { margin-left: auto; }

.header-cta { flex: none; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-burger:hover { background: var(--accent-tint); }
.nav-burger__close { display: none; }
.nav-burger[aria-expanded="true"] .nav-burger__open { display: none; }
.nav-burger[aria-expanded="true"] .nav-burger__close { display: block; }

.mobile-menu {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.mobile-menu__inner { padding: 12px 0 20px; }
.mobile-group__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: none;
  border: none;
  color: var(--text);
  padding: 12px 4px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.mobile-group__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-group__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .2s var(--ease);
}
.mobile-group__panel > ul {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  overflow: hidden;
}
.mobile-group.is-open .mobile-group__panel { grid-template-rows: 1fr; }
.mobile-group__panel a {
  display: block;
  padding: 9px 10px;
  color: var(--text-muted);
  font-size: .95rem;
  border-radius: var(--radius-sm);
}
.mobile-group__panel a:hover { background: var(--accent-tint); color: var(--accent); text-decoration: none; }
.mobile-menu__cta { width: 100%; margin-top: 14px; }

/* ---------- Franja de urgencia (solo /special-offer/) ---------- */

.urgency-strip {
  background: linear-gradient(90deg, #7c2d12, #b45309 55%, #9a3412);
  color: #fff;
  font-size: .86rem;
  font-weight: 500;
}
.urgency-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.urgency-strip__item { display: inline-flex; align-items: center; gap: 7px; }
.urgency-strip__item--hot { font-weight: 700; }
.urgency-strip .icon { color: #ffd9a8; }

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

.section { padding: clamp(48px, 7vw, 88px) 0; position: relative; }
.section--tint {
  background:
    radial-gradient(1100px 420px at 85% 0%, rgba(180, 83, 9, 0.07), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg));
}
.section--deep {
  background:
    radial-gradient(900px 400px at 12% 100%, rgba(11, 60, 107, 0.22), transparent 62%),
    linear-gradient(160deg, #241d14, #36291a 58%, #241d14);
  color: var(--ink-invert);
}
.section--deep h2, .section--deep h3 { color: #fdf8ef; }
.section--deep p { color: #d9cdba; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.04rem; }
.section-head--center p { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Hero de pagina ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(180, 83, 9, 0.10), transparent 62%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 119.5h120M119.5 0v120' stroke='%23d9cdb6' stroke-opacity='.45' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: .5;
  pointer-events: none;
}
.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 6vw, 84px) 0;
}
.page-hero__lead { font-size: 1.06rem; color: var(--text-muted); max-width: 58ch; }
.page-hero__aside { position: relative; z-index: 1; }

/* ---------- Hero del inicio ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f6efdf 0%, var(--bg) 100%);
}
.hero__skyline {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(150px, 24vw, 300px);
  color: #2a2118;
  opacity: .9;
  z-index: 0;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(28px, 5vw, 60px);
  padding: clamp(40px, 5.5vw, 76px) 0 clamp(120px, 16vw, 220px);
  align-items: start;
}
.hero h1 { margin-bottom: .45em; }
.hero__lead { font-size: 1.08rem; color: var(--text-muted); max-width: 56ch; }
.hero__flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
  font-size: .92rem;
  color: var(--text-muted);
}
.hero__flags .flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  box-shadow: var(--shadow-sm);
}
.flag-cl { width: 26px; height: 17px; border-radius: 2px; display: block; }

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

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Formulario (formFactory) ---------- */

.form-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 30px);
}
/* La tarjeta del formulario siempre es clara, incluso dentro de secciones oscuras */
.section--deep .form-block { color: var(--text); }
.section--deep .form-block h2,
.section--deep .form-block h3 { color: var(--text); }
.section--deep .form-block .form-block__intro,
.section--deep .form-block .form-legal,
.section--deep .form-block .form-block__note { color: var(--text-muted); }
.section--deep .form-block .form-block__note .icon { color: var(--accent); }
.form-block__heading { font-size: 1.25rem; margin-bottom: 4px; }
.form-block__intro { color: var(--text-muted); font-size: .93rem; margin-bottom: 14px; }
.form-legal { font-size: .8rem; color: var(--text-muted); margin: 12px 0 0; }
.form-legal a { color: var(--deep); text-decoration: underline; }

.form-block form { margin: 0; }
.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fffefb;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-block input::placeholder { color: #9a8d78; }
.form-block input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.16);
}
.form-block input[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  transition: background-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.form-block input[type="submit"]:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.form-block__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  background: var(--accent-tint);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 14px;
}
.form-block__note .icon { color: var(--accent); margin-top: 1px; }

/* ---------- Insignias de iconos y tarjetas ---------- */

.icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-tint);
  color: var(--accent);
  flex: none;
}
.icon-badge--deep { background: var(--deep-tint); color: var(--deep); }
.icon-badge--ok { background: var(--ok-tint); color: var(--ok); }
.icon-badge--round { border-radius: 999px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d3c5ac;
}
.card h3 { display: flex; align-items: center; gap: 12px; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card--link { display: block; color: var(--text); }
.card--link:hover { text-decoration: none; }
.card__meta { font-size: .84rem; color: var(--accent); font-weight: 600; margin: 0 0 6px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card-grid--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

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

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  counter-reset: paso;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--text-muted); font-size: .93rem; margin: 0; }

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin: 0 0 1.4em;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 560px;
}
.table-wrap th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .01em;
  background: var(--surface-2);
  padding: 13px 16px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:nth-child(even) { background: rgba(243, 238, 227, 0.45); }
.table-wrap td.yes, .table-wrap td.no { white-space: nowrap; font-weight: 600; }
.table-wrap td.yes { color: var(--ok); }
.table-wrap td.no { color: var(--bad); }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; }
.mark--yes { background: var(--ok-tint); color: var(--ok); }
.mark--no { background: var(--bad-tint); color: var(--bad); }

.compare-col-hi {
  background: var(--accent-tint);
  border-radius: var(--radius-sm);
}

/* ---------- Logos de exchanges ---------- */

.exchanges { padding: clamp(34px, 4.5vw, 54px) 0; border-bottom: 1px solid var(--border); }
.exchanges__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.exchange-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px 9px 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  transition: color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.exchange-chip:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.exchange-chip svg { width: 26px; height: 26px; }

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

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review { display: flex; flex-direction: column; gap: 12px; }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid var(--border);
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.review__avatar .icon { width: 28px; height: 28px; }
.review__name { font-family: var(--font-display); font-weight: 700; margin: 0; font-size: 1rem; }
.review__role { font-size: .84rem; color: var(--text-muted); margin: 0; }
.review__body { font-size: .95rem; color: var(--text); margin: 0; flex: 1; }
.review__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.review__stat b { display: block; font-size: .93rem; }
.review__stat span { font-size: .74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.reviews-note {
  margin-top: 22px;
  font-size: .84rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 72ch;
}
.reviews-note .icon { color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Bloque empresa ---------- */

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.company-grid > * { min-width: 0; }
.company-facts { list-style: none; margin: 0 0 24px; padding: 0; }
.company-facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .96rem;
}
.company-facts li:last-child { border-bottom: none; }
.company-facts .icon { color: var(--accent); margin-top: 2px; }
.company-facts span { min-width: 0; overflow-wrap: anywhere; }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

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

.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  padding: 16px 20px;
  cursor: pointer;
  transition: color .15s var(--ease);
}
.faq-item__trigger:hover { color: var(--accent); }
.faq-item__trigger .icon { flex: none; color: var(--accent); transition: transform .18s var(--ease); }
.faq-item.is-open .faq-item__trigger .icon { transform: rotate(180deg); }
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .2s var(--ease);
}
.faq-item__panel > div { overflow: hidden; }
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
}

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

.calc-section { position: relative; }
.calc-section canvas.decor-chart {
  width: 100%;
  height: 130px;
  display: block;
  margin-top: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ---------- Ticker (contencion del widget del beacon) ---------- */

.tv-ticker-wrapper { max-width: 100%; overflow: hidden; }

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

.breadcrumbs { padding: 14px 0 0; font-size: .84rem; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b3a892; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--accent); font-weight: 600; }

/* ---------- Mapa (Contacto) ---------- */

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

/* ---------- Articulos / contenidos ---------- */

.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.article-card { display: flex; flex-direction: column; gap: 8px; }
.article-card h3 { margin: 0; }

.info-list { list-style: none; padding: 0; margin: 0 0 1em; }
.info-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
}
.info-list .icon { color: var(--ok); flex: none; margin-top: 3px; }

.callout {
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 1.4em;
  font-size: .95rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.callout--warn { background: #fdf3e7; border-left-color: #9a3412; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Pagina 404 ---------- */

.error-hero { text-align: center; padding: clamp(70px, 12vw, 140px) 0; }
.error-hero .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--accent);
  opacity: .18;
  margin-bottom: -0.3em;
}

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

.offer-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f9ecdc, var(--bg)); }
.offer-hero .page-hero__grid { padding: clamp(36px, 5vw, 64px) 0; }
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.offer-countdown-inline { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--bad); margin-top: 8px; }

.count-display { display: inline-flex; gap: 6px; }
.count-box {
  min-width: 52px;
  padding: 8px 6px;
  background: #241d14;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}
.count-box span { display: block; font-size: .58rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #d8c9b4; }

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

.cta-band {
  background:
    radial-gradient(700px 300px at 90% 20%, rgba(255, 216, 168, .18), transparent 60%),
    linear-gradient(120deg, #7c2d12, #b45309 60%, #9a3412);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe4c4; max-width: 60ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: #7c2d12; }
.cta-band .btn-primary:hover { background: #fdeedd; }

.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-modal.is-open { display: flex; }
.exit-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 28, 21, 0.62);
  backdrop-filter: blur(3px);
}
.exit-modal__content {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
  animation: modal-in .22s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.exit-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface-2);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.exit-modal__close:hover { background: var(--accent-tint); }
.exit-modal__title { font-size: 1.6rem; margin-bottom: 8px; }
.exit-modal__text { color: var(--text-muted); }
.exit-modal__art { width: 130px; height: 92px; margin: 6px auto 14px; display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: #241d14;
  color: #cfc3ae;
  padding: clamp(44px, 6vw, 72px) 0 34px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(150px, 1fr));
  gap: 30px 24px;
  margin-bottom: 40px;
}
.brand--footer { color: #f3ead9; margin-bottom: 14px; }
.brand--footer .brand__name { color: #f3ead9; }
.footer-brand__note { font-size: .9rem; color: #a99b83; margin-bottom: 12px; }
.footer-brand__mail { font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.footer-brand__mail a { color: #e8c9a4; }
.footer-col__title {
  font-family: var(--font-display);
  font-size: .95rem;
  color: #f3ead9;
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  display: inline-block;
  color: #bdae95;
  font-size: .88rem;
  padding: 4px 0;
}
.footer-col a:hover { color: #f0d3ab; text-decoration: none; }
.footer-disclaimer {
  border-top: 1px solid #3c3226;
  padding-top: 26px;
  font-size: .82rem;
  color: #9c8f77;
}
.footer-disclaimer__title {
  font-family: var(--font-display);
  color: #d8caaf;
  font-size: .95rem;
  margin-bottom: 8px;
}
.footer-disclaimer p { line-height: 1.7; }
.footer-disclaimer__copy { margin: 14px 0 0; }

/* ---------- Animacion de aparicion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, .html-reveal-off .reveal { opacity: 1; transform: none; }

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

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .nav-burger { display: inline-flex; margin-left: auto; }
  .header-cta { margin-left: 0; }
  .main-nav--trim { display: block; margin-left: auto; }
}

@media (max-width: 900px) {
  .page-hero__grid, .hero__grid, .company-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero__grid { padding-bottom: clamp(120px, 30vw, 190px); }
  .review__stats { grid-template-columns: 1fr; gap: 4px; }
  .count-box { min-width: 46px; font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: auto; }
}

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

@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; }
  #hero-canvas { display: none; }
}

/* Shared ticker and telephone field adjustments. */
.tv-ticker-wrapper {
    padding-top: 0 !important;
    height: 58px !important;
}

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

/* Home page */
.hero--regional,
.home-reviews {
    --home-edge: rgba(180, 83, 9, .32);
}

.hero--regional {
    border-bottom: 1px solid var(--home-edge);
}

.hero--regional h1 {
    text-wrap: balance;
}

.hero--regional .hero__grid {
    column-gap: clamp(32px, 5.2vw, 80px);
}

.home-reviews {
    gap: clamp(16px, 2vw, 28px);
}

.home-reviews .review,
.home-reviews .review-card {
    border-top: 2px solid var(--home-edge);
}

.home-reviews img.review__avatar,
.home-reviews img.review-avatar {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 2px solid var(--home-edge);
    border-radius: 50%;
    flex: none;
}

/* Requested shared widget adjustments */
.tv-ticker-wrapper { padding-top: 0 !important; height: 58px !important; }
.iti__selected-country, .iti__selected-dial-code { color: rgb(24, 33, 47) !important; }

/* Homepage visual refinement */
.home-refresh { position:relative; isolation:isolate; overflow:hidden; background:rgb(249,248,243) !important; }
.home-refresh::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(105deg, rgba(249,248,243, .91) 0%, rgba(249,248,243, .84) 32%, rgba(249,248,243, .40) 92%), url('../images/regional-finance.png');
    background-size: 100% 100%, 200% 300%;
    background-position: center, 0% 100%;
    pointer-events: none;
}
.home-refresh h1 { text-wrap:balance; letter-spacing:-.035em; line-height:1.12; }
.home-refresh .hero__copy { max-width:720px; }
.home-refresh .hero__lead, .home-refresh .hero__text { line-height:1.75; }
.home-refresh .hero__aside, .home-refresh .hero__form-col, .home-refresh .hero__form-wrap { filter:drop-shadow(0 18px 26px rgba(0,0,0,.14)); }
.home-refresh ~ .section .card { border-radius:18px; }
.home-reviews .review, .home-reviews .review-card { box-shadow:0 12px 30px rgba(0,0,0,.06); border-top:2px solid var(--accent); }
.review-photo { display:block; flex:0 0 56px; width:56px; height:56px; border-radius:50%; background-image:url('../images/review-portraits.png'); background-repeat:no-repeat; background-size:600% 300%; box-shadow:0 0 0 3px var(--accent-tint); }
@media (max-width: 700px) {
    .home-refresh::before {
        background-image: linear-gradient(110deg, rgba(249,248,243, .88), rgba(249,248,243, .69) 75%, rgba(249,248,243, .62)), url('../images/regional-finance.png');
    }
}
.review-photo-0 { background-position:0.000% 0%; }
.review-photo-1 { background-position:20.000% 0%; }
.review-photo-2 { background-position:40.000% 0%; }
.review-photo-3 { background-position:60.000% 0%; }
.review-photo-4 { background-position:80.000% 0%; }
.review-photo-5 { background-position:100.000% 0%; }

/* Homepage hero */
.home-refresh {
    --hero-edge: color-mix(in srgb, var(--accent) 27%, var(--border, var(--surface)));
    --hero-muted: color-mix(in srgb, var(--text) 86%, var(--surface));
    padding-block: clamp(40px, 5vw, 76px);
}

.home-refresh :is(.hero__grid, .hero-grid, .hero__inner) {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .9fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: center;
    padding-block: 0;
}

.home-refresh :is(.hero__grid, .hero-grid, .hero__inner) > div {
    min-width: 0;
}

.home-refresh h1 {
    max-inline-size: 24ch;
    margin: 0 0 16px;
    font-size: clamp(2.25rem, 3.6vw, 3.125rem);
    letter-spacing: -.035em;
    line-height: 1.09;
    text-wrap: balance;
}

.home-refresh .hero__accent {
    color: var(--accent);
}

.home-refresh :is(p.hero__lead, .hero-sub, .hero__text) {
    max-inline-size: 55ch;
    margin: 0;
    color: var(--hero-muted);
    font-size: 1rem;
    line-height: 1.62;
}

.home-refresh :is(.hero__meta, .hero-meta, .hero__flags, .hero-flags) {
    margin-block: 20px 0;
    gap: 8px 12px;
}

.home-refresh :is(.hero__badges, .hero__links, .hero__trust, .hero-trust) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 14px 0;
}

.home-refresh :is(.hero__badge-link, .hero__link, .hero__trust-link, .trust-chip, .hero-trust-link, .trust-link, .hero-trust__link) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-inline-size: 100%;
    min-block-size: 44px;
    padding: 6px 10px;
    border: 1px solid var(--hero-edge);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: .875rem;
}

.home-refresh :is(.hero__badge-link, .hero__link, .hero__trust-link, .trust-chip, .hero-trust-link, .trust-link, .hero-trust__link):is(:hover, :focus-visible) {
    border-color: var(--accent);
}

.home-refresh .hero-registration {
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 470px;
    justify-self: end;
    padding: clamp(20px, 2.5vw, 32px);
    border: 1px solid var(--hero-edge);
    border-block-start: 3px solid var(--accent);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .19);
}

.home-refresh .hero-registration :is(.form-slot, #registration-form, .hero-form-frame) {
    inline-size: 100%;
    max-inline-size: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-refresh .hero-registration :is(.form-heading, .form-block__heading, .form-block__title, .hero__form > h2, .form-block__intro:first-child) {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: pretty;
}

.home-refresh .hero-registration :is(.form-note, .form-block__note, .hero-form-note, .form-block__manager, .form-legal) {
    margin: 12px 0 0;
    color: var(--hero-muted);
    font-size: .8125rem;
    line-height: 1.5;
}

.home-refresh .hero-registration .form-legal {
    text-align: start;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) {
    grid-template: auto / repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) > div {
    grid-area: auto;
    min-width: 0;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) > div:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) input:not([type="hidden"], .iti__search-input) {
    margin-block-end: 0;
}

.home-refresh .wpcf7-101 input:not([type="hidden"], [type="submit"], [type="checkbox"], [type="radio"], .iti__search-input) {
    min-height: 44px;
    border-radius: 9px;
}

.home-refresh .wpcf7-101 input[type="submit"] {
    min-height: 46px;
    border-radius: 9px;
    font-weight: 700;
}

.home-refresh .wpcf7-101 input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 840px) {
    .home-refresh {
        padding-block: 32px 40px;
    }

    .home-refresh :is(.hero__grid, .hero-grid, .hero__inner) {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .home-refresh .hero__copy {
        display: block;
    }

    .home-refresh .hero-registration {
        order: 0;
        max-inline-size: 560px;
        justify-self: start;
    }

    .home-refresh h1 {
        max-inline-size: 27ch;
        margin-block-end: 12px;
        font-size: clamp(1.875rem, 6.5vw, 2.5rem);
        text-wrap: pretty;
    }

    .home-refresh :is(p.hero__lead, .hero-sub, .hero__text) {
        font-size: .9375rem;
        line-height: 1.55;
    }

    .home-refresh :is(.hero__badges, .hero__links, .hero__trust, .hero-trust) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-inline-size: 420px;
    }

    .home-refresh :is(.hero__badge-link, .hero__link, .hero__trust-link, .trust-chip, .hero-trust-link, .trust-link, .hero-trust__link) {
        gap: 6px;
        padding-inline: 8px;
        font-size: .8125rem;
        line-height: 1.3;
    }

    .home-refresh :is(.hero__badges, .hero__links, .hero__trust, .hero-trust) :is(.icon-badge, .hero__trust-badge, .trust-chip__icon) {
        flex: 0 0 24px;
        inline-size: 24px !important;
        block-size: 24px !important;
    }

    .home-refresh .hero-registration :is(.form-heading, .form-block__heading, .form-block__title, .hero__form > h2, .form-block__intro:first-child) {
        margin-block-end: 14px;
        font-size: 1.125rem;
    }
}
