/* =================================================================
   POCKETWYSE — styles.min.css
   SCOPE: Todo lo GLOBAL — tokens, reset, header, nav, footer, botones
   
   REGLA: Solo agrega aquí cosas que se usan en TODAS las páginas.
   ✅ Colores, fuentes, variables
   ✅ Header, footer, navegación
   ✅ Botones (.btn, .ghost)
   ✅ Reset base
   ❌ Nada específico de calculadoras → va en calculator.css
   ❌ Nada específico de artículos   → va en articles.css
   ❌ Nada específico del home       → va inline en index.html <style>
================================================================= */


/* -----------------------------------------------------------------
   1. SELF-HOSTED FONTS
----------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter28pt-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter28pt-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter18pt-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}


/* -----------------------------------------------------------------
   2. DESIGN TOKENS — cambia aquí, cambia en TODO el sitio
----------------------------------------------------------------- */
:root {
  /* Layout */
  --header-h:        68px;
  --page-pad-mobile: 16px;
  --page-pad-desktop:24px;

  /* Fondos */
  --bg:        #0b0c10;
  --bg-raised: #111217;
  --card:      #111217;
  --card-2:    #0e1015;

  /* Texto */
  --text:        #eef1f6;
  --text-strong: #ffffff;
  --text-dim:    #c3c9d6;
  --muted:       #aeb6c5;

  /* Marca */
  --brand:   #67e8f9;
  --brand-2: #60a5fa;
  --accent:  #32d9f3;
  --success: #34d399;
  --danger:  #fb7185;

  /* Bordes y efectos */
  --border:      #22252e;
  --ring:        rgba(103,232,249,.4);
  --shadow-soft: 0 8px 16px rgba(0,0,0,.45);

  /* Gradiente de marca */
  --brand-grad: linear-gradient(135deg, var(--brand), var(--brand-2));

  /* Glow de superficie */
  --surface-glow: radial-gradient(
    1000px 400px at 80% -10%,
    rgba(103,232,249,.12) 0%,
    transparent 60%
  );

  color-scheme: light dark;
}

/* Glow mejorado si el browser soporta oklab */
@supports (color: oklab(0 0 0)) {
  :root {
    --surface-glow: radial-gradient(
      1000px 400px at 80% -10%,
      color-mix(in oklab, var(--brand) 12%, transparent) 0%,
      transparent 60%
    );
  }
}

/* Tema claro */
@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f7f8fb;
    --bg-raised: #ffffff;
    --card:      #ffffff;
    --card-2:    #ffffff;
    --text:        #0b1220;
    --text-strong: #0b1220;
    --text-dim:    #334155;
    --muted:       #475569;
    --border:      #e5e7eb;
    --ring:        rgba(34,211,238,.4);
    --shadow-soft: 0 8px 16px rgba(2,6,23,.08);
    --surface-glow: radial-gradient(
      1000px 400px at 80% -10%,
      rgba(103,232,249,.16) 0%,
      transparent 60%
    );
  }
  @supports (color: oklab(0 0 0)) {
    :root {
      --surface-glow: radial-gradient(
        1000px 400px at 80% -10%,
        color-mix(in oklab, var(--brand) 16%, transparent) 0%,
        transparent 60%
      );
    }
  }
}

/* Responsive header height */
@media (max-width: 600px) {
  :root { --header-h: 64px; }
}


/* -----------------------------------------------------------------
   3. RESET / BASE
----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto,
               Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-align: left;
  padding-top: var(--header-h);
}
@media (max-width: 500px) {
  body { padding-top: 64px; }
}

p   { margin: 0.55rem 0; }
img { max-width: 100%; display: block; height: auto; }
a   { color: inherit; text-decoration: none; }
a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 3px;
}


/* -----------------------------------------------------------------
   4. LAYOUT — .container
   Úsalo en TODOS los wrappers de página
----------------------------------------------------------------- */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding-left:  var(--page-pad-mobile);
  padding-right: var(--page-pad-mobile);
}
@media (min-width: 768px) {
  .container {
    padding-left:  var(--page-pad-desktop);
    padding-right: var(--page-pad-desktop);
  }
}

/* Variantes de ancho para calculadoras y artículos */
.container.narrow,
.container.calc {
  width: min(1200px, 92vw);
  margin: 20px auto 40px;
}


/* -----------------------------------------------------------------
   5. ACCESIBILIDAD — visually-hidden, skip-link
----------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 12px; top: 12px;
  width: auto; height: auto;
  padding: 8px 12px;
  background: #fff; color: #000;
  border-radius: 6px;
  z-index: 10000;
}


/* -----------------------------------------------------------------
   6. HEADER / NAV
----------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--header-h);
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

/* Fallback sin backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
  .header { background: color-mix(in srgb, var(--bg) 96%, transparent); }
}
/* Sin blur en móvil (costo de rendimiento) */
@media (max-width: 480px) {
  .header { backdrop-filter: none; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .2px;
  color: var(--text-strong); font-size: 14px; line-height: 1.2;
}
.logo span { font-weight: 600; vertical-align: middle; }

.site-logo {
  height: 50px; width: auto; max-width: none;
  margin-right: 8px;
  display: inline-block; vertical-align: middle;
}
@media (max-width: 480px)  { .site-logo { height: 48px; } }
@media (min-width: 1024px) { .site-logo { height: 56px; } }

/* Menú principal */
.menu { display: flex; gap: 22px; align-items: center; }
.menu a {
  font-weight: 600; color: var(--text-dim);
  font-size: 14px; line-height: 1.3;
}
.menu a:hover { color: var(--text-strong); text-decoration: none; }

/* Selector de idioma */
.lang { display: flex; gap: 8px; align-items: center; }
.pill {
  padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-dim); font-size: 11px; line-height: 1.2;
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
}
.pill:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring);
}


