/* Si al Ahorro — site-specific v2 · blues + white, iOS style */

html { scroll-behavior: smooth; }

/* ─── Density modes ─── */
body[data-density="compact"] section { padding: 64px 0; }
body[data-density="compact"] section.hero { padding: 56px 0 72px; }
body[data-density="compact"] section.tight { padding: 48px 0; }
body[data-density="compact"] .section-header { margin-bottom: 40px; }
body[data-density="relaxed"] section { padding: 128px 0; }
body[data-density="relaxed"] section.hero { padding: 112px 0 136px; }
body[data-density="relaxed"] section.tight { padding: 80px 0; }
body[data-density="relaxed"] .section-header { margin-bottom: 72px; }

/* ─── Brand text in header ─── */
.brand-text { display: flex; align-items: baseline; gap: 5px; }
.brand-text .si     { color: var(--navy-900); }
.brand-text .al     { color: var(--navy-800); }
.brand-text .ahorro { color: var(--navy-900); }

/* ─── Hero editorial variant ─── */
.hero.variant-editorial .hero-grid {
  grid-template-columns: 1fr; text-align: center;
  max-width: 900px; margin: 0 auto; gap: 40px;
}
.hero.variant-editorial .eyebrow { justify-content: center; }
.hero.variant-editorial .hero-ctas { justify-content: center; }
.hero.variant-editorial .lede { margin-left: auto; margin-right: auto; }
.hero.variant-editorial .hero-stats { max-width: 680px; margin: 48px auto 0; }
.hero.variant-editorial h1 { font-size: 80px; }
.hero.variant-editorial .hero-card { display: none; }

.hero-eyebrow-row { display: flex; align-items: center; gap: 16px; }

/* ─── FAQ accordion ─── */
.faq-grid {
  max-width: 860px; margin: 0 auto;
  display: grid; gap: 0;
}
.faq-item {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: transparent; border: none;
  padding: 22px 16px; cursor: pointer;
  display: grid; grid-template-columns: 1fr 32px;
  gap: 16px; align-items: center; text-align: left;
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--navy-900); letter-spacing: -0.01em;
  transition: color var(--dur-fast);
}
.faq-question:hover { color: var(--navy-800); }
.faq-icon {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-600); transition: all var(--dur-fast); flex-shrink: 0;
}
.faq-item[data-open="true"] .faq-icon {
  background: var(--navy-800); color: #fff; border-color: var(--navy-800);
}
.faq-icon svg { transition: transform var(--dur-base); }
.faq-item[data-open="true"] .faq-icon svg { transform: rotate(180deg); }
.faq-answer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.faq-item[data-open="true"] .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden; font-size: 16px; line-height: 1.7;
  color: var(--ink-600); padding-right: 48px;
}
.faq-answer-inner > div { padding: 0 16px 24px; }

/* ─── Contact form ─── */
.contact-section { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-info h2 {
  font-family: var(--font-display); font-size: 40px; line-height: 1.1;
  letter-spacing: -0.025em; color: var(--navy-900); margin: 12px 0 0;
}
.contact-info h2 .accent { color: var(--navy-800); }
.contact-info .lede-text {
  font-size: 17px; line-height: 1.65; color: var(--ink-600);
  margin: 20px 0 32px; max-width: 460px;
}
.contact-channels { display: grid; gap: 0; margin-top: 32px; }
.contact-channel {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  align-items: center; padding: 16px 0; border-top: 1px solid var(--border);
  text-decoration: none; border-bottom: none;
  transition: opacity var(--dur-fast);
}
.contact-channel:first-child { border-top: none; }
.contact-channel:hover { opacity: 0.75; }
.contact-channel .ico {
  width: 48px; height: 48px; background: var(--navy-100); color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg); flex-shrink: 0;
}
.contact-channel .label {
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--navy-600); font-weight: 700;
}
.contact-channel .value {
  font-family: var(--font-display); font-size: 18px; color: var(--navy-900);
  font-weight: 700; margin-top: 1px;
}
.contact-form-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-lg);
}
.contact-form-card::before {
  content: ""; display: block; height: 3px;
  background: var(--rule-gold); border-radius: var(--r-md);
  margin-bottom: 28px;
}
.contact-form-card h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: var(--navy-900); margin: 0 0 4px;
}
.contact-form-card .sub { font-size: 14px; color: var(--ink-500); margin: 0 0 24px; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--navy-800); text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans); font-size: 15px; padding: 11px 14px;
  background: var(--bg-tint); border: 1.5px solid var(--border);
  border-radius: var(--r-md); color: var(--navy-900);
  outline: none; transition: border-color var(--dur-fast); width: 100%;
}
.form-field textarea { min-height: 96px; resize: vertical; font-family: var(--font-sans); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--navy-800); background: var(--white); }
.form-meta { font-size: 12px; color: var(--fg-muted); margin-top: 12px; line-height: 1.5; display: flex; align-items: center; gap: 8px; }
.form-meta svg { color: var(--navy-600); flex-shrink: 0; }
.form-success { display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.form-success .check-circle {
  width: 64px; height: 64px; background: var(--navy-100); color: var(--navy-700);
  border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success .check-circle svg { width: 32px; height: 32px; stroke-width: 2.2; }
.form-success h3 { margin-bottom: 8px; color: var(--navy-900); }
.form-success p { color: var(--ink-600); }

/* ─── Edu chart ─── */
.edu-chart .interactive-year {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--divider);
  font-size: 13px; color: var(--ink-600);
}
.edu-chart .interactive-year .y-label {
  font-family: var(--font-number); font-size: 14px; color: var(--navy-800);
  font-weight: 600; font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.edu-chart input[type="range"] { flex: 1; margin: 0 16px; accent-color: var(--navy-800); }
.edu-chart .y-readout {
  display: flex; gap: 24px; font-family: var(--font-number); font-size: 13px;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
}
.edu-chart .y-readout .v.dollar { color: var(--navy-800); font-weight: 600; }
.edu-chart .y-readout .v.peso { color: #b3361d; font-weight: 600; }
.edu-chart .y-readout .lbl {
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-subtle); font-weight: 600; display: block;
}

/* ─── Scroll-reveal ─── */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── Section header left ─── */
.section-header.left .eyebrow { justify-content: flex-start; }

/* ─── CTA strip ─── */
.cta-strip .container .actions { gap: 12px; }

/* ═══════════════════════════════════════════════════════════════
    — Calculadora · Light Theme (iOS style)
   ══════════════════════════════════════════════════════════════ */

.cica360-wrap {
  display: grid;
  grid-template-columns: 400px 1fr;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
}

/* ── Formulario (panel izquierdo) — blanco ── */
.cica360-form {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1.5px solid var(--border);
}

.cica360-form-title {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--navy-700); margin: 0;
}

.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500);
}

