/* =============================================================
   FinanzasClara — Calculadora Hipoteca
   Archivo: assets/css/calculadora-hipoteca.css
   Enqueue en: functions.php via wp_enqueue_style()
   ============================================================= */

/* ── Google Fonts (Sora + DM Sans) ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Navy scale */
  --navy-950: #060e22;
  --navy-900: #0b1730;
  --navy-800: #0f2347;
  --navy-700: #163266;
  --navy-600: #1d4491;
  --navy-500: #2557c7;
  --navy-100: #dde8ff;
  --navy-50:  #f0f5ff;

  /* Emerald scale */
  --emerald-700: #0a7a60;
  --emerald-600: #0f9d7a;
  --emerald-500: #13b88f;
  --emerald-100: #e4f9f3;
  --emerald-50:  #f0fdf9;

  /* Slate scale */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Accent */
  --amber-600: #b45309;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;
  --danger-600: #dc2626;
  --danger-100: #fee2e2;

  /* Surfaces */
  --surface-1: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.08);
  --shadow-md: 0 8px 24px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12);
  --shadow-xl: 0 32px 80px rgba(15,23,42,.15);

  /* Radii */
  --radius-xs:  6px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Spacing */
  --container: 1200px;
  --section-py: 80px;

  /* Typography */
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;

  /* Transitions */
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--surface-2);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--navy-900);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--navy-700); }
a:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 3px; border-radius: var(--radius-xs); }

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0 0 0 1.25em; }
li { margin-bottom: .35em; }

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 9999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
}

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 100px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(203,213,225,.6);
  box-shadow: var(--shadow-xs);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--emerald-600) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(21,68,145,.35);
  flex-shrink: 0;
}

/* Desktop Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: .92rem;
  font-weight: 600;
  color: var(--slate-600);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover {
  color: var(--navy-800);
  background: var(--slate-100);
  text-decoration: none;
}
.site-nav a.active {
  color: var(--navy-700);
  background: var(--navy-50);
}
.site-nav .nav-cta {
  padding: 9px 18px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 700;
  margin-left: 8px;
}
.site-nav .nav-cta:hover {
  background: var(--navy-700);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--slate-700);
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 0 16px;
  border-top: 1px solid var(--slate-200);
  gap: 2px;
}
.mobile-nav a {
  padding: 10px 16px;
  font-weight: 600;
  color: var(--slate-700);
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover {
  background: var(--slate-100);
  color: var(--navy-800);
  text-decoration: none;
}
.mobile-nav .nav-cta {
  background: var(--navy-900);
  color: #fff;
  margin-top: 8px;
  text-align: center;
}
.mobile-nav.is-open { display: flex; }

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs {
  padding: 12px 0 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .88rem;
  color: var(--slate-500);
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--slate-300); }
.breadcrumbs a { color: var(--slate-500); }
.breadcrumbs a:hover { color: var(--navy-700); }
.breadcrumbs [aria-current="page"] { color: var(--slate-700); font-weight: 600; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background: var(--white);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% -10%, rgba(29,68,145,.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 95% 110%, rgba(15,157,122,.08) 0%, transparent 55%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-600);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow svg { width: 14px; height: 14px; }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  margin-bottom: 20px;
  max-width: 20ch;
}

.hero .lead {
  font-size: 1.08rem;
  color: var(--slate-600);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: 32px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--slate-600);
}
.trust-badge svg { color: var(--emerald-600); flex-shrink: 0; }

/* Hero aside card */
.hero-aside {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
}
.hero-aside h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--navy-800);
}
.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  margin: 0;
  color: var(--slate-700);
}
.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-icon svg { width: 11px; height: 11px; color: var(--emerald-700); }

.hero-aside .divider {
  height: 1px;
  background: var(--slate-200);
  margin: 20px 0;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-item {
  text-align: center;
  padding: 14px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
}
.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item .stat-label {
  font-size: .8rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11,23,48,.30);
}
.btn-primary:hover {
  background: var(--navy-700);
  box-shadow: 0 6px 20px rgba(11,23,48,.38);
  color: #fff;
}

.btn-emerald {
  background: var(--emerald-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,157,122,.30);
}
.btn-emerald:hover {
  background: var(--emerald-700);
  color: #fff;
  box-shadow: 0 6px 20px rgba(15,157,122,.38);
}

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--slate-300);
}
.btn-outline:hover {
  border-color: var(--navy-500);
  color: var(--navy-700);
}