/* -----------------------------------------------------------------
   7. BOTONES
   Agrega variantes aquí, nunca en archivos específicos
----------------------------------------------------------------- */
.btn,
.feature-btn,
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-width: max-content; min-height: 36px;
  padding: 10px 14px; border-radius: 10px; border: 0;
  background: var(--brand-grad); color: #03111a;
  font-weight: 800; font-size: 13px; line-height: 1.2;
  cursor: pointer; text-decoration: none;
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:hover,
.feature-btn:hover,
.cta-btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
  box-shadow: var(--shadow-soft);
}

.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-width: max-content; min-height: 36px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text); font-weight: 700; font-size: 13px; line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.ghost:hover {
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

/* Back button (calculadoras y artículos) */
.back-btn {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; font-size: 13px; font-weight: 600;
  text-decoration: none; line-height: 1.2;
  cursor: pointer; display: inline-flex; align-items: center;
}
.back-btn:hover {
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.back-btn:focus-visible,
.cta-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring), 0 0 0 1px var(--brand) inset;
  border-color: var(--brand);
  border-radius: 10px;
}


/* -----------------------------------------------------------------
   8. TIPOGRAFÍA GLOBAL — solo elementos base
   Las variantes específicas van en su archivo correspondiente
----------------------------------------------------------------- */
h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08; margin: 8px 0 6px;
  font-weight: 900; color: var(--text-strong);
  letter-spacing: -0.03em; max-width: 25ch; text-align: left;
}

/* Clases de texto reutilizables en todo el sitio */
.kicker {
  font-size: 12px; color: var(--text-dim);
  letter-spacing: .25px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 4px; line-height: 1.15;
}
.title {
  font-weight: 800; font-size: 18px; line-height: 1.25;
  color: var(--text-strong); letter-spacing: -0.02em; margin-bottom: 4px;
}
.desc {
  color: var(--text-dim); font-size: 14px;
  line-height: 1.42; margin-top: 4px; text-align: justify;
}
.eyebrow {
  display: inline-block; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-dim); font-size: 12px; line-height: 1.2;
  letter-spacing: .35px; background: rgba(255,255,255,.02);
}
.sub {
  font-size: clamp(16px, 2.4vw, 18px);
  color: var(--text-dim); max-width: 52ch;
  line-height: 1.42; margin: 0 0 12px;
  text-align: justify;
}


/* -----------------------------------------------------------------
   9. FOOTER
----------------------------------------------------------------- */
.footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  padding: 20px 0; color: var(--text);
  font-size: 14px; line-height: 1.5;
}
.footer-stack { display: flex; flex-direction: column; gap: 16px; }

.footer-line1 {
  color: var(--text-dim); font-size: 14px;
  line-height: 1.5; max-width: 1200px; text-align: justify;
}
.footer-line1 .line1-strong {
  color: var(--text-strong); font-weight: 800;
  margin-right: 6px; white-space: nowrap;
}
.footer-line1 a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer-line1 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 3px;
}

.footer-tools,
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: flex-start;
  column-gap: 10px; row-gap: 6px;
  font-size: 14px; line-height: 1.5; color: var(--text);
}
.footer-label { color: var(--text-dim); font-weight: 600; white-space: nowrap; }

.footer-tools a,
.footer-legal a { color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; }
.footer-tools a:hover,
.footer-legal a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 3px;
}
.footer-tools a:focus-visible,
.footer-legal a:focus-visible {
  outline: 0; box-shadow: 0 0 0 3px var(--ring); border-radius: 6px;
}

.footer-dot,
.footer-sep { color: var(--text-dim); font-weight: 400; user-select: none; white-space: nowrap; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 12px; text-align: center;
}
.footer-bottom small { color: var(--text-dim); font-size: 13px; line-height: 1.4; }

@media (max-width: 600px) {
  .footer,
  .footer-line1,
  .footer-tools,
  .footer-legal    { font-size: 13px; line-height: 1.45; }
  .footer-tools,
  .footer-legal    { column-gap: 8px; row-gap: 4px; }
  .footer-bottom small { font-size: 12px; }
}


/* -----------------------------------------------------------------
   10. FOCUS STATES GLOBALES
----------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring), 0 0 0 1px var(--brand) inset;
  border-color: var(--brand);
  border-radius: 10px;
}
.menu a:focus-visible {
  outline: 0; box-shadow: 0 0 0 3px var(--ring); border-radius: 6px;
}

/* Focus menos agresivo en táctil */
@media (pointer: coarse) {
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
}


