/* ============================================================
   Dinero Hoy — styles.css
   Diseño: V1 "Confianza Esmeralda" + toques de V3 "Neo Fintech".
   Verde esmeralda + acento dorado, con lima como acento secundario.
   Tipografía: Sora (títulos) + Manrope (texto).
   ============================================================ */

:root {
  --ink: #0d2b22;
  --ink-2: #3f5c53;
  --ink-3: #6b8378;
  --bg: #f3f8f5;
  --card: #ffffff;
  --line: #e2ede8;

  --em: #0f9d63;        /* esmeralda principal */
  --em-600: #0c8353;
  --em-700: #0a6b45;
  --em-900: #063a28;    /* verde profundo (fondos oscuros) */
  --em-soft: #e4f5ec;
  --mint: #d6f0e2;

  --gold: #f5b638;      /* acento CTA (dorado) */
  --gold-dark: #e9a417;
  --gold-soft: #fff2d4;

  --lime: #b6f24a;      /* acento secundario (V3) */
  --lime-dark: #95d422;

  --danger: #d64545;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(6, 58, 40, .10);
  --shadow-lg: 0 26px 64px rgba(6, 58, 40, .18);

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* evita scroll horizontal en móvil */
  max-width: 100%;
}

/* Ocultar la barra de scroll (mantiene el scroll funcional) */
html { -ms-overflow-style: none; scrollbar-width: none; }         /* IE/Edge y Firefox */
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }  /* Chrome/Safari */
.modal::-webkit-scrollbar { width: 0; display: none; }
.modal { scrollbar-width: none; -ms-overflow-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; overflow-wrap: break-word; }
a { color: var(--em-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; width: 100%; }
.accent { color: var(--em); }

.svic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.svic-sm { width: 16px; height: 16px; }
.svic-inherit { color: inherit; }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s;
  text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--em-900); box-shadow: 0 8px 22px rgba(245, 182, 56, .4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 182, 56, .5); }
