/* ===== CSS Variables ===== */
:root {
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-light: #14B8A6;
  --primary-bg: #F0FDFA;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --success: #059669;
  --bg: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-dark: #0F172A;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --error: #EF4444;
  --transition: 0.3s ease;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Evitar scroll horizontal en movil (elementos decorativos que sobresalen, etc.) */
html, body { max-width: 100%; overflow-x: hidden; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.logo svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
  color: #fff !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(160deg, #F0FDFA 0%, #F8FAFC 40%, #FFFBEB 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-25px) scale(1.03); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-benefits {
  list-style: none;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  max-width: 540px;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.hero-benefits li svg {
  width: 22px;
  height: 22px;
  color: var(--success);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero-benefits { grid-template-columns: 1fr; }
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
  border: 2px solid #fff;
}

.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(1) { background: var(--primary); }
.avatars span:nth-child(2) { background: #6366F1; }
.avatars span:nth-child(3) { background: var(--accent); }
.avatars span:nth-child(4) { background: #EC4899; }
.avatars span:nth-child(5) { background: #8B5CF6; }

.hero-social p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-social p strong { color: var(--text); }

/* ===== Calculator ===== */
.calculator-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.calculator-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}

.slider-group { margin-bottom: 24px; }

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slider-label span {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.slider-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.slider-range {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.slider-range span {
  font-size: 0.75rem;
  color: var(--text-light);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(13,148,136,0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(13,148,136,0.35);
}

input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(13,148,136,0.2);
  cursor: pointer;
}

.calc-summary {
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px 0;
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.calc-summary-row span:first-child { color: var(--text-muted); }
.calc-summary-row span:last-child { font-weight: 700; }

.calc-summary-row.total {
  border-top: 1px solid rgba(13,148,136,0.15);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1rem;
}

.calc-summary-row.total span:last-child {
  color: var(--primary);
  font-size: 1.1rem;
}

.btn-primary,
.article-content a.btn-primary {
  display: block;
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), #E88E00);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  text-align: center;
  font-family: inherit;
}

.btn-primary:hover,
.article-content a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.35);
  color: #fff;
  text-decoration: none;
}

.btn-primary:active { transform: translateY(0); }

.calc-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.calc-security span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.calc-security svg { width: 14px; height: 14px; }

/* ===== Stats Bar ===== */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  padding-bottom: 40px;
}

.stats-bar .container {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 48px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Trust Bar ===== */
.trust-bar {
  padding: 32px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-badge svg { width: 22px; height: 22px; color: var(--primary); }

/* ===== Section Common ===== */
.section {
  padding: 80px 0;
}

.section-alt { background: var(--bg-light); }

.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Advantages ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.advantage-icon svg { width: 26px; height: 26px; color: var(--primary); }

.advantage-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Comparison Table ===== */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-width: 700px;
}

.comparison-table thead th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.comparison-table tbody td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table tbody tr:hover { background: var(--primary-bg); }

.lender-name {
  font-weight: 700;
  color: var(--text);
}

.badge-free {
  display: inline-block;
  background: #ECFDF5;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.table-btn,
.article-content .table-btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent), #E88E00);
  color: #fff;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.table-btn:hover,
.article-content .table-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
  color: #fff;
  text-decoration: none;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-author-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
}

.testimonial-author-info span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  gap: 16px;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.btn-white {
  display: inline-block;
  padding: 16px 40px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  font-family: inherit;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--primary);
}

/* ===== Representative Example ===== */
.example-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.example-tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.example-table {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.example-table h4 {
  padding: 16px 20px;
  background: var(--primary-bg);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
}

.example-table table {
  width: 100%;
  border-collapse: collapse;
}

.example-table td {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.example-table tr:last-child td { border-bottom: none; }
.example-table td:first-child { color: var(--text-muted); }
.example-table td:last-child { font-weight: 600; text-align: right; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: #CBD5E1;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 320px;
}

.footer-contact a { color: #CBD5E1; font-weight: 600; }
.footer-contact a:hover { color: #fff; }

.footer h5,
.footer-h {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: none;
  letter-spacing: 0;
}

/* Fila de enlaces legales (horizontal) */
.footer-legal-row {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-legal-links a {
  color: #94A3B8;
  font-size: 0.82rem;
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: #fff; }

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: #94A3B8;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #64748B;
}

.footer-disclaimer {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-disclaimer p {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.6;
  max-width: 900px;
}

/* ===== Modals ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 4000; /* por encima del cookie-banner (3000) para que no tape el formulario */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  z-index: 10;
}

.modal-close:hover { background: var(--border); color: var(--text); }

/* ===== Form Modal ===== */
.form-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 32px 36px;
  border-radius: 20px 20px 0 0;
}

.form-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-header .form-summary {
  font-size: 0.9rem;
  opacity: 0.9;
  display: flex;
  gap: 16px;
}

.form-header .form-summary span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-body { padding: 32px 36px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-input-wrapper {
  position: relative;
}

.form-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

.form-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.form-input.error { border-color: var(--error); }

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.phone-group { display: flex; gap: 8px; }

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.phone-group .form-input { padding-left: 14px; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 0;
}

.checkbox-group label a {
  text-decoration: underline;
}

.form-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.form-security span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-skip {
  display: block;
  text-align: center;
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 8px;
}

.form-skip:hover { color: var(--text); }

/* ===== Loading Modal ===== */
.loading-card {
  max-width: 420px;
  text-align: center;
  padding: 48px 36px;
  animation: fadeScaleIn 0.4s ease forwards;
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.loading-spinner {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
}

.loading-spinner svg {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
}

.loading-spinner .bg-ring {
  fill: none;
  stroke: #EEF2FF;
  stroke-width: 8;
}

.loading-spinner .progress-ring {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.1s linear;
}

.loading-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.loading-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.loading-steps { text-align: left; }

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.loading-step.active { color: var(--primary); font-weight: 600; }
.loading-step.done { color: var(--success); }

.loading-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.loading-step.active .loading-step-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.15);
}

.loading-step.done .loading-step-dot { background: var(--success); }

.loading-secure {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.loading-secure svg { width: 16px; height: 16px; }

/* ===== Offers Modal ===== */
.offers-card {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.offers-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 28px 36px;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.offers-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.offers-header p {
  font-size: 0.88rem;
  opacity: 0.85;
}

.offers-list { padding: 20px; }

.offer-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.offer-card:last-child { margin-bottom: 0; }

.offer-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.offer-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  position: relative;
}

.offer-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.offer-badge.recommended-badge {
  background: #FEF3C7;
  color: #92400E;
}

.offer-badge.free-badge {
  background: #ECFDF5;
  color: var(--success);
}

.offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.offer-logo {
  /* Logo dentro de un recuadro rectangular blanco, mas grande */
  width: 132px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.offer-lender {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.offer-promo {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}

.offer-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: 8px;
}

.offer-detail-item { text-align: center; }

.offer-detail-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

/* En movil 4 columnas quedan muy estrechas: 2x2 */
@media (max-width: 600px) {
  .offer-details { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 10px; }
  .offer-logo { width: 116px; height: 50px; max-width: 100%; }
  .modal-close { width: 44px; height: 44px; top: 12px; right: 12px; }
}

.offer-detail-item strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.offer-cta {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), #E88E00);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
  text-decoration: none;
}

.offer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
  color: #fff;
}

.offer-legal {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: #CBD5E1;
  padding: 20px 0;
  z-index: 3000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cookie-banner.active { transform: translateY(0); }

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner p a { color: var(--primary-light); }

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.2s ease;
}

.cookie-btn:hover { transform: translateY(-1px); }

.cookie-accept {
  background: var(--primary);
  color: #fff;
}

.cookie-decline {
  background: rgba(255,255,255,0.1);
  color: #CBD5E1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content { text-align: center; }
  .hero-content p { margin: 0 auto 28px; }
  .hero-benefits { display: inline-block; text-align: left; }
  /* Bloque social: avatares arriba y texto debajo, centrado (evita el desajuste lateral) */
  .hero-social {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .hero-social p { max-width: 260px; }

  .calculator-card { max-width: 520px; margin: 0 auto; }

  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* En movil el contenido se acerca a los bordes (solo un pequeno margen) */
  .container { padding: 0 16px; }

  /* Tarjetas casi a todo el ancho, con padding interior comodo */
  .calculator-card { padding: 24px 20px; max-width: none; margin: 0; }
  .calc-summary { padding: 16px; }
  .sim-card { padding: 22px 18px; }

  .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    gap: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  /* Cada item del menu movil: alineado a la izquierda, con separador */
  .nav-links.open > li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-links.open > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
  }
  .nav-links.open > li > a:hover { color: var(--primary); }
  /* CTA destacado al final, ancho completo */
  .nav-links.open > li:last-child {
    border-bottom: none;
    padding: 16px 24px 4px;
  }
  .nav-links.open .nav-cta {
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #E88E00);
    color: #fff !important;
    border-radius: 50px;
    padding: 15px 24px;
  }
  .nav-links.open .nav-cta:hover { color: #fff !important; }

  .hero { padding: 100px 0 60px; }
  .hero-content h1 { font-size: 2rem; }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
  }

  .steps-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .example-tables { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.55rem; }
  .section-subtitle { font-size: 0.95rem; }

  /* Trust-bar: rejilla 2x2 ordenada en lugar de wrap descuadrado */
  .trust-bar { padding: 24px 0; }
  .trust-bar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    justify-items: start;
  }
  .trust-badge { font-size: 0.85rem; justify-content: flex-start; }

  .form-header, .form-body { padding: 24px; }
  .modal-card { border-radius: 16px; }
  /* La cabecera verde debe usar el mismo radio que la tarjeta (si no, asoma el blanco en las esquinas) */
  .form-header, .offers-header { border-radius: 16px 16px 0 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cookie-banner .container { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .hero-content h1 { font-size: 1.7rem; }
  .slider-value { font-size: 1.1rem; }
  .calc-security { flex-direction: column; gap: 8px; }
  .form-header .form-summary { flex-wrap: wrap; gap: 6px 14px; }
}

/* ===== Mega Menu / Dropdown ===== */
.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 240px;
  padding: 12px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.dropdown-menu li { margin: 0; }

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.dropdown-menu .dropdown-sep {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
}
.dropdown-menu .dropdown-sep a { font-weight: 600; color: var(--primary); }

/* Compat: si queda algun .dropdown-divider antiguo */
.dropdown-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* Mobile dropdown */
@media (max-width: 768px) {
  .nav-links.open > li.nav-dropdown { position: static; }
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    padding: 4px 0 10px;
    display: none;
    background: #f8fafc;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  /* Submenu items: indentados a la izquierda */
  .nav-dropdown .dropdown-menu a {
    padding: 11px 24px 11px 38px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
  }
  .nav-dropdown .dropdown-menu a:hover { color: var(--primary); background: #fff; }
  .dropdown-menu .dropdown-sep a { color: var(--primary); font-weight: 600; }

  /* Flecha chevron en items con submenu (en lugar del triangulo de escritorio) */
  .nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin: 0 2px 3px 0;
    opacity: 0.5;
    transition: transform 0.25s ease;
  }
  .nav-dropdown.open > a::after { transform: rotate(-135deg); margin-bottom: -2px; }
}

/* ===== Breadcrumbs ===== */
.breadcrumb {
  padding: 16px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  margin-top: 72px;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }

.breadcrumb-list a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb-list a:hover { color: var(--primary); }

.breadcrumb-list .separator { color: var(--text-light); font-size: 0.7rem; }

.breadcrumb-list .current {
  color: var(--text);
  font-weight: 600;
}

/* ===== Page Hero (for content pages) ===== */
.page-hero {
  padding: 48px 0 40px;
  background: linear-gradient(160deg, #F0FDFA 0%, #F8FAFC 50%, #FFFBEB 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero.no-breadcrumb { margin-top: 72px; }

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

.page-hero .meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.page-hero .meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-hero .meta svg { width: 14px; height: 14px; }

@media (max-width: 768px) {
  .page-hero { padding: 32px 0; }
  .page-hero h1 { font-size: 1.7rem; }
}

/* ===== Article Content ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 48px 0;
}

.article-content { min-width: 0; }

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
  padding-top: 16px;
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-content a { color: var(--primary); text-decoration: underline; }
.article-content a:hover { color: var(--primary-dark); }

.article-content strong { color: var(--text); }

/* Info/Warning/Tip boxes */
.info-box {
  background: #EFF6FF;
  border-left: 4px solid #3B82F6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box p { color: #1E40AF; margin: 0; font-size: 0.9rem; }
.info-box strong { color: #1E3A8A; }

.warning-box {
  background: #FEF3C7;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.warning-box p { color: #92400E; margin: 0; font-size: 0.9rem; }
.warning-box strong { color: #78350F; }

.tip-box {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.tip-box p { color: var(--primary-dark); margin: 0; font-size: 0.9rem; }

/* Inline comparison table in articles */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-content th {
  background: var(--primary-bg);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
}

.article-content td {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}

.article-content tr:last-child td { border-bottom: none; }
.article-content tr:hover { background: var(--bg-light); }

/* TOC - Table of Contents */
.toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 0 0 32px;
}

.toc h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
}

.toc li {
  font-size: 0.88rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ===== Sidebar ===== */
.sidebar { position: sticky; top: 96px; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-card .mini-calculator { /* Reuse calc styles */ }

.sidebar-links { list-style: none; }

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-links a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.sidebar-links svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-cta h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  border: none;
  padding: 0;
}

.sidebar-cta p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.sidebar-cta .btn-primary { font-size: 0.88rem; padding: 12px 24px; }

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sidebar { position: static; }
}

/* ===== Blog Cards ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-bg), #EFF6FF);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-img svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  opacity: 0.4;
}

.blog-card-body { padding: 24px; }

.blog-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-guide { background: #DBEAFE; color: #1E40AF; }
.tag-tips { background: #ECFDF5; color: #065F46; }
.tag-info { background: #FEF3C7; color: #92400E; }
.tag-news { background: #EDE9FE; color: #5B21B6; }

.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card-body h3 a { color: var(--text); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--primary); }

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-light);
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===== Author Box (E-E-A-T) ===== */
.author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 40px 0;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.author-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.author-info .author-role { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.author-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

@media (max-width: 600px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ===== Internal Linking Cards ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.related-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.related-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-card-icon svg { width: 20px; height: 20px; color: var(--primary); }

.related-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.related-card p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ===== About Page ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.about-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-card svg { width: 40px; height: 40px; color: var(--primary); margin-bottom: 16px; }
.about-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.about-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== Simulator Page ===== */
.sim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

.sim-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 96px;
}

.sim-results {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
}

.sim-results h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.result-row:last-child { border-bottom: none; }
.result-row span:first-child { color: var(--text-muted); }
.result-row span:last-child { font-weight: 700; }

.result-row.highlight {
  background: var(--primary-bg);
  margin: 8px -16px;
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
}

.result-row.highlight span:last-child {
  color: var(--primary);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .sim-layout { grid-template-columns: 1fr; }
  .sim-card { position: static; }
}

/* ===== Legal Pages ===== */
.legal-page { padding: 48px 0 80px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .updated { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 40px; }

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content a { color: var(--primary); text-decoration: underline; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.legal-content th,
.legal-content td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.legal-content th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text);
}

.legal-content td { color: var(--text-muted); }

/* ===== Inline CTA Banner ===== */
.inline-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: #fff;
  margin: 40px 0;
}

.inline-cta h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.inline-cta p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 20px; }

.inline-cta .btn-primary {
  display: inline-block;
  width: auto;
  padding: 14px 36px;
}

/* ===== Review Stars Inline ===== */
.stars-inline {
  color: var(--accent);
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* ===== Disclosure Banner ===== */
.disclosure {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.8rem;
  color: #9A3412;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.disclosure svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ===== Last Updated Badge ===== */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.updated-badge svg { width: 14px; height: 14px; }

/* =====================================================================
   ===== VISUAL UPGRADE v2 — Layout, tablas, color, presentacion =====
   ===================================================================== */

/* ---- Enriched page hero ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background: linear-gradient(160deg, #ECFDF5 0%, #F0FDFA 45%, #FFFBEB 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -140px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.12), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: 2.45rem;
  background: linear-gradient(120deg, #0F172A 0%, #0F766E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p { font-size: 1.12rem; max-width: 720px; }

/* Hero trust chips */
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow);
}
.hero-chip svg { width: 16px; height: 16px; color: var(--primary); }

/* ---- Updated badge: live dot ---- */
.updated-badge {
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.updated-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.18);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ---- Premium comparison table ---- */
.comparison-table { border: none; box-shadow: var(--shadow-md); border-radius: var(--radius); }
.comparison-table thead th {
  padding: 18px 20px;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.comparison-table tbody tr { transition: background 0.18s ease; }
.comparison-table tbody tr:nth-child(even) { background: #FAFBFC; }
.comparison-table tbody tr:hover { background: var(--primary-bg); }
.comparison-table tbody td { padding: 18px 20px; }
.comparison-table tbody td:first-child { display: flex; align-items: center; gap: 12px; }
/* Logo del prestamista dentro de un recuadro rectangular blanco, mas grande */
.comparison-table tbody td:first-child img {
  width: 110px !important;
  height: 46px !important;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.lender-name { font-size: 0.95rem; }
.badge-free {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid #A7F3D0;
  padding: 4px 12px; font-weight: 700;
}
.table-btn { padding: 10px 22px; box-shadow: 0 2px 8px rgba(245,158,11,0.25); }

/* Highlight the top/recommended row */
.comparison-table tbody tr.is-top { position: relative; background: linear-gradient(90deg, rgba(20,184,166,0.06), transparent); }
.comparison-table tbody tr.is-top td:first-child::before {
  content: "★"; color: var(--accent); margin-right: 2px; font-size: 0.9rem;
}

/* ---- Article tables: zebra + rounded ---- */
.article-content table {
  box-shadow: var(--shadow); border-radius: var(--radius-sm);
}
.article-content thead th {
  background: linear-gradient(135deg, var(--primary-bg), #E6FFFA);
  color: var(--primary-dark);
  text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.03em;
  padding: 14px 16px;
}
.article-content tbody tr:nth-child(even) { background: #FAFBFC; }
.article-content td { padding: 13px 16px; }
/* emphasize the "total" row */
.article-content tr td strong { color: var(--primary-dark); }

/* Caption helper above tables */
.table-caption {
  font-size: 0.82rem; color: var(--text-light);
  margin: 24px 0 -10px; font-style: italic;
}

/* ---- Callout boxes: redesigned with icon ---- */
.info-box, .warning-box, .tip-box {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  border-left-width: 4px; border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 28px 0;
  box-shadow: var(--shadow);
}
.info-box { background: linear-gradient(180deg,#EFF6FF,#F8FBFF); }
.warning-box { background: linear-gradient(180deg,#FFFBEB,#FFFDF5); }
.tip-box { background: linear-gradient(180deg,var(--primary-bg),#F6FFFD); }
.info-box::before, .warning-box::before, .tip-box::before {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: #fff; line-height: 1;
}
.info-box::before { content: "i"; background: #3B82F6; }
.warning-box::before { content: "!"; background: var(--accent); }
.tip-box::before { content: "✓"; background: var(--primary); }
.info-box p, .warning-box p, .tip-box p { font-size: 0.92rem; line-height: 1.65; }

/* ---- Key takeaways / "respuesta rapida" box (AEO/GEO) ---- */
.key-takeaways {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 26px; margin: 28px 0;
  box-shadow: var(--shadow-md);
}
.key-takeaways h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 800; margin: 0 0 14px;
  color: var(--primary-dark);
}
.key-takeaways h3 svg { width: 20px; height: 20px; }
.key-takeaways ul { margin: 0; padding-left: 4px; list-style: none; }
.key-takeaways li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
  font-size: 0.92rem; color: var(--text); line-height: 1.6;
}
.key-takeaways li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%230D9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---- Pros / Cons cards ---- */
.proscons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0;
}
.pros-box, .cons-box {
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); border: 1px solid;
}
.pros-box { background: linear-gradient(180deg,#F0FDF4,#FAFFFB); border-color: #BBF7D0; }
.cons-box { background: linear-gradient(180deg,#FEF2F2,#FFFBFB); border-color: #FECACA; }
.pros-box h4, .cons-box h4 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 0.98rem; font-weight: 800;
}
.pros-box h4 { color: #15803D; }
.cons-box h4 { color: #B91C1C; }
.pros-box h4::before, .cons-box h4::before {
  width: 22px; height: 22px; border-radius: 6px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}
.pros-box h4::before { content: "+"; background: #16A34A; }
.cons-box h4::before { content: "−"; background: #DC2626; }
.pros-box ul, .cons-box ul { margin: 0; padding: 0; list-style: none; }
.pros-box li, .cons-box li {
  position: relative; padding-left: 24px; margin-bottom: 9px;
  font-size: 0.88rem; line-height: 1.55; color: var(--text);
}
.pros-box li::before, .cons-box li::before {
  position: absolute; left: 0; top: 0; font-weight: 800;
}
.pros-box li::before { content: "✓"; color: #16A34A; }
.cons-box li::before { content: "✕"; color: #DC2626; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }

/* ---- Lender summary card (review pages) ---- */
.lender-summary-card {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(135deg, #fff, #F8FAFC);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px; margin: 22px 0;
  box-shadow: var(--shadow-md);
}
.lender-summary-card img { height: 44px; width: auto; }
.lender-summary-card .ls-meta { flex: 1; min-width: 200px; }
.lender-summary-card .ls-name { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.lender-summary-card .ls-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 2px; }
.lender-summary-card .btn-primary { width: auto; padding: 13px 26px; white-space: nowrap; }
@media (max-width: 600px) {
  .lender-summary-card { gap: 12px; padding: 18px; }
  .lender-summary-card .ls-meta { min-width: 0; }
  .lender-summary-card .btn-primary { width: 100%; white-space: normal; }
}

/* Star rating */
.star-rating { display: inline-flex; align-items: center; gap: 6px; }
.stars { display: inline-flex; gap: 1px; }
.stars span { color: #E2E8F0; font-size: 1rem; line-height: 1; }
.stars span.on { color: #F59E0B; }
.rating-num { font-weight: 800; color: var(--text); font-size: 0.95rem; }
.rating-count { color: var(--text-light); font-size: 0.8rem; }

/* Facts table (key:value) on review pages */
.lender-facts table { width: 100%; }
.lender-facts td:first-child { width: 42%; background: #FAFBFC; font-weight: 600; color: var(--text); }

/* ---- Opiniones grid: richer cards ---- */
.related-grid .related-card { padding: 18px; border-radius: var(--radius); }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-card-icon img { width: 40px; height: auto; border-radius: 6px; }

/* ---- TOC: numbered chips ---- */
.toc {
  background: linear-gradient(180deg,#fff,#FAFBFC);
  box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 22px 24px;
}
.toc h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }
.toc ol { list-style: none; counter-reset: toc; padding-left: 0; }
.toc li { counter-increment: toc; padding-left: 32px; position: relative; margin-bottom: 9px; }
.toc li::before {
  content: counter(toc); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary-dark);
  font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.toc a { font-weight: 500; }

/* ---- Author box (E-E-A-T) upgrade ---- */
.author-box {
  background: linear-gradient(135deg,#fff,#F8FAFC);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px;
}
.author-avatar { box-shadow: 0 4px 12px rgba(13,148,136,0.3); }
.author-verified svg { vertical-align: -2px; }
.author-reviewed {
  margin-top: 10px !important; padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem !important; color: var(--text-light) !important;
}
.author-reviewed strong { color: var(--text-muted); }

/* ---- Disclosure: subtle pill ---- */
.disclosure {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FFFDF5; border: 1px solid #FDE68A;
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 24px;
  font-size: 0.8rem; color: #92400E;
}
.disclosure svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.disclosure a { color: #92400E; font-weight: 600; text-decoration: underline; }

/* ---- Inline CTA: gradient banner ---- */
.inline-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius);
  padding: 32px 36px; margin: 36px 0; text-align: center;
  box-shadow: 0 10px 30px rgba(13,148,136,0.25);
}
.inline-cta::before {
  content: ""; position: absolute; top: -60px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.inline-cta h3 { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; position: relative; }
.inline-cta p { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-bottom: 18px; position: relative; }
.inline-cta .btn-primary {
  width: auto; display: inline-block; padding: 14px 34px;
  background: #fff; color: var(--primary-dark); position: relative;
}
.inline-cta .btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* ---- Blog cards: cover gradient + tag refinements ---- */
.blog-card { box-shadow: var(--shadow); }
.blog-card:hover { box-shadow: var(--shadow-lg); }
.blog-card-img { position: relative; height: 168px; }
.blog-card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,148,136,0.10), rgba(245,158,11,0.08));
}
.blog-card-tag { box-shadow: var(--shadow); }

/* ---- Section heading accent (article H2) ---- */
.article-content h2 {
  position: relative; padding-left: 16px;
}
.article-content h2::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 6px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
}
.article-content h2:first-child::before { top: 4px; }

/* ---- Responsive: comparison table -> stacked cards on mobile ---- */
@media (max-width: 600px) {
  .page-hero h1 { font-size: 1.5rem; }
  .comparison-table { min-width: 0; }
  .comparison-table thead { display: none; }
  .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td { display: block; width: 100%; }
  .comparison-table tr {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 14px; padding: 6px 4px; background: #fff;
  }
  .comparison-table tbody tr:nth-child(even) { background: #fff; }
  .comparison-table td {
    display: flex; justify-content: space-between; align-items: center;
    border: none; padding: 9px 16px; font-size: 0.9rem;
  }
  .comparison-table td:first-child { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .comparison-table td::before {
    content: attr(data-label); font-weight: 700; color: var(--text-muted);
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em;
  }
  .comparison-table td:first-child::before, .comparison-table td:last-child::before { content: none; }
  .comparison-table td:last-child { justify-content: stretch; }
  .comparison-table td:last-child .table-btn { width: 100%; text-align: center; padding: 13px 20px; font-size: 0.9rem; }
}

/* ---- Opiniones grid star alignment ---- */
.opiniones-grid .related-card { align-items: center; }
.opiniones-grid .related-card p { margin-top: 4px; }
.opiniones-grid .star-rating { flex-wrap: wrap; }

/* ---- Fix: constrain TOC heading icon size ---- */
.toc h4 svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary); }

/* ---- Ocultar scrollbar en modales (form / loading / offers) sin perder el scroll ---- */
.modal-card,
.offers-card,
.offers-list,
.form-body {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge antiguo */
}
.modal-card::-webkit-scrollbar,
.offers-card::-webkit-scrollbar,
.offers-list::-webkit-scrollbar,
.form-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;                /* Chrome / Safari / Edge */
}

/* ---- Ocultar el cookie banner cuando hay un modal abierto (no debe tapar el formulario en movil) ---- */
body.modal-open .cookie-banner { display: none; }

/* ---- Quitar los circulos decorativos del fondo (hero, page-hero, inline-cta) ---- */
.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after,
.inline-cta::before {
  display: none !important;
}

/* ---- Tablas dentro del contenido: scroll horizontal en movil (no se cortan) ---- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius-sm);
}
.table-scroll table { margin: 0; min-width: 480px; }

/* Para las tablas <table> sueltas del contenido (sin wrapper), permitir scroll en movil */
@media (max-width: 600px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .article-content .table-scroll { overflow-x: auto; }
  .article-content .table-scroll table { display: table; white-space: normal; }
}

/* ---- Nota de calculo bajo el simulador (transparencia del interes) ---- */
.calc-note {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-light);
  margin: 14px 0 16px;
  text-align: center;
}