/* -----------------------------------------------------------------
   11. REDUCED MOTION — hard cut global
----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =================================================================
   POCKETWYSE — calculator.css
   SCOPE: Todo lo compartido entre calculadoras

   REGLA: Solo agrega aquí cosas que se usan en 2+ calculadoras.
   ✅ Layout de calculadora (.calc-title, .inputs-grid, .field)
   ✅ KPIs (.kpi-row, .kpi)
   ✅ Tabla de amortización (.schedule-card, .schedule-wrapper)
   ✅ Botones de acción (.actions, .toggle-wrap)
   ✅ Disclaimers (.notice, .calc-defs)
   ✅ Chart (.chart-wrap, .chart-legend)
   ✅ Utilidades (.hidden)
   ✅ Print (@media print)
   ✅ Slots de AdSense (.ad-slot)
   ❌ Nada del home       → va inline en index.html
   ❌ Nada de artículos   → va en articles.css
================================================================= */


/* -----------------------------------------------------------------
   1. HERO DE CALCULADORA
----------------------------------------------------------------- */
.top {
  display: flex; align-items: center;
  justify-content: flex-end; gap: 12px;
  margin-bottom: 20px;
  margin-top: clamp(12px, 3vh, 24px);
  flex-wrap: nowrap;
}
@media (max-width: 500px) {
  .top         { flex-wrap: wrap; row-gap: 8px; margin-top: 18px; }
  .guide-logo  { order: 0; }
  .back-btn    { order: 1; margin-left: auto; }
}

.guide-logo {
  font-size: 16px; font-weight: 800; color: var(--text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1.2;
}
.mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand-grad);
}


/* -----------------------------------------------------------------
   2. CARD WRAPPER DE CALCULADORA
----------------------------------------------------------------- */
.mortgage-card,
.calc-card-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.calc-title {
  margin: 6px 0 4px;
  font-size: 26px; font-weight: 800; line-height: 1.18;
  color: var(--text-strong); letter-spacing: -0.03em;
  text-align: left;
}
.calc-sub {
  margin: 0 0 12px;
  color: var(--text-dim); font-size: 14px;
  line-height: 1.4; text-align: justify;
}


/* -----------------------------------------------------------------
   3. LOAN TYPE SELECTOR
----------------------------------------------------------------- */
.loan-type-selector {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.loan-type-btn {
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-dim);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .18s ease;
  line-height: 1.2;
}
.loan-type-btn:hover {
  border-color: var(--brand);
  color: var(--text);
}
.loan-type-btn.active {
  background: var(--brand-grad);
  color: #03111a;
  border-color: transparent;
}


/* -----------------------------------------------------------------
   4. INPUTS GRID
----------------------------------------------------------------- */
.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .inputs-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex; flex-direction: column;
  position: relative;
}
.field label {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; margin-bottom: 4px;
  color: var(--text-strong); font-size: 13px; line-height: 1.2;
  text-align: left;
}
.field input,
.field select {
  width: 100%; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--card-2); color: var(--text);
  font-size: 13px; line-height: 1.35;
  appearance: textfield; -webkit-appearance: textfield;
  text-align: left; outline: 0;
}
.field input:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { appearance: textfield; }

.hint {
  font-size: 12px; color: var(--muted);
  margin-top: 4px; line-height: 1.35;
}

.error {
  display: none; font-size: 12px;
  color: var(--danger); margin-top: 6px;
  line-height: 1.35; text-align: left;
}
.field[aria-invalid="true"] .error  { display: block; }
.field[aria-invalid="true"] input,
.field[aria-invalid="true"] select  {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(251,113,133,.28);
}
.field[aria-invalid="true"]::before {
  content: ""; display: block;
  height: 3px; background: var(--danger);
  border-radius: 6px 6px 0 0; margin-bottom: 6px;
}

label[data-tip] { position: relative; cursor: help; }
label[data-tip]::after {
  content: "(?)"; font-weight: 800; font-size: 12px; line-height: 1;
  color: var(--brand-2);
  border: 1px dashed color-mix(in srgb, var(--brand-2) 60%, var(--text));
  border-radius: 6px; padding: 0 4px; display: inline-block;
}
label[data-tip]:hover::before {
  content: attr(data-tip);
  position: absolute; z-index: 10;
  left: auto; right: 0; top: 100%;
  margin-top: 6px; max-width: 420px;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 12px; line-height: 1.35;
  white-space: normal; box-shadow: var(--shadow-soft);
}
label[data-tip]:hover::after { filter: brightness(1.1); }


/* -----------------------------------------------------------------
   5. BOTONERA DE CALCULADORA
----------------------------------------------------------------- */
.calc-buttons {
  display: flex; gap: 8px;
  align-items: flex-end; flex-wrap: wrap;
  grid-column: span 2;
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .calc-buttons { grid-column: span 1; }
}


/* -----------------------------------------------------------------
   6. KPIs
----------------------------------------------------------------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 600px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.kpi {
  padding: 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card-2, var(--card));
  text-align: left;
}
.kpi .label {
  color: var(--text-dim); font-size: 11px;
  line-height: 1.25; margin-bottom: 2px;
}
.kpi .value {
  font-size: 18px; font-weight: 800; line-height: 1.2;
  color: var(--text-strong); word-break: break-word;
}


/* -----------------------------------------------------------------
   7. ACCIONES (CSV, PDF, Print)
----------------------------------------------------------------- */
.actions {
  display: flex; gap: 10px;
  align-items: center; justify-content: flex-end;
  margin-top: 4px; flex-wrap: wrap;
}
@media (max-width: 500px) { .actions { justify-content: flex-start; } }