.btn-ghost-white {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── Section Header ────────────────────────────────────────── */
.section-kicker {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-header p { color: var(--slate-600); max-width: 65ch; font-size: 1.02rem; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card-icon--navy { background: var(--navy-50); color: var(--navy-700); }
.card-icon--emerald { background: var(--emerald-100); color: var(--emerald-700); }
.card-icon--amber { background: var(--amber-100); color: var(--amber-600); }

.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--slate-600); }

/* ── Metrics Bar ───────────────────────────────────────────── */
.metrics-bar {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  padding: 36px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  position: relative;
}
.metrics-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
}
.metric-item {
  text-align: center;
  padding: 8px 24px;
  position: relative;
}
.metric-item + .metric-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.metric-item .metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-item .metric-label {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ── Calculator ────────────────────────────────────────────── */
.calc-section {
  background: var(--white);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.calc-panel {
  padding: 36px 36px 40px;
}
.calc-panel--inputs {
  border-right: 1px solid var(--slate-200);
  background: var(--white);
}
.calc-panel--results {
  background: var(--navy-950);
  color: rgba(255,255,255,.9);
}
.calc-panel--results h2 { color: #fff; font-size: 1.3rem; margin-bottom: 24px; }

/* Tabs */
.calc-tabs {
  display: flex;
  gap: 4px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 28px;
}
.calc-tab {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-align: center;
}
.calc-tab.active {
  background: var(--white);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.calc-tab-panel { display: none; }
.calc-tab-panel.active { display: block; }

/* Form fields */
.field-group { margin-bottom: 22px; }
.field-group:last-child { margin-bottom: 0; }

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.field-label label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--slate-700);
}
.field-value-display {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-700);
}

.field-input-wrap { position: relative; }
.field-input-wrap .field-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--slate-400);
  font-size: .92rem;
  pointer-events: none;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--slate-200);
  outline: none;
  cursor: pointer;
  padding: 0;
  border: none;
  margin-bottom: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(22,50,102,.35);
  cursor: pointer;
  transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(22,50,102,.35);
  cursor: pointer;
}

.range-limits {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--slate-400);
  margin-top: 4px;
  font-weight: 500;
}

input[type="number"], select {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
input[type="number"]:focus, select:focus {
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(29,68,145,.1);
}

/* Results */
.result-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.result-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}
.result-card--featured {
  grid-column: 1 / -1;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}
.result-card .rc-label {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.result-card .rc-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.result-card--featured .rc-value { font-size: 2rem; }

/* Progress bar */
.progress-bar-wrap {
  margin: 20px 0;
}
.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
  font-weight: 600;
}
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald-600), var(--emerald-500));
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.calc-notice {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}

/* ── Amortization Table ─────────────────────────────────────── */
.table-section { background: var(--slate-50); }

.table-container {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--slate-200);
  flex-wrap: wrap;
  gap: 12px;
}
.table-header-row h3 { margin: 0; font-size: 1.1rem; }

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

thead th {
  background: var(--slate-50);
  padding: 13px 20px;
  text-align: left;
  font-size: .85rem;
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--slate-200);
}

tbody td {
  padding: 13px 20px;
  font-size: .95rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--slate-50); }

.td-year {
  font-weight: 700;
  color: var(--navy-800);
}

.td-highlight { color: var(--emerald-700); font-weight: 600; }

/* ── Notice / Alert ─────────────────────────────────────────── */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: .92rem;
  line-height: 1.58;
}
.notice svg { flex-shrink: 0; margin-top: 1px; }
.notice--info { background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-800); }
.notice--info svg { color: var(--navy-600); }
.notice--success { background: var(--emerald-50); border: 1px solid rgba(15,157,122,.2); color: var(--emerald-700); }
.notice--success svg { color: var(--emerald-600); }
.notice--warning { background: var(--amber-50); border: 1px solid var(--amber-100); color: var(--amber-600); }
.notice--warning svg { color: var(--amber-600); }