/* Text input */
.cf-text-input {
  background: var(--bg-tint);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--fg); font-size: var(--fs-sm);
  padding: 11px 14px;
  font-family: var(--font-sans);
  transition: border-color var(--dur-fast);
}
.cf-text-input::placeholder { color: var(--fg-faint); }
.cf-text-input:focus { outline: none; border-color: var(--navy-800); background: var(--white); }

/* Sexo toggle */
.cf-sex-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden;
}
.cf-sex-btn {
  padding: 11px 10px; background: var(--bg-tint); border: none;
  color: var(--fg-subtle); font-family: var(--font-sans); font-size: var(--fs-sm);
  font-weight: 500; cursor: pointer; transition: all var(--dur-fast);
}
.cf-sex-btn + .cf-sex-btn { border-left: 1.5px solid var(--border); }
.cf-sex-btn.active { background: var(--navy-800); color: #fff; font-weight: 600; }
.cf-sex-btn:not(.active):hover { background: var(--navy-100); color: var(--navy-800); }

/* Stepper */
.cf-stepper {
  display: grid; grid-template-columns: 44px 1fr 44px;
  border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden;
}
.cf-stepper-btn {
  background: var(--bg-tint); border: none; color: var(--navy-700);
  font-size: 20px; font-weight: 300; cursor: pointer;
  transition: background var(--dur-fast); line-height: 1;
}
.cf-stepper-btn:hover { background: var(--navy-100); color: var(--navy-800); }
.cf-stepper-input {
  background: var(--white); border: none;
  border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
  color: var(--navy-900); font-family: var(--font-mono); font-size: var(--fs-2xl);
  font-weight: 600; text-align: center; padding: 8px 0;
  -moz-appearance: textfield;
}
.cf-stepper-input::-webkit-inner-spin-button,
.cf-stepper-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.cf-stepper-input:focus { outline: none; background: var(--navy-50); }

/* Currency input */
.cf-currency-wrap { position: relative; display: flex; align-items: center; }
.cf-currency-prefix {
  position: absolute; left: 14px;
  font-weight: 700; color: var(--navy-700); font-size: var(--fs-sm);
  pointer-events: none;
}
.cf-currency-suffix {
  position: absolute; right: 14px;
  font-size: 11px; font-weight: 500; color: var(--fg-faint); pointer-events: none;
}
.cf-currency-input {
  width: 100%; padding: 11px 72px 11px 26px;
  background: var(--bg-tint); border: 1.5px solid var(--border);
  border-radius: var(--r-md); color: var(--fg);
  font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 600;
  box-sizing: border-box; -moz-appearance: textfield;
  transition: border-color var(--dur-fast);
}
.cf-currency-input::-webkit-inner-spin-button,
.cf-currency-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.cf-currency-input:focus { outline: none; border-color: var(--navy-800); background: var(--white); }

.cf-hint { font-size: 12px; color: var(--fg-faint); margin: 0; line-height: 1.4; }
.cf-hint strong { color: var(--navy-700); font-weight: 700; }
.cf-warning {
  background: #FEF3C7; border: 1.5px solid #F59E0B;
  border-radius: var(--r-md); padding: 10px 14px;
  font-size: 12px; color: #92400E; line-height: 1.5;
}
.cf-divider { height: 1px; background: var(--border); margin: 2px 0; }
.cf-cta-btn { justify-content: center; width: 100%; }
.cf-footer-note {
  font-size: 11px; color: var(--fg-faint); margin: 0;
  line-height: 1.6; text-align: center;
}

/* ── Resultados (panel derecho) — azul muy claro ── */
.cica360-results {
  background: var(--bg-tint);
  padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
}

.cr-header { display: flex; flex-direction: column; gap: 3px; }
.cr-name {
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--navy-700);
}
.cr-subtitle { font-size: 12px; color: var(--fg-faint); }