.toggle-wrap { margin-top: 16px; }


/* -----------------------------------------------------------------
   8. DISCLAIMERS Y TEXTOS LEGALES
----------------------------------------------------------------- */
.notice,
.disclaimer-top {
  font-size: 12px; line-height: 1.42;
  color: var(--text-dim); margin: 0 0 14px;
  max-width: 100%; text-align: justify !important;
  word-break: break-word; overflow-wrap: anywhere;
}

.calc-defs {
  font-size: 14px; line-height: 1.42;
  color: var(--text); margin: 16px 0; max-width: 100%;
  text-align: justify; word-break: break-word; overflow-wrap: anywhere;
}
.calc-defs p              { margin: 0 0 10px; }
.calc-defs p:last-child   { margin-bottom: 0; }
.calc-defs strong         { color: var(--text-strong); font-weight: 700; }


/* -----------------------------------------------------------------
   9. TABLA DE AMORTIZACIÓN
----------------------------------------------------------------- */
.schedule-card {
  margin-top: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  display: none;
}
.schedule-card.show { display: block; }

.schedule-wrapper {
  max-height: 340px; overflow: auto;
  border: 1px solid var(--border); border-radius: 10px;
  margin-top: 8px;
}

.amort-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; min-width: 600px;
  text-align: right; color: var(--text);
}
.amort-table thead th {
  border-bottom: 1px solid var(--border);
  padding: 10px; text-align: right;
  font-weight: 600; color: var(--text-strong);
  position: sticky; top: 0;
  background-color: var(--card); z-index: 1;
}
.amort-table thead th:first-child { text-align: left; }
.amort-table tbody td {
  border-bottom: 1px solid var(--border);
  padding: 10px; text-align: right;
  color: var(--text); line-height: 1.4;
}
.amort-table tbody td:first-child { text-align: left; }


/* -----------------------------------------------------------------
   10. CHART
----------------------------------------------------------------- */
.chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  margin: 24px 0 8px;
}
.chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.chart-legend i {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.leg-principal { background: var(--brand); }
.leg-interest  { background: var(--accent); }
.leg-deposits  { background: var(--brand-2); }


/* -----------------------------------------------------------------
   11. UTILIDADES
----------------------------------------------------------------- */
.hidden { display: none !important; }


/* -----------------------------------------------------------------
   12. PRINT
----------------------------------------------------------------- */
@media print {
  .header, .top, .calc-buttons, .actions, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .mortgage-card { box-shadow: none; border: 1px solid #ddd; }
  .kpi { border: 1px solid #ddd; }
  .schedule-card { display: block !important; }
}


/* -----------------------------------------------------------------
   13. AD SLOTS — AdSense
----------------------------------------------------------------- */
.ad-slot {
  width: 100%; min-height: 90px;
  background: rgba(255,255,255,.02);
  border: 1px dashed var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 11px;
  letter-spacing: .3px; text-transform: uppercase;
  margin: 20px 0;
}
.ad-slot:has(ins.adsbygoogle) {
  background: transparent;
  border: none;
}


/* -----------------------------------------------------------------
   14. GRID DE SECCIÓN
----------------------------------------------------------------- */
.section { padding: 28px 0; }
.section h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin: 2px 0 10px; line-height: 1.12;
  font-weight: 800; color: var(--text-strong);
  letter-spacing: -0.03em; max-width: 36ch; text-align: left;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; align-items: start;
}
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

.mini,
.mini-tier3 {
  border: 1px solid var(--border); border-radius: 14px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 16px 14px; position: relative;
  background: var(--card-2);
}
.mini-tier3 {
  background: var(--card);
  background-image: radial-gradient(
    800px 400px at 80% -20%,
    rgba(103,232,249,.08) 0%, transparent 60%
  );
}

.cta-zone {
  margin-top: 28px; border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  background: rgba(255,255,255,.02); text-align: center;
}
.cta-head {
  font-size: 15px; font-weight: 700; margin: 0 0 6px;
  color: var(--text-strong); line-height: 1.3;
  letter-spacing: -0.02em; text-align: left;
}
.cta-text {
  font-size: 13px; color: var(--text-dim);
  margin: 0 0 12px;  line-height: 1.42;
  margin-left: auto; margin-right: auto; text-align: justify;
}
.cta-links {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 12px; margin: 12px 0;
}
.small-note {
  font-size: 11.5px; line-height: 1.35;
  color: var(--text-dim); margin-top: 20px; text-align: center;
}

/* =================================================================
   POCKETWYSE — home.css
   SCOPE: Estilos exclusivos del home (index.html)

   REGLA: Solo agrega aquí cosas que son ÚNICAS del home.
   ✅ Hero, animaciones de entrada
   ✅ Calculator cards del home (.calc-card)
   ✅ Feature strip, stats row
   ✅ Email capture
   ✅ Guide cards (.guide-card)
   ✅ FAQ accordion
   ✅ Ad slots del home
   ❌ Nada global        → va en styles.min.css
   ❌ Nada de calculadoras → va en calculator.css
   ❌ Nada de artículos   → va en articles.css
================================================================= */


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  opacity: 0;
  animation: fadeUp .55s ease forwards;
}
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .15s; }
.hero-content > *:nth-child(3) { animation-delay: .22s; }
.hero-content > *:nth-child(4) { animation-delay: .30s; }
.hero-content > *:nth-child(5) { animation-delay: .38s; }
.hero-content > *:nth-child(6) { animation-delay: .46s; }

