/* ============================================================
   Crédito Nuevo — creditonuevo.es
   Estilo V4 "Naranja Bold" · Bricolage Grotesque + Plus Jakarta Sans
   ============================================================ */
:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #fff7ed;
  --dark: #111827;
  --dark-2: #1f2937;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --line: #e5e7eb;
  --yellow: #facc15;
  --green: #22c55e;
  --green-dark: #16a34a;
  --danger: #e5484d;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(17, 24, 39, .07);
  --shadow-lg: 0 22px 50px rgba(17, 24, 39, .16);
  --heading: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, .logo { font-family: var(--heading); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  padding: 16px 32px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 0 var(--orange-dark);
}
.btn-primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--orange-dark); }
.btn-secondary { background: var(--dark); color: #fff; box-shadow: 0 6px 0 #000; }
.btn-secondary:hover { transform: translateY(2px); box-shadow: 0 4px 0 #000; }
.btn-white { background: #fff; color: var(--dark); box-shadow: 0 6px 0 #d1d5db; }
.btn-white:hover { transform: translateY(2px); box-shadow: 0 4px 0 #d1d5db; }
.btn-outline { background: #fff; color: var(--dark); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 40px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 100; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 100%; height: 100%; display: block; }
.logo span { color: var(--orange); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: rgba(255,255,255,.75); font-weight: 600; font-size: .92rem; }
.main-nav a:hover { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .trust-item { color: rgba(255,255,255,.7); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  color: #fff;
  padding: 72px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.28), transparent 65%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.4);
  color: var(--orange);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--yellow); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 5px;
  background: var(--orange);
  border-radius: 3px;
}
.hero-sub { font-size: 1.12rem; color: rgba(255,255,255,.75); margin-bottom: 30px; max-width: 470px; }
.hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; max-width: 470px; }
.hero-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .93rem; }
.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

/* ---------- Simulator card ---------- */
.simulator {
  background: var(--white);
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  padding: 32px 30px;
  border-top: 6px solid var(--orange);
}
.simulator h2 { color: var(--ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.3px; }
.simulator-sub { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.slider-group { margin-bottom: 24px; }
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
}
.slider-value { font-size: 1.6rem; font-weight: 800; color: var(--orange); letter-spacing: -.5px; font-family: var(--heading); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(to right, var(--orange) var(--fill, 50%), var(--line) var(--fill, 50%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dark);
  border: 4px solid var(--orange);
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dark);
  border: 4px solid var(--orange);
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  cursor: grab;
}
.slider-minmax { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 8px; font-weight: 600; }
.simulator-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 14px; }
.trust-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); }

/* ---------- Stats strip (overlapping hero) ---------- */
.stats { margin-top: -60px; position: relative; z-index: 3; }
.stats-inner {
  background: var(--orange);
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 20px 40px rgba(249,115,22,.35);
}
.stat { text-align: center; padding: 28px 16px; color: #fff; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.25); }
.stat b { display: block; font-family: var(--heading); font-size: 2rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.stat span { font-size: .82rem; font-weight: 600; opacity: .9; text-transform: uppercase; letter-spacing: .8px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--dark); color: #fff; }
.eyebrow {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.section-dark .eyebrow { background: rgba(249,115,22,.15); color: var(--orange); }
.section-title { text-align: center; font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -1.2px; margin-bottom: 12px; }
.section-dark .section-title { color: #fff; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.02rem; max-width: 600px; margin: 0 auto 50px; }
.section-dark .section-sub { color: rgba(255,255,255,.65); }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .15s ease, border-color .15s ease;
}
.benefit-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.benefit-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.benefit-card h3 { color: var(--ink); font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; }
.benefit-card p { color: var(--muted); font-size: .9rem; }

/* Steps (dark section, big numbers) */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
}
.step-num {
  position: absolute;
  top: -14px;
  right: 6px;
  font-family: var(--heading);
  font-size: 5.5rem;
  font-weight: 800;
  color: rgba(249,115,22,.15);
  line-height: 1;
}
.step-chip {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 14px;
  position: relative;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; position: relative; }
.step-card p { color: rgba(255,255,255,.65); font-size: .88rem; position: relative; }

/* Comparison table (bold) */
.compare-table-wrap {
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-shadow: 0 16px 40px rgba(17,24,39,.1);
  border: 2px solid var(--dark);
}
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 660px; }
/* Pista de scroll horizontal en móvil */
.table-scroll-hint { display: none; }
@media (max-width: 680px) {
  .table-scroll-hint { display: block; text-align: center; font-size: .8rem; color: var(--text-light); margin: 0 0 8px; }
  .compare-table { min-width: 560px; }
  .compare-table th { padding: 12px 12px; font-size: .72rem; letter-spacing: .6px; }
  .compare-table td { padding: 14px 12px; font-size: .9rem; }
}
.compare-table th {
  background: var(--dark);
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 18px;
  text-align: left;
}
.compare-table td { padding: 20px 18px; border-bottom: 2px solid var(--line); font-size: .95rem; vertical-align: middle; font-weight: 500; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--orange-soft); }
.lender-name { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.lender-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}
.tag-featured {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 3px 9px;
  margin-left: 8px;
}
.tae-badge { display: inline-block; background: #dcfce7; color: #15803d; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 8px; }
.btn-table { padding: 12px 22px; font-size: .82rem; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stars { color: var(--yellow); letter-spacing: 2px; margin-bottom: 12px; text-shadow: 0 1px 0 var(--orange); }
.testimonial-card p { font-size: .93rem; color: var(--ink); font-weight: 500; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--dark);
  color: var(--orange);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.testimonial-author strong { display: block; color: var(--ink); font-size: .9rem; }
.testimonial-author small { color: var(--muted); font-size: .78rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--white); border: 2px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item.open { border-color: var(--orange); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::after { content: '▾'; color: var(--orange); font-size: 1.1rem; transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 18px; color: var(--muted); font-size: .93rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--orange-dark), var(--orange));
  border-radius: 22px;
  padding: 60px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '€';
  position: absolute;
  font-family: var(--heading);
  font-size: 16rem;
  font-weight: 800;
  color: rgba(255,255,255,.08);
  right: 20px;
  top: -60px;
  transform: rotate(12deg);
}
.cta-band h2 { font-size: 2.3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; position: relative; }
.cta-band p { opacity: .92; margin-bottom: 28px; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 56px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; font-family: var(--heading); }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--orange); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: .78rem; line-height: 1.7; color: rgba(255,255,255,.5); }
.footer-legal p { margin-bottom: 10px; }
.footer-legal a { color: var(--orange); }
.footer-copy { text-align: center; margin-top: 18px; font-size: .8rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: #fff;
  padding: 18px 20px;
  z-index: 999;
  display: none;
  box-shadow: 0 -6px 24px rgba(0,0,0,.25);
}
.cookie-banner.visible { display: block; }
.cookie-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { flex: 1; font-size: .85rem; min-width: 260px; }
.cookie-inner a { color: var(--orange); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 22px; font-size: .85rem; box-shadow: none; }
.cookie-actions .btn:hover { transform: none; }
/* Botón "Rechazar": outline claro sobre el fondo oscuro del banner */
.btn-cookie-reject {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
}
.btn-cookie-reject:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   Form page (solicitud.html)
   ============================================================ */