/* Suma nominal */
.cr-nominal-block { padding-bottom: 20px; border-bottom: 1.5px solid var(--border); }
.cr-block-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-faint); margin-bottom: 8px;
}
.cr-nominal-value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 800; color: var(--navy-800);
  letter-spacing: -0.025em; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.cr-nominal-sub { font-size: 12px; color: var(--fg-faint); margin-top: 5px; }

/* Values grid */
.cr-section { display: flex; flex-direction: column; gap: 10px; }
.cr-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cr-value-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 12px;
}
.cr-value-card.highlight {
  background: var(--navy-100); border-color: var(--border-strong);
}
.cr-value-age { font-size: 11px; color: var(--fg-faint); margin-bottom: 4px; font-weight: 600; }
.cr-value-num {
  font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 700;
  color: var(--navy-900); letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}
.cr-value-card.highlight .cr-value-age { color: var(--navy-600); }
.cr-value-card.highlight .cr-value-num { color: var(--navy-800); }
.cr-ratio-line {
  font-size: 12px; color: var(--fg-subtle); padding-top: 2px;
}
.cr-ratio-line strong { color: var(--fg-muted); font-weight: 700; }
.cr-ratio-val { color: var(--gain) !important; font-weight: 800; }

/* Opciones */
.cr-option-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px;
}
.cr-option-name {
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900); margin-bottom: 3px;
}
.cr-option-desc { font-size: 11px; color: var(--fg-faint); line-height: 1.4; }
.cr-option-pmt-col { text-align: right; flex-shrink: 0; }
.cr-option-pmt {
  font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 800;
  color: var(--navy-800); white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.cr-option-total { font-size: 11px; color: var(--fg-faint); margin-top: 2px; white-space: nowrap; }

.cr-disclaimer {
  font-size: 11px; color: var(--fg-faint); line-height: 1.6;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}

/* ── Grid 2 opciones de liquidación ── */
.cr-options-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.cr-option-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 13px;
  display: flex; flex-direction: column; gap: 5px;
}
.cr-option-card.highlight {
  background: var(--navy-50); border-color: var(--border-strong);
}
.cr-option-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--navy-600);
}
.cr-option-card .cr-option-pmt {
  font-family: var(--font-mono); font-size: 22px; font-weight: 800;
  color: var(--navy-800); letter-spacing: -0.02em; white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.cr-option-name {
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900);
}
.cr-option-desc { font-size: 11px; color: var(--fg-faint); line-height: 1.4; }
.cr-option-total { font-size: 11px; color: var(--fg-faint); margin-top: 2px; }

/* ── Barra de retorno ── */
.cr-return-track-wrap { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.cr-return-labels {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--fg-faint);
}
.cr-return-labels strong { color: var(--fg-muted); font-weight: 700; }
.cr-gain-tag {
  font-size: 11px; font-weight: 800; color: var(--gain);
  background: var(--gain-bg); border-radius: var(--r-pill);
  padding: 2px 8px;
}
.cr-return-track {
  height: 6px; border-radius: var(--r-pill);
  background: var(--navy-100); overflow: hidden;
}
.cr-return-fill {
  height: 100%; background: var(--navy-600); border-radius: var(--r-pill);
  transition: width 0.4s var(--ease-out);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .cica360-wrap { grid-template-columns: 1fr; }
  .cica360-form { border-right: none; border-bottom: 1.5px solid var(--border); }
  .cr-nominal-value { font-size: 36px; }
}
@media (max-width: 600px) {
  .cica360-form,
  .cica360-results { padding: 24px 18px; }
  .cr-values-grid { grid-template-columns: 1fr 1fr; }
  .cr-values-grid .cr-value-card:last-child { display: none; }
  .cr-options-grid { grid-template-columns: 1fr; }
  .cr-option-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cr-option-pmt-col { text-align: left; }
}

/* ─── Responsive global ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 52px; }
  .hero-card { max-width: 480px; }
  .about-cards { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-cell + .pillar-cell::before { display: none; }
  .pillar-cell { padding: 16px 0; border-top: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-strip .container { grid-template-columns: 1fr; gap: 28px; }
  .footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 40px; }
  .section-title { font-size: 32px; }
  .header-inner { gap: 16px; }
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .hero-stat:nth-child(3) { display: none; }
  .edu-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
}