.card-hero {
  animation: fadeUp .65s ease .2s forwards;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .card-hero { animation: none; opacity: 1; }
}


.card-hero {
  background: var(--card);
  background-image: var(--surface-glow);
  border: 1px solid var(--border);
  padding: 22px; border-radius: 18px;
  min-width: 0; margin-top: 0;
  will-change: transform; transform: translateZ(0);
}

.loan-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.loan-pill {
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  border: 1px solid var(--border);
  color: var(--brand);
  background: rgba(103,232,249,.07);
  line-height: 1.3;
}

.result-row {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.result-row:last-child { border-bottom: none; }
.result-row .label  { color: var(--text-dim); }
.result-row .value  { font-weight: 700; color: var(--text-strong); }
.result-row .value.accent { color: var(--brand); }



.trust-badges {
  display: flex; flex-wrap: wrap;
  gap: 8px; margin: 18px 0 0;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; color: var(--text-dim);
  background: rgba(255,255,255,.025); line-height: 1.3;
}
.trust-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
}


.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.pw-section { padding: 56px 0; }



.section-header { margin-bottom: 28px; }
.section-header .sh-kicker {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--brand); margin-bottom: 6px;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900; color: var(--text-strong);
  letter-spacing: -.03em; line-height: 1.1;
  margin: 0 0 8px;
}
.section-header .sh-sub {
  font-size: 15px; color: var(--text-dim);
  line-height: 1.5; max-width: 100%;
  text-align: justify;
}


.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 768px) { .feature-strip { grid-template-columns: 1fr; } }

.feature-item {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.feature-item .fi-icon  { font-size: 24px; margin-bottom: 10px; }
.feature-item .fi-title {
  font-size: 15px; font-weight: 800;
  color: var(--text-strong); margin-bottom: 6px; letter-spacing: -.02em;
}
.feature-item .fi-desc  { font-size: 13px; color: var(--text-dim); line-height: 1.5; }


.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 40px;
}
@media (max-width: 600px) { .stats-row { grid-template-columns: 1fr; } }

.stat-item {
  text-align: center; padding: 24px 16px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card);
}
.stat-item .stat-num {
  font-size: 36px; font-weight: 900;
  letter-spacing: -.04em; line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat-item .stat-label {
  font-size: 13px; color: var(--text-dim);
  margin-top: 6px; line-height: 1.4;
}


.calcs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .calcs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .calcs-grid { grid-template-columns: 1fr; } }

.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; position: relative; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
/* Glow radial que sigue al mouse */
.calc-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(103,232,249,.06), transparent 60%
  );
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.calc-card:hover::before { opacity: 1; }
.calc-card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  text-decoration: none;
}

.calc-card .card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0;
}
.calc-card .card-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.calc-card .card-title {
  font-size: 16px; font-weight: 800;
  color: var(--text-strong); line-height: 1.25; letter-spacing: -.02em;
}
.calc-card .card-desc {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.45; flex: 1;
}
.calc-card .card-arrow {
  font-size: 12px; color: var(--brand);
  font-weight: 700; margin-top: auto;
}

/* Loan type tags dentro de cada card */
.loan-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.loan-tag {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim); line-height: 1.4;
}



.ad-slot {
  width: 100%; min-height: 90px;
  background: rgba(255,255,255,.02);
  border: 1px dashed var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 11px;
  letter-spacing: .3px; text-transform: uppercase;
  margin: 20px 0;
}
.ad-slot:has(ins.adsbygoogle) {
  background: transparent; border: none;
}


.email-capture {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  text-align: left; position: relative; overflow: hidden;
}
.email-capture::before {
  content: '';
  position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(103,232,249,.12) 0%, transparent 70%);
  pointer-events: none;
}
.email-capture .ec-kicker {
  font-size: 11px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
  text-align: left;
}
.email-capture .ec-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900; color: var(--text-strong);
  letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px;
  text-align: left;
}
.email-capture .ec-sub {
  font-size: 15px; color: var(--text-dim);
  max-width: 100%; margin: 0 0 24px; line-height: 1.5;
  text-align: justify;
}
.email-capture .ec-fine {
  font-size: 11px; color: var(--muted); margin-top: 8px;
  text-align: left;
}

.email-form {
  display: flex; gap: 8px;
  max-width: 480px; margin: 0 0 12px;
  flex-wrap: wrap; justify-content: flex-start;
}
.email-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color .2s;
}
.email-form input[type="email"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}
.email-form input[type="email"]::placeholder { color: var(--muted); }



.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 700px) { .guides-grid { grid-template-columns: 1fr; } }