.form-page { min-height: calc(100vh - 72px); padding: 40px 0 80px; background: var(--bg); }
.form-wrap { max-width: 620px; margin: 0 auto; }
.progress-steps { display: flex; justify-content: space-between; margin-bottom: 32px; position: relative; }
.progress-steps::before {
  content: '';
  position: absolute;
  top: 18px; left: 40px; right: 40px;
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.progress-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.progress-dot {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: all .2s ease;
}
.progress-step.active .progress-dot { border-color: var(--orange); background: var(--orange); color: #fff; }
.progress-step.done .progress-dot { border-color: var(--green); background: var(--green); color: #fff; }
.progress-step span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.progress-step.active span { color: var(--orange-dark); }

.form-card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 36px 34px; border-top: 6px solid var(--orange); }
.form-card h1 { font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -.4px; }
.form-card .form-intro { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  transition: border-color .15s ease;
}
input:focus, select:focus { outline: none; border-color: var(--orange); }
input.invalid, select.invalid { border-color: var(--danger); }
.field-error { display: none; color: var(--danger); font-size: .8rem; margin-top: 5px; font-weight: 600; }
input.invalid ~ .field-error, select.invalid ~ .field-error { display: block; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: .83rem; color: var(--muted); }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; cursor: pointer; }
.checkbox-group.invalid { color: var(--danger); }
.form-nav { display: flex; gap: 12px; margin-top: 28px; }
.form-nav .btn-outline { flex: 0 0 auto; }
.form-nav .btn-primary { flex: 1; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: .8rem; color: var(--muted); }

/* ============================================================
   Loading page (procesando.html)
   ============================================================ */
.loading-page { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--dark); }
.loading-card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 48px 40px; max-width: 520px; width: 100%; text-align: center; border-top: 6px solid var(--orange); }
.spinner {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 6px solid var(--line);
  border-top-color: var(--orange);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card h1 { font-size: 1.5rem; color: var(--ink); margin-bottom: 8px; letter-spacing: -.4px; }
.loading-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 30px; }
.progress-bar-track { height: 10px; background: var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
.progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--orange), var(--orange-dark)); border-radius: 8px; transition: width .4s ease; }
.loading-steps { text-align: left; display: grid; gap: 14px; }
.loading-step { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 600; color: var(--muted); opacity: .45; transition: opacity .3s ease; }
.loading-step.active, .loading-step.done { opacity: 1; }
.loading-step .step-icon { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; }
.loading-step.active .step-icon { border-color: var(--orange); animation: pulse 1s ease infinite; }
.loading-step.done .step-icon { border-color: var(--green); background: var(--green); color: #fff; }
.loading-step.done { color: var(--ink); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,.35); } 50% { box-shadow: 0 0 0 6px rgba(249,115,22,0); } }