/* ── How It Works ──────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  position: relative;
}
.how-grid::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-100), var(--emerald-100), var(--navy-100));
  z-index: 0;
}

.how-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.how-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy-200, var(--navy-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy-700);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}
.how-step h3 { font-size: 1rem; margin-bottom: 8px; }
.how-step p { font-size: .9rem; color: var(--slate-600); }

/* ── Lead Form ──────────────────────────────────────────────── */
.lead-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, #0f2040 40%, #112845 100%);
  position: relative;
  overflow: hidden;
}
.lead-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 90% 50%, rgba(15,157,122,.12) 0%, transparent 60%);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
}

.lead-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.lead-copy p { color: rgba(255,255,255,.72); font-size: 1.02rem; margin-bottom: 24px; }

.lead-guarantees {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lead-guarantees li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  margin: 0;
}
.lead-guarantees .g-icon {
  width: 20px;
  height: 20px;
  background: rgba(15,157,122,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.lead-guarantees .g-icon svg { width: 11px; height: 11px; color: var(--emerald-500); }

.lead-form-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-xl);
}
.lead-form-box h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.lead-form-box .form-subtitle {
  color: var(--slate-600);
  font-size: .95rem;
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(29,68,145,.1);
}
.form-field input::placeholder { color: var(--slate-400); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-consent {
  font-size: .82rem;
  color: var(--slate-500);
  margin-top: 14px;
  line-height: 1.55;
}
.form-consent a { color: var(--navy-600); }

/* ── Why Us ─────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-section { background: var(--slate-50); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tc-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}
.tc-stars svg { width: 16px; height: 16px; }

.tc-text {
  font-size: .97rem;
  color: var(--slate-700);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--emerald-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.tc-author-name { font-weight: 700; font-size: .95rem; color: var(--navy-900); }
.tc-author-sub { font-size: .82rem; color: var(--slate-500); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--slate-50); }
.faq-question svg {
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--slate-400);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: .97rem;
  color: var(--slate-600);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── YMYL / Legal Notice ────────────────────────────────────── */
.ymyl-notice {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--amber-600);
  line-height: 1.6;
}
.ymyl-notice svg { flex-shrink: 0; margin-top: 1px; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-950) 60%);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(15,157,122,.25) 0%, transparent 70%);
}

.cta-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.72); max-width: 55ch; }

/* ── Comparison info cards ─────────────────────────────────── */
.info-section { background: var(--white); }
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.info-card {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface-2);
}
.info-card .ic-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ic-tag--fija { background: var(--navy-50); color: var(--navy-700); }
.ic-tag--variable { background: var(--amber-100); color: var(--amber-600); }
.ic-tag--mixta { background: var(--emerald-100); color: var(--emerald-700); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.info-card ul { font-size: .93rem; color: var(--slate-600); }
.info-card li { margin-bottom: 6px; }

/* ── Related links ─────────────────────────────────────────── */
.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-links li { margin: 0; }
.related-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--slate-700);
  font-size: .95rem;
  transition: all var(--transition);
}
.related-links a:hover {
  border-color: var(--navy-300, var(--navy-100));
  color: var(--navy-700);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.related-links a svg { color: var(--navy-500); flex-shrink: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand { color: #fff; }
.footer-brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  margin-top: 14px;
  max-width: 32ch;
  line-height: 1.65;
}
.footer-brand .brand-legal {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .01em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col li { margin: 0; }
.footer-col a { color: rgba(255,255,255,.55); font-size: .9rem; transition: color var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,.9); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(255,255,255,.4);
}

/* ── Utility ────────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-item + .metric-item::before { display: none; }
}

@media (max-width: 860px) {
  :root { --section-py: 56px; }

  .hero-grid,
  .calc-wrapper,
  .lead-grid,
  .cta-banner-inner { grid-template-columns: 1fr; }

  .calc-panel--inputs { border-right: none; border-bottom: 1px solid var(--slate-200); }

  .hero h1 { max-width: none; }

  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .how-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .how-grid::after { display: none; }

  .why-grid,
  .testimonials-grid,
  .info-cards { grid-template-columns: 1fr; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .result-cards { grid-template-columns: 1fr; }
  .result-card--featured { grid-column: 1; }

  .cta-banner { padding: 36px 28px; }
  .cta-banner-inner { grid-template-columns: 1fr; }

  .related-links { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .calc-panel { padding: 24px 20px 28px; }
  .lead-form-box { padding: 28px 20px; }
  .cta-banner { padding: 28px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