.guide-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.guide-card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  transform: translateY(-2px); text-decoration: none;
}
.guide-card .gc-tag {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px; color: var(--brand);
}
.guide-card .gc-title {
  font-size: 16px; font-weight: 800;
  color: var(--text-strong); letter-spacing: -.02em; line-height: 1.25;
}
.guide-card .gc-desc { font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.guide-card .gc-arrow { font-size: 12px; color: var(--brand); font-weight: 700; margin-top: 4px; }



.faq-list { display: flex; flex-direction: column; }

.faq-item-new { border-bottom: 1px solid var(--border); }
.faq-item-new:first-child { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%; background: none; border: none;
  padding: 16px 0;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  cursor: pointer; font-size: 15px; font-weight: 700;
  color: var(--text-strong); text-align: left; line-height: 1.35;
}
.faq-q .faq-chevron {
  width: 20px; height: 20px;
  border: 1px solid var(--border); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; color: var(--text-dim); flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.faq-item-new.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--brand); color: #03111a; border-color: var(--brand);
}

.faq-a {
  display: none;
  padding: 0 0 16px;
  font-size: 14px; color: var(--text-dim);
  line-height: 1.55; max-width: 100%;
}
.faq-item-new.open .faq-a { display: block; }


.hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(103,232,249,.12) 0%, transparent 60%),
    var(--bg);
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start; 
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}


@media (max-width: 640px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card-hero {
    margin-top: 0;
  }
}

/* CTA buttons */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Quick picker */
.searchbar {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.searchbar select {
  flex: 1; min-width: 220px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card); color: var(--text);
  font-size: 14px; line-height: 1.4; outline: 0;
}
.searchbar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}


/* -----------------------------------------------------------------
   EYEBROW — centrado solo en el hero del home
----------------------------------------------------------------- */
.hero-content .eyebrow {
  text-align: center;
}

/* View all guides button */
.guides-view-all {
  text-align: center;
  margin-top: 40px;
}

/* =================================================================
   POCKETWYSE — articles.css
   SCOPE: Páginas de artículos y guías únicamente

   REGLA: Solo agrega aquí cosas de páginas de contenido/guías.
   ✅ Artículos (.article-card, .article-title, headings)
   ✅ TOC, callouts, notas
   ✅ Tablas de comparación (compare-box, fixed-variable, loan-type)
   ❌ Nada del home       → va inline en index.html
   ❌ Nada de calculadoras → va en calculator.css

   CÓMO AGREGAR UN ARTÍCULO NUEVO:
   1. Crea guides/nombre.html
   2. Enlaza styles.min.css y articles.css
   3. Si necesitas una tabla nueva, agrega la clase aquí
   4. Nunca copies estas clases al archivo global
================================================================= */


/* -----------------------------------------------------------------
   0. BACK BUTTON & TOP BAR
----------------------------------------------------------------- */
.top {
  display: flex; align-items: center;
  justify-content: flex-end; gap: 12px;
  margin-bottom: 20px;
  margin-top: clamp(12px, 3vh, 24px);
  flex-wrap: nowrap;
}
@media (max-width: 500px) {
  .top      { flex-wrap: wrap; row-gap: 8px; margin-top: 18px; }
  .back-btn { order: 1; margin-left: auto; }
}

/* -----------------------------------------------------------------
   1. LAYOUT DE ARTÍCULO
----------------------------------------------------------------- */
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.article-card * { text-align: justify; }

/* word-break para celdas y texto largo */
.article-card p,
.article-card li,
.article-card td,
.article-card .method-cell,
.article-card .compare-cell,
.article-card .loan-cell,
.article-card .ref-cell {
  word-break: break-word; overflow-wrap: anywhere;
}

.article-title {
  font-size: 26px; font-weight: 800; line-height: 1.18;
  margin: 6px 0; color: var(--text-strong);
  letter-spacing: -0.03em; text-align: justify;
  max-width: max-content;
}
.subtitle {
  color: var(--text-dim); margin: 0 0 18px;
  font-size: 14px; line-height: 1.42;
}

/* Headings dentro del artículo */
.section-heading {
  margin-top: 24px; margin-bottom: 6px;
  font-size: 19px; font-weight: 700; line-height: 1.28;
  color: var(--text-strong); letter-spacing: -0.02em;
  scroll-margin-top: 80px; word-break: break-word; text-align: left;
}
.subheading {
  margin-top: 18px; margin-bottom: 6px;
  font-size: 15px; font-weight: 600; line-height: 1.35;
  color: var(--text-strong); scroll-margin-top: 80px;
  word-break: break-word; text-align: left;
}

/* Párrafos y listas */
.article-card p  { font-size: 14px; margin: 0 0 12px; color: var(--text); line-height: 1.42; }
.article-card ul,
.article-card ol { margin: 0 0 14px 20px; padding: 0; font-size: 14px; color: var(--text); line-height: 1.42; }
.article-card li { margin-bottom: 8px; }

.article-note {
  font-size: 11.5px; line-height: 1.35;
  color: var(--text-dim); margin: 0 0 18px;
}


/* -----------------------------------------------------------------
   2. TOC — Tabla de contenidos
----------------------------------------------------------------- */
.toc {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; background: rgba(255,255,255,.02);
  margin-bottom: 18px;
}
.toc-heading {
  margin: 0 0 6px; font-size: 14px; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.2;
}
.toc a {
  display: block; font-size: 13px; color: var(--text);
  text-decoration: none; padding: 3px 0; line-height: 1.4;
}
.toc a:hover { text-decoration: underline; }


/* -----------------------------------------------------------------
   3. CALLOUT — cajas de destaque
----------------------------------------------------------------- */
.callout {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 18px;
  background: rgba(103,232,249,.05);
}
.callout-title {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.03em;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; margin-bottom: 8px; line-height: 1.2;
}