/* ============================================================
   Offers page (ofertas.html)
   ============================================================ */
.offers-page { padding: 40px 0 80px; }
.offers-header { text-align: center; margin-bottom: 12px; }
.offers-header h1 { font-size: 2rem; color: var(--ink); font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.offers-header p { color: var(--muted); }
.offers-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 50px;
  padding: 8px 20px;
  margin: 14px auto 36px;
}
.offers-list { max-width: 940px; margin: 0 auto; display: grid; gap: 20px; }
.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  position: relative;
  border: 2px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.offer-card.featured { border-color: var(--orange); }
.offer-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 6px;
  padding: 3px 12px;
}
.offer-logo { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.offer-body h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }
.offer-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.offer-meta strong { color: var(--ink); }
.offer-features { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-feature { background: var(--orange-soft); color: var(--orange-dark); font-size: .75rem; font-weight: 700; border-radius: 5px; padding: 3px 10px; }
.offer-cta { text-align: center; }
.offer-cta .btn { white-space: nowrap; }
.offer-cta small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.offers-disclaimer { max-width: 780px; margin: 36px auto 0; font-size: .78rem; color: var(--muted); line-height: 1.7; background: var(--white); border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--line); }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-page { padding: 48px 0 80px; }
.legal-content { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 48px 44px; }
.legal-content h1 { font-size: 1.9rem; color: var(--ink); letter-spacing: -.5px; margin-bottom: 8px; }
.legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 30px; }
.legal-content h2 { font-size: 1.25rem; color: var(--ink); margin: 30px 0 12px; }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--text); margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 24px; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 16px 0; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal-content th { background: var(--bg); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 0; }
  .hero { padding-bottom: 100px; }
  .hero h1 { font-size: 2.3rem; }
  .benefits-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* ---- Menú móvil: panel desplegable con submenús SIEMPRE visibles (sin hover) ---- */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: -8px -8px -8px 0;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav > a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 1rem;
  }
  /* dropdown → bloque vertical estático */
  .nav-drop { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-drop > a {
    display: block;
    padding: 14px 4px;
    color: var(--orange);
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    pointer-events: none;   /* el título de grupo no navega en móvil */
  }
  .nav-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    min-width: 0;
    background: transparent;
    padding: 4px 0 10px 10px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .nav-menu a {
    display: block;
    color: rgba(255,255,255,.8) !important;
    padding: 11px 12px;
    font-size: .95rem;
    border-radius: 8px;
    border-left: 2px solid rgba(255,255,255,.12);
  }
  .nav-menu a:hover, .nav-menu a:active { background: rgba(249,115,22,.14); color: #fff !important; border-left-color: var(--orange); }
}

@media (max-width: 680px) {
  .header-cta .trust-item { display: none; }
  .header-cta .btn { padding: 10px 16px; font-size: .82rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero h1 em { white-space: normal; }        /* permitir que "5.000 €" baje de línea */
  .hero-points { grid-template-columns: 1fr; gap: 11px; }   /* ventajas en 1 columna */
  .trust-row { gap: 12px; }
  .section { padding: 52px 0; }
  .section-title { font-size: 1.65rem; }
  .benefits-grid, .testimonials-grid, .steps-grid { grid-template-columns: 1fr; }
  /* Stats en cuadrícula 2×2 (más compacto que 4 filas) */
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 12px; border: none !important; }
  .stat b { font-size: 1.7rem; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.22) !important; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.22) !important; }
  .form-row { grid-template-columns: 1fr; }
  /* Slider label: etiqueta arriba, valor debajo (evita solapamiento en móvil) */
  .slider-label { flex-wrap: wrap; align-items: center; gap: 2px 8px; }
  .slider-label > span:first-child { flex: 1 1 100%; }
  .slider-value { font-size: 1.5rem; }
  .form-card { padding: 28px 22px; }
  .offer-card { grid-template-columns: 1fr; text-align: center; }
  .offer-logo { margin: 0 auto; }
  .offer-meta, .offer-features { justify-content: center; }
  .cta-band { padding: 40px 24px; }
  .cta-band h2 { font-size: 1.7rem; }
  .legal-content { padding: 32px 24px; }
  .progress-step span { display: none; }
}

/* ============================================================
   SEO SITE — mega-menu, breadcrumb, content, filtros, quiz, blog
   ============================================================ */

/* ---- Mega-menu dropdown (SOLO escritorio ≥901px; en móvil se gestiona
        en el bloque @media max-width:900px de arriba) ---- */
.nav-drop { position: relative; }
@media (min-width: 901px) {
  .nav-drop > a { display: inline-flex; align-items: center; gap: 4px; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 120;
  }
  .nav-drop:hover .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
  .nav-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text) !important;
    font-size: .9rem;
    font-weight: 600;
  }
  .nav-menu a:hover { background: var(--orange-soft); color: var(--orange-dark) !important; }
}