.btn-ghost { background: var(--em-soft); color: var(--em-700); }
.btn-ghost:hover { background: var(--mint); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--em); color: var(--em-700); }
.btn-lg { width: 100%; padding: 17px 24px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--ink);
  text-decoration: none !important;
}
.logo .wm { letter-spacing: -.02em; }
.logo .accent { color: var(--em); }
.logo .dot {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--em) 0%, var(--em-700) 100%);
  display: inline-flex; align-items: center; justify-content: center;
}
.logo .dot svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: var(--em-700); text-decoration: none; }
.nav-links .nav-cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* Dropdown de navegación (silos SEO) */
.has-drop > a::after { content: "▾"; font-size: 10px; margin-left: 5px; color: var(--ink-3); }
.drop {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s; z-index: 60;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.drop li { width: 100%; }
.drop a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.drop a:hover { background: var(--em-soft); color: var(--em-700); text-decoration: none; }
.drop a small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.drop a:hover small { color: var(--em-600); }

/* ---------------- Hero (V1: split) ---------------- */
.hero {
  position: relative; overflow: hidden; padding: 70px 0 90px;
  background: radial-gradient(1000px 460px at 88% -8%, var(--mint), transparent 60%), #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  background: var(--em-soft); color: var(--em-700);
}
.pill.hot { background: var(--gold-soft); color: #a9760a; }
.hero h1 { font-size: clamp(34px, 4.8vw, 54px); font-weight: 800; margin-bottom: 18px; color: var(--ink); }
.hero h1 .accent { color: var(--em); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 500px; margin-bottom: 26px; }
.checks { list-style: none; display: grid; gap: 11px; margin-bottom: 30px; }
.checks li { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15.5px; }
.checks .ck {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--em); color: #fff; font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.trust-row b { color: var(--ink); }
.trust-row .stars { color: var(--gold); }

/* ---------------- Tarjeta calculadora (V1) ---------------- */
.form-card {
  background: var(--card); color: var(--ink);
  border-radius: 24px; padding: 30px; box-shadow: var(--shadow-lg);
  position: relative;
}
/* borde con degradado sutil (V1) */
.form-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1.5px;
  background: linear-gradient(160deg, var(--em), transparent 42%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .5;
}
.form-card h3 { font-size: 22px; margin-bottom: 4px; }
.form-card .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 22px; }
.slider-block { margin-bottom: 20px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.slider-top label { font-weight: 700; font-size: 14px; }
.slider-val { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--em-700); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px;
  background: var(--line); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 6px solid var(--em); box-shadow: 0 3px 10px rgba(6, 58, 40, .3);
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 6px solid var(--em); box-shadow: 0 3px 10px rgba(6, 58, 40, .3);
}
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.summary { background: var(--em-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.summary .row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 5px 0; color: var(--ink-2); }
.summary .row b { color: var(--ink); }
.summary .row b.green { color: var(--em-600); }
.summary .row.total { border-top: 1px dashed var(--em); margin-top: 6px; padding-top: 11px; font-weight: 800; }
.summary .row.total b { font-size: 18px; color: var(--em-700); }
.calc-note { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.calc-note .svic { color: var(--gold-dark); margin-top: 2px; }
.legal-line { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 12px; text-align: center; }

/* ---------------- Partners ---------------- */
.partners { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.partners p { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 42px; }
.plogo { height: 30px; display: inline-flex; align-items: center; opacity: .75; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.plogo:hover { opacity: 1; filter: none; }
.plogo img { height: 100%; width: auto; object-fit: contain; }
.plogo.noimg { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: #a9bdb4; }

/* ---------------- Secciones ---------------- */
.pad { padding: 82px 0; }
.sec-mint { background: var(--em-soft); }
.sec-dark { background: var(--em-900); color: #eaf6f0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--em-700); background: var(--em-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px;
}
.sec-mint .eyebrow { background: #fff; }
.sec-dark .eyebrow { background: rgba(255, 255, 255, .12); color: var(--gold); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }
.sec-head p { color: var(--ink-2); font-size: 16.5px; }
.sec-dark .sec-head p { color: #a9d3c2; }

/* Cómo funciona (V1) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px 24px; box-shadow: var(--shadow);
}
.step .num {
  position: absolute; top: -15px; left: 22px;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--em); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(6, 58, 40, .3);
}
.step .emo { display: inline-flex; color: var(--em); margin: 8px 0 12px; }
.step .emo .svic { width: 30px; height: 30px; }
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* Ventajas (fondo oscuro estilo V1, iconos con acentos alternos) */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bcard { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 26px; }
.bcard .ico {
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 14px;
  background: var(--gold); color: var(--em-900);
  display: inline-flex; align-items: center; justify-content: center;
}
.bcard:nth-child(3n+2) .ico { background: var(--lime); color: var(--em-900); }
.bcard h3 { font-size: 16.5px; margin-bottom: 8px; color: #fff; }
.bcard p { font-size: 14px; color: #a9d3c2; }

/* ---------------- Comparativa (V3: tabla moderna con barras) ---------------- */
.mtable {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.mrow {
  display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 1.1fr auto; gap: 16px;
  align-items: center; padding: 18px 20px; border-radius: 18px; transition: background .15s;
}
.mrow.mrow-head {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 12px 20px;
}
.mrow.mrow-data:hover { background: var(--bg); }
.mrow.mrow-best { background: var(--em-900); color: #eaf6f0; }
.mrow.mrow-best .m-brand .m-nm,
.mrow.mrow-best .m-cell strong { color: #fff; }
.mrow.mrow-best .m-cell span { color: #a9d3c2; }
.m-brand { display: flex; align-items: center; gap: 12px; }
.m-brand .m-logo {
  width: 92px; height: 50px; border-radius: 10px; flex: none;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; padding: 6px 10px;
}
.m-brand .m-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.m-brand .m-logo.noimg { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--em-700); background: #fff; }
.mrow.mrow-best .m-brand .m-logo { background: #fff; border-color: var(--line); }
.mrow.mrow-best .m-brand .m-logo.noimg { color: var(--em-700); }
.m-brand .m-nm { font-family: var(--font-head); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.m-tagbest { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--gold); color: var(--em-900); border-radius: 5px; padding: 2px 7px; }
.m-brand .m-rt { font-size: 11.5px; color: var(--gold-dark); }
.mrow.mrow-best .m-brand .m-rt { color: var(--lime); }
.m-brand .m-rt b { color: inherit; }
.m-cell span { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 2px; }
.m-cell strong { font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.m-cell .m-em { color: var(--em-600) !important; }
.mrow.mrow-best .m-cell .m-em { color: var(--lime) !important; }
.m-bar { height: 6px; border-radius: 99px; background: var(--line); margin-top: 6px; overflow: hidden; }
.m-bar i { display: block; height: 100%; background: var(--em); border-radius: 99px; }
.mrow.mrow-best .m-bar { background: rgba(255, 255, 255, .18); }
.mrow.mrow-best .m-bar i { background: var(--lime); }
.m-cta .btn { padding: 11px 20px; }
.table-note { font-size: 12.5px; color: var(--ink-3); margin-top: 16px; text-align: center; }

/* ---------------- Requisitos ---------------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow);
}
.chip .e { display: inline-flex; color: var(--em); }

/* ---------------- Opiniones ---------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.review .stars { color: var(--gold-dark); font-size: 15px; letter-spacing: 2px; }
.review q { font-size: 14.5px; color: var(--ink-2); quotes: "“" "”"; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--em-soft); color: var(--em-700); font-family: var(--font-head); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.review .who b { font-size: 14.5px; display: block; }
.review .meta { font-size: 12.5px; color: var(--ink-3); }
.review .verif { color: var(--em); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.review .verif .svic { width: 13px; height: 13px; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; padding: 18px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--em); font-size: 20px; font-weight: 800; transition: transform .2s; flex: none; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: 14.5px; padding: 0 0 18px; }

/* ---------------- Banda CTA final ---------------- */
.cta-band {
  text-align: center; border-radius: 24px; padding: 52px 30px;
  background:
    radial-gradient(500px 240px at 82% -20%, rgba(182, 242, 74, .18), transparent 60%),
    linear-gradient(140deg, var(--em-900) 0%, var(--em-700) 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 22px; color: #fff; }

/* ---------------- Footer ---------------- */
footer { background: var(--em-900); color: #a9d3c2; padding: 54px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; margin-bottom: 34px; }
.foot-brand .logo { color: #fff; margin-bottom: 14px; }
.foot-brand .logo .accent { color: var(--gold); }
.foot-brand p { font-size: 14px; max-width: 340px; }
.foot-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 9px; }
.foot-col a { color: #a9d3c2; font-size: 14px; }
.foot-col a:hover { color: var(--gold); text-decoration: none; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; display: grid; gap: 10px; }
.disclaimer p { font-size: 12.5px; line-height: 1.6; color: #7fb39f; }
.disclaimer strong { color: #fff; }
.copy { text-align: center; font-size: 12.5px; color: #6a9d8a; margin-top: 22px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--em); color: #fff; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); text-decoration: none !important;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(6, 40, 30, .55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
body.modal-lock { overflow: hidden; }
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: 94vh; overflow-y: auto;
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg);
  animation: modal-in .28s cubic-bezier(.2,.7,.3,1); overflow-x: hidden;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff; font-size: 15px; transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.35); }

/* Cabecera con gradiente (full-width dentro del modal) */
.modal-head {
  background: radial-gradient(420px 200px at 85% -30%, rgba(182,242,74,.22), transparent 60%),
              linear-gradient(140deg, var(--em-900), var(--em-700));
  color: #fff; padding: 26px 30px 24px; text-align: left;
}
.modal-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 999px; padding: 5px 12px; margin-bottom: 12px;
}
.modal-badge .svic { color: var(--gold); }
.modal-head h3 { font-size: 21px; margin-bottom: 10px; color: #fff; }
.modal-summary { font-size: 14px; color: #eafff5; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 9px 14px; display: inline-block; }
.modal-summary b { color: var(--gold); }

#loan-form { padding: 24px 30px 26px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; color: var(--ink); }
.req { color: var(--danger); }

/* Input con icono a la izquierda */
.input-wrap { position: relative; display: flex; align-items: stretch; }
.input-wrap .in-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; padding: 14px 15px 14px 42px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .15s, box-shadow .15s; background: var(--bg); color: var(--ink);
}
.field input:focus { border-color: var(--em); background: #fff; box-shadow: 0 0 0 3px rgba(15, 157, 99, .15); }
.input-wrap:focus-within .in-ico { stroke: var(--em); }
.field input.invalid { border-color: var(--danger); background: #fef6f6; }
/* teléfono: prefijo +34, sin icono */
.phone-wrap .phone-prefix {
  display: inline-flex; align-items: center; padding: 0 14px;
  background: var(--em-soft); border: 1.5px solid var(--line); border-right: 0;
  border-radius: 12px 0 0 12px; font-weight: 800; font-size: 14.5px; color: var(--em-700);
}
.phone-wrap input { border-radius: 0 12px 12px 0 !important; padding-left: 15px !important; }
.field-hint { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.field-error { display: block; font-size: 12.5px; color: var(--danger); margin-top: 5px; min-height: 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; cursor: pointer; }
.checkbox input { margin-top: 2px; accent-color: var(--em); width: 17px; height: 17px; flex: none; }
#loan-form .btn-lg { margin-top: 8px; }

/* Fila de confianza bajo el botón */
.modal-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.modal-trust span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.modal-trust .svic { color: var(--em); }

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  width: min(420px, calc(100vw - 40px));
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow-lg); display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; margin-bottom: 8px; }
.cookie-banner h4 .svic { color: var(--gold-dark); }
.cookie-banner p { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; padding: 10px 14px; font-size: 14px; }

/* ---------------- Páginas interiores (contenido, blog, legal) ---------------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 60px 0 66px;
  background:
    radial-gradient(680px 320px at 88% -30%, rgba(182, 242, 74, .18), transparent 60%),
    linear-gradient(155deg, var(--em-900) 0%, var(--em-700) 62%, var(--em-600) 100%);
}
/* patrón de puntos sutil para dar textura */
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
}
/* franja dorada inferior */
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--lime));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); color: #fff; max-width: 800px; }
.page-hero .crumb {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.page-hero .crumb a { color: rgba(255, 255, 255, .9); }
.page-hero .crumb a:hover { color: var(--gold); text-decoration: none; }

.page-body { padding: 0 0 80px; }
/* la tarjeta de contenido "sube" sobre el hero para dar profundidad */
.page-body .prose {
  max-width: 820px; margin: -34px auto 0; position: relative; z-index: 2;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 46px 52px;
}

/* Tipografía de contenido */
.prose > p:first-of-type,
.prose .lead-p { font-size: 17px; color: var(--ink); }
.prose h2 {
  font-size: 25px; margin: 40px 0 16px; padding-left: 16px; position: relative; color: var(--ink);
}
.prose h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  border-radius: 3px; background: linear-gradient(180deg, var(--em), var(--em-700));
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18.5px; margin: 26px 0 10px; color: var(--ink); }
.prose p, .prose li { font-size: 15.5px; color: var(--ink-2); margin-bottom: 13px; line-height: 1.7; }
.prose strong { color: var(--ink); }
.prose a:not(.btn):not(.tbtn) { color: var(--em-700); font-weight: 600; border-bottom: 1px solid var(--mint); }
.prose a:not(.btn):not(.tbtn):hover { border-bottom-color: var(--em); text-decoration: none; }

/* Listas con viñeta check (ul) y número en círculo (ol) */
.prose ul, .prose ol { padding: 0; margin: 16px 0 20px; list-style: none; }
.prose ul > li { position: relative; padding-left: 32px; margin-bottom: 11px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--em-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6b45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.prose ol { counter-reset: dh; }
.prose ol > li { position: relative; padding-left: 40px; margin-bottom: 13px; counter-increment: dh; }
.prose ol > li::before {
  content: counter(dh); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--em); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.prose .updated {
  display: inline-block; font-size: 12px; color: var(--em-700); font-style: normal; font-weight: 700;
  background: var(--em-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 4px;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Tabla de contenidos (TOC) — se inserta por JS en artículos largos */
.toc {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin: 0 0 30px;
}
.toc-title {
  font-family: var(--font-head); font-weight: 800; font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--em-700); margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.toc-title svg { width: 15px; height: 15px; }
.toc ol { counter-reset: toc; list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc ol > li { counter-increment: toc; padding: 0; margin: 0; }
.toc ol > li::before { display: none; }
.toc a {
  display: block; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); border: 0; position: relative; padding-left: 30px;
}
.toc a::before {
  content: counter(toc); position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-size: 12px; font-weight: 800; color: var(--em);
}
.toc a:hover { background: var(--em-soft); color: var(--em-700); text-decoration: none; }
.prose h2[id] { scroll-margin-top: 84px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .foot-brand { grid-column: 1 / 3; }
}
@media (max-width: 720px) {
  .mrow { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .mrow.mrow-head { display: none; }
  .mrow .m-brand { grid-column: 1 / 3; }
  .mrow .m-cta { grid-column: 1 / 3; }
  .mrow .m-cta .btn { width: 100%; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .nav-cta { display: block; }
  .nav-toggle { display: block; }
  .nav > .btn { display: none; }
  .hero { padding: 44px 0 56px; }
  .form-card { padding: 22px; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .pad { padding: 56px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 44px 0 50px; }
  .page-body .prose { padding: 26px 20px; margin-top: -22px; border-radius: 18px; }
  .prose h2 { font-size: 21px; margin: 30px 0 12px; }
  .prose > p:first-of-type, .prose .lead-p { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }

  /* Menú móvil tipo acordeón: submenús colapsados, se abren al tocar el padre */
  .nav-links { max-height: calc(100vh - 72px); overflow-y: auto; }
  .has-drop > a { display: flex; align-items: center; justify-content: space-between; }
  .drop {
    position: static; transform: none; box-shadow: none; border: 0;
    border-left: 2px solid var(--em-soft); border-radius: 0;
    padding: 0 0 0 12px; margin: 0 0 4px; min-width: 0;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease;
  }
  .has-drop.open .drop { max-height: 600px; opacity: 1; visibility: visible; margin: 4px 0 10px; }
  .has-drop:hover .drop, .has-drop:focus-within .drop { transform: none; }
  /* flecha indicadora que rota al abrir */
  .has-drop > a::after { content: "▾"; font-size: 11px; color: var(--ink-3); transition: transform .2s; }
  .has-drop.open > a::after { transform: rotate(180deg); }

  /* Cookie banner compacto en móvil: barra inferior a todo el ancho */
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px 18px; border-radius: 14px; }
  .cookie-banner p { font-size: 12.5px; margin-bottom: 12px; }
  .cookie-actions .btn { padding: 11px 14px; }
}

/* ============================================================
   Componentes de páginas SEO (contenido, GEO/AEO, tools)
   ============================================================ */

/* Byline E-E-A-T (autor + revisado + actualizado) */
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line);
  padding-bottom: 18px; margin-bottom: 26px;
}
.byline .bl-item {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.byline .bl-item svg { width: 15px; height: 15px; color: var(--em); }
.byline b { color: var(--ink); font-weight: 700; }
.byline a { color: inherit; text-decoration: none; }
.byline a:hover b { color: var(--em-700); text-decoration: underline; }

/* Answer box (respuesta directa para AEO/GEO — featured snippets, IA) */
.answer-box {
  position: relative; background: linear-gradient(135deg, var(--em-soft), #eefaf3);
  border: 1px solid var(--mint); border-left: 5px solid var(--em); border-radius: 14px;
  padding: 20px 22px 20px; margin: 0 0 28px;
}
.answer-box::before {
  content: "Respuesta rápida"; display: inline-block;
  font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--em-700); margin-bottom: 8px;
}
.answer-box p { font-size: 16px; color: var(--em-900); margin: 0; line-height: 1.6; }
.answer-box p strong { color: var(--em-900); }

/* Key facts (datos clave escaneables por IA) */
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 28px; }
.keyfact {
  background: linear-gradient(160deg, #fff, var(--bg)); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 16px; text-align: center; box-shadow: 0 4px 14px rgba(6, 58, 40, .05);
}
.keyfact .kf-n { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--em-700); line-height: 1.1; }
.keyfact .kf-l { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* Tabla dentro de prose (comparativa de entidades) */
/* Cabecera de marca en páginas de opiniones (logo real de la entidad) */
.review-brand { display: flex; align-items: center; gap: 18px; padding: 4px 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.review-brand .rb-logo { width: 120px; height: 64px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 9px 14px; }
.review-brand .rb-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.review-brand .rb-logo.noimg { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--em-700); }
.review-brand .rb-info { min-width: 0; }
.review-brand .rb-nm { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink); margin: 0 0 4px; }
.review-brand .rb-rt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.review-brand .rb-rt .rb-score { font-family: var(--font-head); font-weight: 800; color: var(--em-700); }
.review-brand .rb-rt .rb-stars { color: var(--gold-dark); letter-spacing: 1px; }
.review-brand .rb-rt .rb-rev { color: var(--ink-3); }

.prose .ptable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; margin: 24px 0; box-shadow: 0 6px 20px rgba(6, 58, 40, .06); }
/* Sombra-gradiente a la derecha que insinúa scroll horizontal en tablas anchas */
.prose .ptable-wrap { position: relative; background:
  linear-gradient(90deg, #fff 30%, transparent) 0 0 / 40px 100% no-repeat,
  linear-gradient(-90deg, #fff 30%, transparent) 100% 0 / 40px 100% no-repeat,
  radial-gradient(farthest-side at 100% 50%, rgba(6,58,40,.12), transparent) 100% 0 / 16px 100% no-repeat; }
.prose table.ptable { width: 100%; border-collapse: collapse; min-width: 480px; }
.prose table.ptable th {
  background: linear-gradient(135deg, var(--em-900), var(--em-700)); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px; letter-spacing: .02em;
  text-align: left; padding: 15px 16px;
}
.prose table.ptable th:last-child { text-align: center; }
.prose table.ptable td { border-top: 1px solid var(--line); padding: 15px 16px; font-size: 14.5px; color: var(--ink-2); vertical-align: middle; }
.prose table.ptable td:last-child { text-align: center; }
.prose table.ptable tbody tr:nth-child(even) td { background: #fafcfb; }
.prose table.ptable tbody tr:hover td { background: var(--em-soft); }
.prose table.ptable td strong { color: var(--ink); }
.prose table.ptable .tae {
  display: inline-block; color: var(--em-700); font-weight: 800; font-size: 13px;
  background: var(--em-soft); border-radius: 6px; padding: 3px 9px;
}
.prose table.ptable a.tbtn {
  display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--em-900);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 9px;
  text-decoration: none !important; box-shadow: 0 4px 12px rgba(245, 182, 56, .35); transition: transform .15s;
}
.prose table.ptable a.tbtn:hover { transform: translateY(-1px); }

/* Tabla clave-valor (páginas de opiniones): 2 columnas, SIN min-width,
   se adapta al móvil sin cortar la columna de valores. */
.prose table.ptable.ptable-kv { min-width: 0; table-layout: fixed; }
.prose table.ptable.ptable-kv th { width: 38%; white-space: nowrap; }
.prose table.ptable.ptable-kv td { text-align: right; overflow-wrap: anywhere; }
.prose .ptable-wrap:has(.ptable-kv) { overflow-x: visible; }  /* no necesita scroll */
@media (max-width: 560px) {
  .prose table.ptable.ptable-kv th { width: 40%; padding: 13px 12px; font-size: 13px; }
  .prose table.ptable.ptable-kv td { padding: 13px 12px; font-size: 13.5px; }
}

/* CTA embebido en contenido */
.inline-cta {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  border-radius: 18px; padding: 32px 30px; margin: 32px 0;
  background:
    radial-gradient(420px 200px at 82% -30%, rgba(182, 242, 74, .22), transparent 60%),
    linear-gradient(140deg, var(--em-900), var(--em-700));
}
.inline-cta h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.inline-cta p { color: #a9d3c2; font-size: 14.5px; margin-bottom: 18px; }

/* Pros y contras (reviews) */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.pc-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.pc-card.pros { background: linear-gradient(160deg, #f0faf4, #fff); border-color: var(--mint); }
.pc-card.cons { background: linear-gradient(160deg, #fdf1f1, #fff); border-color: #f3d3d3; }
.pc-card h4 { font-family: var(--font-head); font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.pc-card.pros h4 { color: var(--em-600); }
.pc-card.cons h4 { color: var(--danger); }
.pc-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.pc-card ul > li { font-size: 14px; color: var(--ink-2); padding-left: 24px; position: relative; margin: 0 0 9px; line-height: 1.5; }
/* Anula el bullet genérico de .prose ul>li (círculo con check) para no duplicar el icono */
.pc-card.pros ul > li::before,
.pc-card.cons ul > li::before {
  content: "✓"; width: auto; height: auto; border-radius: 0; background: none; top: -1px; left: 0;
  font-weight: 800; font-family: var(--font-head);
}
.pc-card.pros ul > li::before { content: "✓"; color: var(--em); }
.pc-card.cons ul > li::before { content: "✕"; color: var(--danger); }

/* Related links (silo interno) */
.related { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.related h3 { font-size: 18px; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-grid a {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 44px 15px 18px; font-size: 14.5px; font-weight: 700; color: var(--ink);
  position: relative; transition: .16s;
}
.related-grid a::after {
  content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--em); font-size: 17px; font-weight: 700; transition: transform .16s;
}
.related-grid a:hover { border-color: var(--em); text-decoration: none; background: var(--em-soft); box-shadow: 0 8px 20px rgba(6, 58, 40, .08); }
.related-grid a:hover::after { transform: translateY(-50%) translateX(3px); }
.related-grid a span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-top: 3px; }

/* Hub grid (páginas índice de silo) */
/* Fichas de autor (equipo-editorial) — E-E-A-T */
.team { display: grid; gap: 18px; margin: 22px 0 28px; }
.team-card { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 4px 14px rgba(6,58,40,.05); }
.team-avatar { flex: none; width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--em), var(--em-700)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.team-avatar.rev { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--em-900); }
.team-info { min-width: 0; }
.team-info h3 { font-size: 18px; margin: 0 0 2px; }
.team-role { font-size: 13px; font-weight: 700; color: var(--em-700); margin: 0 0 10px !important; }
.team-bio { font-size: 14px; color: var(--ink-2); margin: 0 0 12px !important; }
.team-cred { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.team-cred li { font-size: 12px; font-weight: 600; color: var(--em-700); background: var(--em-soft); border-radius: 999px; padding: 4px 11px; margin: 0 !important; }
.team-cred li::before { display: none !important; }
@media (max-width: 560px) { .team-card { flex-direction: column; gap: 14px; } }

.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hub-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px; box-shadow: var(--shadow); transition: .16s; text-decoration: none !important; display: block; color: var(--ink);
  overflow: hidden;
}
.hub-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--em), var(--lime)); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--em); }
.hub-card:hover::before { transform: scaleX(1); }
.hub-card .hc-ic {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 15px;
  background: linear-gradient(135deg, var(--em-soft), var(--mint)); color: var(--em-700);
  display: grid; place-items: center;
}
.hub-card .hc-ic svg { width: 26px; height: 26px; }
.hub-card h3 { font-size: 17.5px; margin-bottom: 6px; }
.hub-card p { font-size: 13.5px; color: var(--ink-2); }
.hub-card .hc-go { margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--em-700); }

/* Herramienta: calculadora / comparador / test */
.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; max-width: 620px; margin: 0 auto; }
.tool-row { display: grid; gap: 18px; margin-bottom: 18px; }
.tool-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.tool-field .tval { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--em-700); float: right; }
.tool-field select, .tool-field input[type="number"] {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); outline: none;
}
.tool-field select:focus, .tool-field input:focus { border-color: var(--em); box-shadow: 0 0 0 3px rgba(15,157,99,.15); }
.tool-result { background: var(--em-soft); border-radius: 14px; padding: 20px; margin-top: 20px; }
.tool-result .tr-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.tool-result .tr-row b { color: var(--ink); }
.tool-result .tr-row.big { border-top: 1px dashed var(--em); margin-top: 6px; padding-top: 12px; font-weight: 700; }
.tool-result .tr-row.big b { font-size: 20px; color: var(--em-700); }

/* Filtros del comparador */
.filters { display: flex; flex-wrap: wrap; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 24px; box-shadow: var(--shadow); align-items: flex-end; }
.filters .f-group { flex: 1; min-width: 150px; }
.filters label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.filters select { width: 100%; padding: 10px 12px; font: inherit; font-size: 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.filters .f-check { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); padding-bottom: 10px; }
.filters .f-check input { accent-color: var(--em); width: 17px; height: 17px; }

/* Wizard (test ¿qué préstamo me conviene?) */
.wizard { max-width: 560px; margin: 0 auto; }
.wz-step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.wz-step h3 { font-size: 20px; margin-bottom: 18px; text-align: center; }
.wz-opts { display: grid; gap: 12px; }
.wz-opt { display: block; width: 100%; text-align: left; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 18px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; transition: .15s; }
.wz-opt:hover { border-color: var(--em); background: var(--em-soft); color: var(--em-700); }
.wz-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 20px; }
.wz-progress i { width: 30px; height: 5px; border-radius: 99px; background: var(--line); }
.wz-progress i.on { background: var(--em); }

@media (max-width: 720px) {
  .keyfacts, .hub-grid, .proscons, .related-grid { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .keyfact { padding: 12px 8px; text-align: center; }
  .keyfact .kf-n { font-size: 17px; }
  .keyfact .kf-l { font-size: 11px; }
}
@media (max-width: 380px) {
  .keyfact { padding: 10px 6px; }
  .keyfact .kf-n { font-size: 15px; }
  .keyfact .kf-l { font-size: 10.5px; line-height: 1.3; }
}

/* ============================================================
   Offer cards (usadas en /ofertas/, /comparador/ y contenido)
   ============================================================ */
.ocard {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s;
}
.ocard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--em); }
.ocard-top { border: 2px solid var(--gold); box-shadow: 0 18px 44px rgba(245, 182, 56, .22); }

.ocard-rank {
  position: absolute; top: -13px; left: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 800; font-size: 12.5px;
  background: var(--bg); color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 13px;
}
.ocard-rank.top { background: var(--gold); border-color: var(--gold); color: var(--em-900); }

.ocard-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; margin-top: 6px; }
.ocard-logo {
  width: 116px; height: 60px; border-radius: 12px; flex: none;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px 12px;
}
.ocard-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ocard-logo.noimg { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--em-700); }
.ocard-brand { min-width: 0; flex: 1; }   /* permite que la marca se encoja y no corte el texto */
.ocard-brand h3 { font-size: 19px; margin-bottom: 4px; }
.ocard-rating { display: flex; align-items: center; gap: 6px 8px; font-size: 13px; flex-wrap: wrap; }
.oscore { font-family: var(--font-head); font-weight: 800; color: var(--em-700); }
.ostars { color: var(--gold-dark); letter-spacing: 1px; }
.ocard-reviews { color: var(--ink-3); }
/* En tarjetas estrechas (comparador) reduce el logo para que quepa el nombre + opiniones */
@media (max-width: 560px) {
  .ocard-head { gap: 12px; }
  .ocard-logo { width: 92px; height: 52px; padding: 6px 9px; }
  .ocard-brand h3 { font-size: 17px; }
}

.ocard-usp {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--em-soft); border-radius: 12px; padding: 11px 14px;
  font-size: 13.5px; color: var(--em-900); margin-bottom: 14px;
}
.ocard-usp .svic { color: var(--gold-dark); margin-top: 1px; }

.ocard-figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.ofig { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ofig span { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }
.ofig strong { font-size: 14px; color: var(--ink); font-family: var(--font-head); }
.ofig-tae { color: var(--em-600) !important; }
/* barra de progreso opcional dentro de una figura (estilo V3) */
.ofig .m-bar { height: 5px; border-radius: 99px; background: var(--line); margin-top: 6px; overflow: hidden; }
.ofig .m-bar i { display: block; height: 100%; background: var(--em); border-radius: 99px; }

/* Badge promocional en la esquina superior derecha */
.ocard-badge {
  position: absolute; top: -13px; right: 20px;
  font-family: var(--font-head); font-weight: 800; font-size: 11.5px; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--em-900);
  border-radius: 999px; padding: 5px 13px; box-shadow: 0 4px 12px rgba(245, 182, 56, .4);
}

/* Highlights (puntos fuertes) en lista con check */
.ocard-hl { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ocard-hl li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin: 0; }
.ocard-hl li .svic { color: var(--em); flex: none; margin-top: 1px; }

/* Fila de requisitos + edad */
.ocard-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ocard-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.otag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--em-700);
  background: var(--em-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.otag-hot { background: var(--gold-soft); border-color: var(--gold-soft); color: #a9760a; }
.ocard-age { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ocard-age .svic { color: var(--ink-3); }

.ocard-cta { text-align: center; }
.ocard-btn { font-size: 16px; padding: 14px 20px; }
.ocard-note { display: inline-flex; align-items: center; gap: 5px; justify-content: center; font-size: 12px; color: var(--ink-3); margin-top: 9px; }
.ocard-note .svic { color: var(--em); }

/* Condiciones/ejemplo plegable */
.ocard-legal { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.ocard-legal summary { font-size: 12.5px; font-weight: 700; color: var(--em-700); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.ocard-legal summary::-webkit-details-marker { display: none; }
.ocard-legal summary::before { content: "＋"; font-weight: 800; }
.ocard-legal[open] summary::before { content: "－"; }
.ocard-legal p { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin: 10px 0 0; }

.offers-legal { max-width: 760px; margin: 0 auto; padding: 0 20px 60px; }
.offers-legal p { font-size: 12px; color: var(--ink-3); line-height: 1.6; margin-bottom: 8px; }
.offers-legal strong { color: var(--ink-2); }

.offers-error { text-align: center; color: var(--ink-2); padding: 40px 0; }

@media (max-width: 640px) {
  .ocard-figures { grid-template-columns: repeat(2, 1fr); }
}