/* -----------------------------------------------------------------
   4. TABLA COMPARATIVA — 2 columnas (compare-box)
----------------------------------------------------------------- */
.compare-box {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--card);
  font-size: 13px; margin: 14px 0 18px;
  text-align: left; color: var(--text); line-height: 1.42;
}
.compare-box-header {
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.03);
  font-weight: 600; border-bottom: 1px solid var(--border);
  text-align: center; color: var(--text-strong);
}
.compare-box-header .compare-cell {
  padding: 12px; border-right: 1px solid var(--border);
}
.compare-box-header .compare-cell:last-child { border-right: none; }

.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row .compare-cell {
  border-bottom: 1px solid var(--border);
  border-right:  1px solid var(--border);
  padding: 10px 12px; color: var(--text);
  line-height: 1.4; text-align: left;
}
.compare-row .compare-cell:last-child { border-right: none; }
.compare-row:last-of-type .compare-cell { border-bottom: none; }

@media (max-width: 700px) {
  .compare-box-header { display: none; }
  .compare-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--border); border-radius: 12px;
    background: rgba(255,255,255,.02); margin-bottom: 12px;
  }
  .compare-row .compare-cell { border: none; padding: 10px 16px; }
  .compare-row .compare-cell:first-child {
    font-weight: 600; background: rgba(255,255,255,.04);
    border-bottom: 1px solid var(--border); color: var(--text-strong);
  }
}


/* -----------------------------------------------------------------
   5. TABLA FIXED VS VARIABLE — 2 columnas
----------------------------------------------------------------- */
.fixed-variable-table {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--card);
  font-size: 13px; margin: 14px 0 18px; text-align: left;
}
.fixed-variable-header {
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.03);
  font-weight: 700; border-bottom: 1px solid var(--border);
  text-align: center; color: var(--text-strong);
}
.fixed-variable-header div { padding: 12px; border-right: 1px solid var(--border); }
.fixed-variable-header div:last-child { border-right: none; }

.fixed-variable-row { display: grid; grid-template-columns: 1fr 1fr; }
.fixed-variable-cell {
  padding: 10px 12px; color: var(--text); line-height: 1.4;
  border-right:  1px solid var(--border);
  border-bottom: 1px solid var(--border); text-align: left;
}
.fixed-variable-cell:last-child { border-right: none; }
.fixed-variable-row:last-of-type .fixed-variable-cell { border-bottom: none; }

@media (max-width: 800px) {
  .fixed-variable-header { display: none; }
  .fixed-variable-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--border); border-radius: 12px;
    background: rgba(255,255,255,.02); margin-bottom: 12px;
  }
  .fixed-variable-cell { border: none; padding: 8px 16px; }
  .fixed-variable-cell:first-child {
    font-weight: 700; background: rgba(255,255,255,.04);
    border-bottom: 1px solid var(--border); color: var(--text-strong);
  }
  .fixed-variable-row:last-of-type .fixed-variable-cell:first-child {
    border-bottom: 1px solid var(--border);
  }
}


/* -----------------------------------------------------------------
   6. TABLA 3 COLUMNAS — tipo de loans, referencias, etc.
----------------------------------------------------------------- */
.loan-type-table3 {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--card);
  font-size: 13px; margin: 14px 0 18px; text-align: left;
}
.loan-type3-header {
  display: grid; grid-template-columns: 1fr 1.5fr 2fr;
  background: rgba(255,255,255,.03);
  font-weight: 600; border-bottom: 1px solid var(--border);
  color: var(--text-strong);
}
.loan-type3-header .loan-type3-cell { padding: 10px 12px; border-right: 1px solid var(--border); }
.loan-type3-header .loan-type3-cell:last-child { border-right: none; }

.loan-type3-row { display: grid; grid-template-columns: 1fr 1.5fr 2fr; }
.loan-type3-cell {
  padding: 10px 12px; color: var(--text); line-height: 1.4;
  border-right:  1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.loan-type3-cell:last-child { border-right: none; }
.loan-type3-row:last-of-type .loan-type3-cell { border-bottom: none; }

@media (max-width: 800px) {
  .loan-type3-header { display: none; }
  .loan-type3-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--border); border-radius: 12px;
    background: rgba(255,255,255,.02); margin-bottom: 12px;
  }
  .loan-type3-cell { border: none; padding: 8px 16px; }
  .loan-type3-cell:first-child {
    font-weight: 700; background: rgba(255,255,255,.04);
    border-bottom: 1px solid var(--border); color: var(--text-strong);
  }
}

.loan-head,
.ref-head {
  display: grid; grid-template-columns: 1fr 1.5fr 2fr;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  font-weight: 600; color: var(--text-strong);
}
.loan-cell,
.ref-cell {
  padding: 10px 12px; border-right: 1px solid var(--border);
  word-break: break-word; text-align: left;
}
.loan-cell:last-child,
.ref-cell:last-child { border-right: none; }

.loan-row,
.ref-row {
  display: grid; grid-template-columns: 1fr 1.5fr 2fr;
  border-bottom: 1px solid var(--border);
}
.loan-row:last-of-type,
.ref-row:last-of-type { border-bottom: none; }