/* ---- Breadcrumb ---- */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--orange-dark); }
.breadcrumb .bc-sep { color: var(--line); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }

/* ---- Page hero (landing SEO) ---- */
.page-hero { background: var(--dark); color: #fff; padding: 56px 0; }
.page-hero .container { max-width: 900px; }
.page-hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; line-height: 1.12; }
.page-hero p { font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 680px; }
.page-hero .hero-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- AEO answer box (respuesta directa para IA / snippets) ---- */
.answer-box {
  background: var(--orange-soft);
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 28px;
}
.answer-box strong { color: var(--ink); }
/* Aviso de mediación (neutro, distinto del answer-box naranja) */
.note-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #64748b;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 28px;
  font-size: .92rem;
  color: #475569;
  line-height: 1.6;
}
.note-box strong { color: var(--ink); }
/* Enlaces relacionados (internal linking SEO) */
.related-links { margin: 32px 0 8px; }
.related-links h2 { font-size: 1.15rem; margin-bottom: 14px; }
.related-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-sm { padding: 8px 15px; font-size: .88rem; }
/* Explora por tipo (home) */
.tipos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tipo-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.tipo-card strong { color: var(--ink); font-size: 1.05rem; }
.tipo-card span { color: var(--text-light); font-size: .9rem; }
.tipo-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(249,115,22,.14); }
@media (max-width: 860px) { .tipos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tipos-grid { grid-template-columns: 1fr; } }
.answer-box .tldr {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 5px;
  padding: 3px 9px;
  margin-bottom: 10px;
}

/* ---- Prose (contenido de artículo) ---- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; color: var(--ink); font-weight: 800; letter-spacing: -.5px; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; color: var(--ink); font-weight: 700; margin: 28px 0 10px; }
.prose p { color: var(--text); margin-bottom: 16px; font-size: 1rem; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; color: var(--text); }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--orange-dark); font-weight: 600; text-decoration: underline; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.prose th { background: var(--dark); color: #fff; font-weight: 700; }
.prose tr:nth-child(even) td { background: var(--bg); }
.prose blockquote {
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  color: var(--ink);
  font-weight: 500;
}

/* ---- TOC (índice) ---- */
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 0 0 32px; }
.toc h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 7px; }
.toc li::before { content: counter(toc) '. '; color: var(--orange); font-weight: 700; }
.toc a { color: var(--text); font-weight: 600; font-size: .93rem; }
.toc a:hover { color: var(--orange-dark); }

