/* ==========================================================================
   CALCULARCUOTA.COM — STYLESHEET PRINCIPAL (NIVEL AAA+)
   Diseño: Bento Grid Glassmorphic, Mobile-First, CLS = 0, Modo Oscuro/Claro
   ========================================================================== */

:root {
  /* Paleta Modo Oscuro (Por Defecto) */
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(31, 41, 55, 0.95);
  --bg-subtle: #1f2937;
  --bg-input: #1e293b;

  --text-main: #f9fafb;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;

  --color-primary: #38bdf8;
  --color-primary-dark: #0284c7;
  --color-primary-glow: rgba(56, 189, 248, 0.25);

  --color-success: #34d399;
  --color-danger: #f87171;
  --color-warning: #fbbf24;

  --color-chart-balance: #38bdf8;
  --color-chart-capital: #34d399;
  --color-chart-interest: #f87171;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #f8fafc;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #0284c7;

  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-primary-glow: rgba(2, 132, 199, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-accent {
  color: var(--color-primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.currency-selector select {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.currency-selector select:hover {
  border-color: var(--color-primary);
}

.btn-theme {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-theme:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ==========================================================================
   ESPACIOS PUBLICITARIOS RESERVADOS (CLS = 0)
   ========================================================================== */

.ad-slot-leaderboard {
  max-width: 1280px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  width: 100%;
}

.ad-placeholder-leaderboard {
  min-height: 90px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-badge {
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.ad-text-placeholder {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   MAIN CONTAINER & HERO
   ========================================================================== */

.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  width: 100%;
  flex: 1;
}

.hero-section {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   BENTO GRID SYSTEM
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .bento-controls {
    grid-column: span 6;
  }

  .bento-result {
    grid-column: span 6;
  }

  .bento-chart {
    grid-column: span 8;
  }

  .bento-ad-card {
    grid-column: span 4;
  }

  .bento-extra {
    grid-column: span 12;
  }

  .bento-table-card {
    grid-column: span 12;
  }

  .bento-cta-card {
    grid-column: span 12;
  }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.bento-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.card-title svg {
  color: var(--color-primary);
}

.preset-group {
  display: flex;
  gap: 0.35rem;
}

.btn-preset {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-preset.active, .btn-preset:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.badge-tag {
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-success);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-tag-accent {
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-primary);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================================================
   CONTROLES FORMULARIO BENTO 1
   ========================================================================== */

.controls-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-label-row label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-display-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.input-display-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
}

.input-display-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: right;
  width: 100px;
}

.currency-symbol, .percent-symbol, .term-unit {
  color: var(--color-primary);
  font-weight: 800;
  margin: 0 0.25rem;
}

.term-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-pills {
  display: flex;
  background: var(--bg-input);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.pill {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill.active {
  background: var(--color-primary);
  color: #fff;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-primary-glow);
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select:focus {
  border-color: var(--color-primary);
}

.control-help {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ==========================================================================
   BENTO 2: RESULTADOS PRINCIPALES
   ========================================================================== */

.result-hero-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(2, 132, 199, 0.04));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.result-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.35rem;
}

.result-number-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.currency-hero {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.result-value {
  font-size: 3.25rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1;
}

.result-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.metric-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.color-primary { color: var(--color-primary); }
.color-success { color: var(--color-success); }
.color-danger { color: var(--color-danger); }

.result-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-action {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-action:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-primary);
}

/* ==========================================================================
   BENTO 3: GRÁFICO CANVAS
   ========================================================================== */

.chart-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.color-balance { background: var(--color-chart-balance); }
.color-capital { background: var(--color-chart-capital); }
.color-interest { background: var(--color-chart-interest); }

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 10;
  font-family: var(--font-mono);
}

/* ==========================================================================
   BENTO 4: AMORTIZACIÓN ANTICIPADA
   ========================================================================== */

.extra-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.extra-controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 600px) {
  .extra-controls-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.extra-results-banner {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.extra-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.extra-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.extra-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* ==========================================================================
   BENTO 5: TABLA DE AMORTIZACIÓN
   ========================================================================== */

.table-responsive {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.amortization-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.amortization-table th, .amortization-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.amortization-table th {
  background: var(--bg-subtle);
  position: sticky;
  top: 0;
  z-index: 5;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text-muted);
}

.amortization-table th:first-child, .amortization-table td:first-child {
  text-align: left;
}

.amortization-table tbody tr:hover {
  background: var(--bg-card-hover);
}

/* ==========================================================================
   BENTO 6: AD CARD RESERVADA (300×250)
   ========================================================================== */

.bento-ad-card {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
}

.ad-placeholder-bento {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ==========================================================================
   BENTO 7: BANNER CTA AFILIACIÓN
   ========================================================================== */

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-icon {
  width: 54px;
  height: 54px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-text {
  flex: 1;
  min-width: 250px;
}

.cta-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.cta-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px var(--color-primary-glow);
  transition: transform var(--transition-fast);
}

.btn-cta:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIÓN EDUCATIVA SEO (HELPFUL CONTENT E-E-A-T)
   ========================================================================== */

.educational-section {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.edu-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.edu-header h2 {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.edu-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.edu-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.edu-card p, .edu-card ul {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.edu-card ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.formula-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
  text-align: center;
}

.formula-box code {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.table-mini-responsive {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.table-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.table-mini th, .table-mini td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.table-mini th {
  color: var(--text-muted);
  font-weight: 700;
}

/* FAQ */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-heading {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.faq-question {
  padding: 1.15rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--color-primary);
  font-weight: 400;
  transition: transform var(--transition-fast);
}

details[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.25rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand {
  max-width: 380px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 1.5rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODO IMPRESIÓN LIMPIO (PARA BANCO)
   ========================================================================== */

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .navbar, .ad-slot-leaderboard, .bento-ad-card, .btn-action, .preset-group,
  .btn-cta, .btn-theme, .currency-selector, .educational-section, .site-footer {
    display: none !important;
  }

  .main-container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .bento-grid {
    display: block !important;
  }

  .bento-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    margin-bottom: 1.5rem !important;
    page-break-inside: avoid;
  }

  .table-responsive {
    max-height: none !important;
    overflow: visible !important;
  }
}