@media (max-width: 800px) {
  .loan-head,
  .ref-head { display: none; }
  .loan-row,
  .ref-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--border); border-radius: 12px;
    background: rgba(255,255,255,.02); margin-bottom: 12px;
  }
  .loan-row .loan-cell,
  .ref-row  .ref-cell  { border: none; padding: 10px 16px; }
  .loan-row .loan-cell:first-child,
  .ref-row  .ref-cell:first-child {
    font-weight: 700; background: rgba(255,255,255,.04);
    border-bottom: 1px solid var(--border); color: var(--text-strong);
  }
}


/* -----------------------------------------------------------------
   7. TABLA COMPARATIVA 3 COLUMNAS — sección #comparison
----------------------------------------------------------------- */
#comparison .compare-box-header {
  grid-template-columns: 1fr 1fr 1fr;
  text-align: left;
}
#comparison .compare-row {
  grid-template-columns: 1fr 1fr 1fr;
}
#comparison .compare-row .compare-cell {
  border-bottom: 1px solid var(--border);
}

@media (max-width: 700px) {
  #comparison .compare-row .compare-cell:last-child { border-bottom: none; }
  #comparison .compare-row:last-of-type { margin-bottom: 0; }
}

/* -----------------------------------------------------------------
   Tabla 3 columnas genérica (.compare-box-3col)
----------------------------------------------------------------- */
.compare-box-3col .compare-box-header,
.compare-box-3col .compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.compare-box-3col .compare-box-header .compare-cell,
.compare-box-3col .compare-row .compare-cell {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.compare-box-3col .compare-box-header .compare-cell:last-child,
.compare-box-3col .compare-row .compare-cell:last-child {
  border-right: none;
}
.compare-box-3col .compare-row:last-of-type .compare-cell {
  border-bottom: none;
}
@media (max-width: 600px) {
  .compare-box-3col .compare-box-header { display: none; }
  .compare-box-3col .compare-row { grid-template-columns: 1fr; }
  .compare-box-3col .compare-row .compare-cell { border: none; padding: 8px 16px; }
  .compare-box-3col .compare-row .compare-cell:first-child { font-weight: 600; padding-top: 14px; }
  .compare-box-3col .compare-row:last-of-type .compare-cell:last-child { border-bottom: none; }
}

/* -----------------------------------------------------------------
   Tabla 4 columnas genérica (.compare-box-4col)
----------------------------------------------------------------- */
.compare-box-4col .compare-box-header,
.compare-box-4col .compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.compare-box-4col .compare-box-header .compare-cell,
.compare-box-4col .compare-row .compare-cell {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.compare-box-4col .compare-box-header .compare-cell:last-child,
.compare-box-4col .compare-row .compare-cell:last-child {
  border-right: none;
}
.compare-box-4col .compare-row:last-of-type .compare-cell {
  border-bottom: none;
}
@media (max-width: 700px) {
  .compare-box-4col .compare-box-header { display: none; }
  .compare-box-4col .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-box-4col .compare-row .compare-cell { border-bottom: 1px solid var(--border); padding: 8px 12px; }
  .compare-box-4col .compare-row .compare-cell:first-child { font-weight: 600; grid-column: 1 / -1; background: var(--card); }
  .compare-box-4col .compare-row:last-of-type .compare-cell:last-child { border-bottom: none; }
}

/* consecutive compare-box spacing */
.compare-box-mt { margin-top: 12px; }


/* -----------------------------------------------------------------
   CTA ZONE — calculadoras al final de cada artículo
----------------------------------------------------------------- */
.cta-zone {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(103,232,249,.04);
}
.cta-head {
  font-size: 17px; font-weight: 800;
  color: var(--text-strong); letter-spacing: -.02em;
  margin: 0 0 8px;
}
.cta-text {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.5; margin: 0 0 18px;
}
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.cta-links .cta-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #0b0c10;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.cta-links .cta-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
  text-decoration: none;
}
.small-note {
  font-size: 5px; color: var(--text-dim);
  line-height: 1.4; margin: 0;
}

/* =================================================================
   POCKETWYSE — guides-hub.css
   SCOPE: Página /guides/index.html únicamente
================================================================= */

/* -----------------------------------------------------------------
   PAGE HEADER
----------------------------------------------------------------- */
.hub-header {
  padding: clamp(32px, 6vh, 64px) 0 40px;
  text-align: center;
}
.hub-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--text-strong);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 8px 0 12px;
}
.hub-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* -----------------------------------------------------------------
   CATEGORY SECTIONS
----------------------------------------------------------------- */
.hub-category {
  margin-bottom: 52px;
}
.hub-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.hub-cat-icon {
  font-size: 22px;
  line-height: 1;
}
.hub-cat-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -.02em;
  margin: 0;
}

/* -----------------------------------------------------------------
   "COMING SOON" CARD VARIANT
----------------------------------------------------------------- */
.guide-card--soon {
  opacity: .55;
  pointer-events: none;
  cursor: default;
}
.guide-card--soon:hover {
  transform: none;
  border-color: var(--border);
}
.gc-arrow--soon {
  color: var(--muted) !important;
  font-style: italic;
  font-weight: 500 !important;
}

/* -----------------------------------------------------------------
   BOTTOM CTA
----------------------------------------------------------------- */
.hub-cta {
  text-align: center;
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.hub-cta-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 16px;
}