/* ---- Comparador filtrable ---- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; justify-content: center; }
.filter-chip {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 50px;
  padding: 9px 18px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  cursor: pointer;
  transition: .15s;
}
.filter-chip:hover { border-color: var(--orange); }
.filter-chip.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.entidad-count { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

.entidad-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  transition: .18s;
  position: relative;
}
.entidad-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.entidad-card.featured { border-color: var(--orange); }
.entidad-rank {
  position: absolute; top: -10px; left: 20px;
  background: var(--dark); color: #fff;
  font-size: .72rem; font-weight: 800;
  border-radius: 6px; padding: 2px 10px;
}
.entidad-card.featured .entidad-rank { background: var(--orange); }
.entidad-logo { width: 58px; height: 58px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.entidad-info h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.entidad-rating { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.entidad-rating .stars { color: var(--yellow); text-shadow: 0 1px 0 var(--orange); letter-spacing: 1px; }
.entidad-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--muted); }
.entidad-meta strong { color: var(--ink); }
.entidad-cta { text-align: center; }
.entidad-cta .btn { white-space: nowrap; }
.entidad-cta small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; }

/* ---- Calculadora ---- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; margin: 0 auto; align-items: start; }
.calc-card { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 30px; }
.calc-card.result { background: var(--dark); color: #fff; border-color: var(--dark); text-align: center; }
.calc-field { margin-bottom: 22px; }
.calc-field label { color: var(--ink); }
.calc-result-big { font-family: var(--heading); font-size: 3rem; font-weight: 800; color: var(--orange); letter-spacing: -1.5px; line-height: 1; margin: 6px 0 4px; }
.calc-result-label { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 24px; }
.calc-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.calc-row:last-child { border-bottom: none; }
.calc-row span:last-child { font-weight: 700; }
.calc-note { font-size: .78rem; color: var(--muted); margin-top: 18px; text-align: center; }

/* ---- Quiz ---- */
.quiz-card { max-width: 620px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 40px 36px; border-top: 6px solid var(--orange); }
.quiz-progress { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-dark)); width: 0%; transition: width .3s ease; }
.quiz-q { display: none; }
.quiz-q.active { display: block; animation: fadeIn .3s ease; }
.quiz-q h2 { font-size: 1.4rem; color: var(--ink); margin-bottom: 8px; letter-spacing: -.4px; }
.quiz-q p.sub { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.quiz-opts { display: grid; gap: 12px; }
.quiz-opt {
  text-align: left;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: .15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiz-opt:hover { border-color: var(--orange); background: var(--orange-soft); }
.quiz-opt .ico { font-size: 1.3rem; }
.quiz-result { text-align: center; display: none; }
.quiz-result.active { display: block; }

/* ---- Blog grid ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .18s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.blog-thumb { height: 150px; background: linear-gradient(135deg, var(--dark), var(--orange)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--orange-dark); margin-bottom: 8px; }
.blog-card h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.blog-card p { font-size: .9rem; color: var(--muted); flex: 1; }
.blog-card .blog-link { margin-top: 14px; color: var(--orange-dark); font-weight: 700; font-size: .9rem; }

/* ---- CTA inline (dentro de contenido) ---- */
.cta-inline {
  background: linear-gradient(120deg, var(--orange-dark), var(--orange));
  border-radius: 16px;
  padding: 28px 32px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.cta-inline div { flex: 1; min-width: 220px; }
.cta-inline h3 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.cta-inline p { color: rgba(255,255,255,.9); font-size: .92rem; }
.cta-inline .btn { background: #fff; color: var(--orange-dark); box-shadow: 0 6px 0 rgba(0,0,0,.15); flex: 0 0 auto; }

/* ---- Requisitos / pros-cons ---- */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.req-box { border: 2px solid var(--line); border-radius: 14px; padding: 22px 24px; background: #fff; }
.req-box.pros { border-color: #bbf7d0; }
.req-box.cons { border-color: #fecaca; }
.req-box h3 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.req-box ul { list-style: none; padding: 0; margin: 0; }
.req-box li { padding: 6px 0 6px 26px; position: relative; font-size: .92rem; color: var(--text); }
.req-box.pros li::before { content: '✓'; position: absolute; left: 0; color: var(--green-dark); font-weight: 800; }
.req-box.cons li::before { content: '✕'; position: absolute; left: 0; color: var(--danger); font-weight: 800; }

@media (max-width: 900px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .entidad-card { grid-template-columns: auto 1fr; }
  .entidad-cta { grid-column: 1 / -1; }
  .page-hero h1 { font-size: 1.8rem; }
}

/* ---- Logos de entidad: SIEMPRE recuadro rectangular blanco ---- */
.lender-logo.has-img, .offer-logo.has-img, .entidad-logo.has-img {
  background: #fff !important;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 10px;
}
.lender-logo.has-img img, .offer-logo.has-img img, .entidad-logo.has-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* Tabla comparadora (home): rectángulo compacto */
.lender-logo.has-img {
  width: 78px;
  height: 42px;
  padding: 6px 9px;
}

/* Comparador y landings (tarjeta entidad): rectángulo mediano */
.entidad-logo.has-img {
  width: 104px;
  height: 56px;
  padding: 8px 12px;
}

/* Página /ofertas/: rectángulo grande */
.offer-logo.has-img {
  width: 120px;
  height: 68px;
  border-radius: 12px;
  padding: 10px 14px;
}

@media (max-width: 680px) {
  .offer-logo.has-img { width: 140px; height: 62px; margin: 0 auto; }
  .entidad-logo.has-img { margin: 0 auto; }
}

/* ============================================================
   Modal de solicitud (form + loading) — flujo en la home
   ============================================================ */
.cn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.cn-modal-overlay.open { display: flex; animation: cnFade .2s ease; }
@keyframes cnFade { from { opacity: 0; } to { opacity: 1; } }
.cn-modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  border-top: 6px solid var(--orange);
  position: relative;
  animation: cnSlide .3s ease;
  margin: auto 0;
}
@keyframes cnSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cn-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: .15s;
}
.cn-modal-close:hover { background: var(--line); color: var(--ink); }
.cn-modal-body { padding: 34px 32px; }
.cn-modal .progress-steps { margin-bottom: 26px; }
.cn-modal h2.modal-title { font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -.4px; }
.cn-modal .modal-intro { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
/* loading dentro del modal */
.cn-modal-loading { text-align: center; padding: 20px 0 4px; display: none; }
.cn-modal-loading.active { display: block; }
.cn-modal-loading .spinner { margin: 0 auto 24px; }
.cn-modal-loading h2 { font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.cn-modal-loading > p { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
@media (max-width: 520px) {
  .cn-modal-body { padding: 28px 20px; }
  .cn-modal-overlay { padding: 16px 10px; }
}

/* ============================================================
   Sistema de iconos SVG (reemplazo de emojis)
   ============================================================ */
.cn-icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
/* Icono dentro de círculos/badges de beneficios (más grande) */
.benefit-icon .cn-icon { width: 26px; height: 26px; color: var(--orange-dark); vertical-align: 0; }
.blog-thumb .cn-icon { width: 46px; height: 46px; color: #fff; vertical-align: 0; }
.trust-item .cn-icon { width: 15px; height: 15px; vertical-align: -0.2em; }
.check-icon .cn-icon { width: 14px; height: 14px; color: #fff; vertical-align: 0; }
.quiz-opt .cn-icon { width: 22px; height: 22px; color: var(--orange-dark); }
.answer-box .cn-icon, .cta-inline .cn-icon { vertical-align: -0.15em; }
.offers-summary .cn-icon { width: 16px; height: 16px; color: var(--green-dark); }
.loading-step .cn-icon, .step-icon .cn-icon { width: 14px; height: 14px; }
/* icono en el toggle de menú móvil */
.nav-toggle .cn-icon { width: 24px; height: 24px; color: #fff; }
/* icono en botón cerrar modal */
.cn-modal-close .cn-icon { width: 18px; height: 18px; }

/* Icono en opciones de quiz */
.quiz-opt .ico { display: inline-flex; align-items: center; justify-content: center; color: var(--orange-dark); }
.quiz-opt .ico .cn-icon { width: 22px; height: 22px; }

/* ============================================================
   Optimización móvil — ajustes adicionales
   ============================================================ */

/* Evitar cualquier scroll horizontal accidental */
html, body { max-width: 100%; overflow-x: hidden; }
* { min-width: 0; }
img, svg, table { max-width: 100%; }

@media (max-width: 900px) {
  /* Hero: apilado y con menos padding */
  .hero { padding: 44px 0 64px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-sub, .hero-points { max-width: 100%; }
  .hero::before { width: 300px; height: 300px; top: -80px; right: -80px; }
  .simulator { box-shadow: 0 16px 40px rgba(0,0,0,.25); }

  /* Tabla comparadora (home) sí hace scroll horizontal por sus 5 columnas */
  .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Tablas de contenido (guías / comparativas X vs Y): que quepan reduciendo texto */
  .prose table { font-size: .82rem; }
  .prose th, .prose td { padding: 8px 9px; }

  /* Comparativas: la tabla de la guía puede desbordar */
  .prose { max-width: 100%; }

  /* Filtros del comparador: permitir scroll horizontal si no caben */
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .filter-chip { flex-shrink: 0; }

  /* CTA inline: apilar botón debajo */
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .cta-inline .btn { width: 100%; }

  /* Breadcrumb: no romper feo, permitir wrap */
  .breadcrumb { font-size: .78rem; }
}

@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero p { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  /* Botones grandes ocupan todo el ancho para mejor toque */
  .btn-lg { padding: 16px 24px; font-size: 1rem; }

  /* Tarjeta de entidad (comparador/landing): apilar en 1 columna */
  .entidad-card { grid-template-columns: 1fr; text-align: center; gap: 14px; padding: 22px 18px; }
  .entidad-logo, .entidad-logo.has-img { margin: 0 auto; }
  .entidad-info h3 { justify-content: center; }
  .entidad-rating, .entidad-meta, .entidad-info .offer-features { justify-content: center; }
  .entidad-meta { gap: 4px 12px; }
  .entidad-cta .btn { width: 100%; }
  .entidad-rank { left: 50%; transform: translateX(-50%); }

  /* Bloque stats en dark section (pasos): número más pequeño */
  .step-num { font-size: 4rem; }

  /* FAQ: menos padding lateral */
  .faq-q { padding: 16px 16px; font-size: .95rem; }
  .faq-a-inner { padding: 0 16px 16px; }

  /* Testimonios / benefit padding */
  .benefit-card { padding: 24px 20px; }

  /* Modal: casi pantalla completa */
  .cn-modal-overlay { padding: 0; align-items: stretch; }
  .cn-modal { max-width: 100%; border-radius: 0; min-height: 100%; }
  .cn-modal-body { padding: 26px 18px; }
  .progress-step span { display: none; }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn { width: 100%; }
  .form-nav .btn-outline { order: 2; }
}

@media (max-width: 400px) {
  .logo { font-size: 1.1rem; }
  .logo-icon { width: 36px; height: 36px; }
  .hero h1 { font-size: 1.75rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
  .slider-value { font-size: 1.4rem; }
  .calc-result-big { font-size: 2.4rem; }
  .header-cta .btn { padding: 9px 13px; font-size: .8rem; }
}

/* ============================================================
   REFINAMIENTO DE DISEÑO — artículos, prose, tablas, page-hero
   (overrides al final para mayor prioridad)
   ============================================================ */

/* ---- Page hero (landing + artículo): degradado sutil + acento ---- */
.page-hero {
  background:
    radial-gradient(680px 320px at 88% -10%, rgba(249,115,22,.22), transparent 60%),
    linear-gradient(160deg, #0d1420 0%, var(--dark) 55%, #16223a 100%);
  padding: 64px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero h1 { font-size: 2.6rem; letter-spacing: -1.2px; }
.page-hero p { color: rgba(255,255,255,.82); }

/* ---- Prose: mejor ritmo de lectura ---- */
.prose { font-size: 1.03rem; line-height: 1.75; }
.prose p { margin-bottom: 18px; color: #3a4657; }
.prose h2 {
  font-size: 1.7rem;
  margin: 48px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 90px;
  position: relative;
}
/* barra de acento antes de cada H2 */
.prose h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  margin-bottom: 16px;
}
.prose h3 { font-size: 1.25rem; margin: 32px 0 10px; scroll-margin-top: 90px; }
.prose > p:first-of-type { font-size: 1.1rem; color: var(--ink); }
.prose ul li::marker { color: var(--orange); }
.prose ul li, .prose ol li { padding-left: 4px; }
.prose a { text-decoration-color: rgba(234,88,12,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--orange-dark); }

/* ---- Tabla de contenido: TOC en 1 solo número (arreglar doble) ---- */
.toc {
  background: linear-gradient(180deg, #fff, var(--bg));
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 0 0 36px;
}
.toc h4 { color: var(--ink); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.prose .toc ol li, .toc li { list-style: none; counter-increment: toc; margin-bottom: 0; padding-left: 0; }
.toc li::before { content: none; }        /* quitar el número duplicado del ::before */
.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .96rem;
}
.toc li:last-child a { border-bottom: none; }
.toc a::before {
  content: counter(toc);
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 800;
  font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
}
.toc a:hover::before { background: var(--orange); color: #fff; }

/* ---- Tablas de contenido: encabezado degradado + bordes suaves ---- */
.prose table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
.prose th, .prose td { border: none; border-bottom: 1px solid var(--line); }
.prose th {
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 16px;
}
.prose td { padding: 13px 16px; }
.prose tr:last-child td { border-bottom: none; }
.prose tbody tr:nth-child(even) td { background: var(--bg); }
.prose tbody tr:hover td { background: var(--orange-soft); }
/* primera columna de las tablas = etiqueta en negrita */
.prose tbody td:first-child { font-weight: 700; color: var(--ink); }

/* ---- Blockquote: cita destacada tipo "nota" ---- */
.prose blockquote {
  position: relative;
  border: none;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px 18px 24px;
  margin: 24px 0;
  color: var(--ink);
  font-weight: 500;
}

/* ---- Answer box (AEO): más pulido ---- */
.answer-box {
  background: linear-gradient(180deg, #fff, var(--orange-soft));
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 8px 24px rgba(249,115,22,.08);
}
.answer-box p { margin-bottom: 0; font-size: 1.02rem; color: var(--ink); }
.answer-box .tldr {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 2px 8px rgba(234,88,12,.3);
}

/* ---- Barra de progreso de lectura (artículos) ---- */
.reading-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  z-index: 200;
  transition: width .1s linear;
}

/* ---- Autor / meta del artículo (chip) ---- */
.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50px;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

@media (max-width: 680px) {
  .page-hero h1 { font-size: 1.75rem; }
  .prose h2 { font-size: 1.4rem; margin: 36px 0 12px; }
  .prose { font-size: 1rem; }
  .toc { padding: 18px 18px; }
}

/* ============================================================
   REFINAMIENTO — tarjetas de entidad y de blog
   ============================================================ */

/* ---- Tarjeta de entidad (comparador / landing) ---- */
.entidad-card {
  padding: 24px 26px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.entidad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.entidad-card.featured {
  border-color: var(--orange);
  background: linear-gradient(180deg, var(--orange-soft) 0%, #fff 55%);
  box-shadow: 0 10px 30px rgba(249,115,22,.12);
}
/* rank: círculo con número grande */
.entidad-rank {
  top: -13px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .74rem;
  letter-spacing: .3px;
  box-shadow: 0 4px 10px rgba(17,24,39,.2);
}
.entidad-info h3 { font-size: 1.2rem; letter-spacing: -.3px; }
.entidad-rating .stars { text-shadow: none; }
/* meta con separadores tipo "píldora" */
.entidad-meta { gap: 6px 14px; }
.entidad-meta span { position: relative; }
.entidad-cta .btn { min-width: 130px; }

/* ---- Blog index cards ---- */
.blog-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.blog-thumb {
  position: relative;
  height: 140px;
  background: linear-gradient(140deg, var(--dark) 0%, #23324d 55%, var(--orange-dark) 130%);
}
.blog-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at 80% 20%, rgba(249,115,22,.35), transparent 70%);
}
.blog-thumb .cn-icon { position: relative; z-index: 1; opacity: .95; }
.blog-body { padding: 22px 24px 24px; }
.blog-card h3 { font-size: 1.12rem; letter-spacing: -.3px; line-height: 1.35; }
.blog-card .blog-link {
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .15s ease;
}
.blog-card:hover .blog-link { gap: 10px; }

/* ---- CTA inline: más presencia ---- */
.cta-inline {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(234,88,12,.22);
}

/* ============================================================
   OFFER CARD 2.0 — tarjeta de oferta detallada (/ofertas/)
   ============================================================ */
.offer-card2 {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 190px 1fr 210px;
  gap: 0;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.offer-card2:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d7dce4; }
.offer-card2.featured { border-color: var(--orange); box-shadow: 0 12px 34px rgba(249,115,22,.16); }

/* Badge "Recomendado" (encima de la tarjeta, centrado) */
.offer-ribbon {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(234,88,12,.35);
  z-index: 3;
  white-space: nowrap;
}
.offer-ribbon .cn-icon { width: 13px; height: 13px; vertical-align: -2px; }
.offers-list { padding-top: 8px; }
.offer-card2 { overflow: visible; }
.offer-card2 .oc-brand { border-radius: 20px 0 0 20px; }
@media (max-width: 860px) { .offer-card2 .oc-brand { border-radius: 20px 20px 0 0; } }

/* --- Columna marca --- */
.oc-brand {
  background: linear-gradient(180deg, var(--bg), #fff);
  border-right: 1px solid var(--line);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.offer-card2.featured .oc-brand { background: linear-gradient(180deg, var(--orange-soft), #fff); }
.oc-rank {
  align-self: flex-start;
  background: var(--dark);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: .3px;
}
.offer-card2.featured .oc-rank { background: var(--orange); }
.oc-logo {
  width: 128px; height: 60px;
  background: #fff !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800; font-size: 1.2rem;
}
.oc-logo img { width: 100%; height: 100%; object-fit: contain; }
.oc-rating { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.oc-stars { font-size: .95rem; letter-spacing: 1px; line-height: 1; }
.oc-stars .star { color: var(--yellow); }
.oc-stars .star.off { color: #dfe3ea; }
.oc-rating-num { font-size: .9rem; font-weight: 800; color: var(--ink); }
.oc-rating-num small { font-weight: 500; color: var(--muted); font-size: .72rem; }

/* --- Columna datos --- */
.oc-main { padding: 24px 26px; }
.oc-name { font-size: 1.35rem; color: var(--ink); font-weight: 800; letter-spacing: -.4px; margin-bottom: 14px; }
.oc-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.oc-spec { background: #fff; padding: 11px 14px; display: flex; flex-direction: column; gap: 3px; }
.oc-spec-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.oc-spec-val { font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.oc-spec-val.is-zero { color: var(--green-dark); }
.oc-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.oc-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--text); }
.oc-feats li .cn-icon { width: 16px; height: 16px; color: var(--green-dark); flex-shrink: 0; margin-top: 2px; }

/* --- Columna acción --- */
.oc-action {
  border-left: 1px solid var(--line);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
}
.offer-card2.featured .oc-action { background: var(--orange-soft); }
.oc-highlight {
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  display: flex; flex-direction: column;
}
.oc-highlight strong { font-family: var(--heading); font-size: 1.5rem; color: var(--green-dark); letter-spacing: -.5px; }
.oc-btn { width: 100%; box-shadow: 0 6px 0 var(--orange-dark); }
.oc-note { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--muted); text-align: center; }
.oc-note .cn-icon { width: 13px; height: 13px; }

/* Responsive */
@media (max-width: 860px) {
  .offer-card2 { grid-template-columns: 1fr; }
  .oc-brand {
    flex-direction: row; justify-content: flex-start; gap: 16px;
    border-right: none; border-bottom: 1px solid var(--line);
    text-align: left; padding: 18px 20px;
  }
  .oc-rank { position: absolute; top: 14px; right: 14px; align-self: auto; }
  .oc-rating { align-items: flex-start; }
  .oc-action { border-left: none; border-top: 1px solid var(--line); }
  .oc-btn { max-width: 340px; }
  .oc-specs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .oc-specs { grid-template-columns: 1fr 1fr; }
  .oc-name { font-size: 1.2rem; }
  .oc-logo { width: 110px; height: 52px; }
}

/* ============================================================
   FIX contraste — CTA inline (fondo naranja): texto SIEMPRE claro
   (evita que .prose p/.prose h3 lo pinten oscuro)
   ============================================================ */
.cta-inline h3 { color: #fff !important; }
.cta-inline p { color: rgba(255,255,255,.92) !important; }
.cta-inline h3::before { content: none !important; }   /* sin barra naranja del H2/H3 prose */
.cta-inline .btn {
  background: #fff !important;
  color: var(--orange-dark) !important;
  text-decoration: none !important;   /* quitar subrayado tipo enlace */
  font-weight: 700;
}
.cta-inline .btn:hover { background: var(--bg) !important; }

/* ============================================================
   Cuenta atrás en el círculo de carga (modal + procesando)
   ============================================================ */
.cn-countdown {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}
.cn-countdown .spinner {
  width: 96px;
  height: 96px;
  margin: 0;
  border-width: 5px;
}
.cn-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange-dark);
  line-height: 1;
}
.cn-count .cn-icon { width: 34px; height: 34px; color: var(--green-dark); }

/* Loading dentro del modal: centrado vertical en móvil (modal full-screen) */
.cn-modal-loading { text-align: center; padding: 20px 0 4px; display: none; }
.cn-modal-loading.active { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; }
.cn-modal-loading .loading-steps { width: 100%; max-width: 340px; }

@media (max-width: 680px) {
  .cn-modal-loading.active { min-height: calc(100vh - 120px); }
  .cn-countdown, .cn-countdown .spinner { width: 88px; height: 88px; }
  .cn-count { font-size: 2.2rem; }
}

/* Asterisco de campo obligatorio */
.req { color: var(--danger); font-weight: 700; margin-left: 1px; }
