/* Plata Clara — estilos compartidos de las páginas SEO estáticas (marca naranja/crema,
   mobile-first). Una sola fuente para /como-salir-de-deudas, /pago-minimo-tarjeta, etc. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  color-scheme: light;
  --bg: #faf7f2;
  --accent: #F2651C;
  --accent2: #F98A2B;
  --accent-d: #C94A0E;
  --text: #1a1208;
  --muted: #7a6a55;
  --card: #ffffff;
  --border: #e5ddd0;
  --accent-light: #fff1ec;
  --green: #16A46B;
  --red: #e24b4a;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.62;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
img { max-width: 100%; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 18px; }

/* Top bar */
.topbar { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar .in { max-width: 720px; margin: 0 auto; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--accent); font-size: 1.05rem; text-decoration: none; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.topbar .go { background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; font-size: .84rem; padding: 8px 14px; border-radius: 10px; white-space: nowrap; }

/* Hero */
header.hero { text-align: center; padding: 30px 18px 6px; }
.hero .lucas { width: 108px; margin: 0 auto 8px; }
.crumbs { font-size: .76rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--accent); text-decoration: none; }
h1 { font-size: 1.85rem; line-height: 1.16; margin: 6px 0 10px; font-weight: 900; letter-spacing: -.5px; }
h1 .o { color: var(--accent); }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 560px; margin: 0 auto; }
.meta-line { font-size: .78rem; color: var(--muted); margin-top: 12px; }

/* Article */
article { margin-top: 26px; }
article h2 { font-size: 1.32rem; font-weight: 900; margin: 34px 0 10px; letter-spacing: -.3px; line-height: 1.22; }
article h3 { font-size: 1.06rem; font-weight: 800; margin: 22px 0 6px; }
article p { margin: 0 0 14px; }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; }
article li { margin-bottom: 7px; }
article strong { color: var(--text); font-weight: 800; }
article a { color: var(--accent-d); font-weight: 700; }

/* Definición */
.def { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.def .term { font-weight: 900; color: var(--accent-d); margin-bottom: 3px; font-size: .98rem; }
.def p { margin: 0; font-size: .95rem; }

/* Callouts */
.callout { border-radius: 14px; padding: 14px 16px; margin: 18px 0; font-size: .96rem; border: 1px solid; }
.callout.tip { background: #eefaf3; border-color: #bfe6d2; }
.callout.warn { background: #fff6ea; border-color: #f4dcae; }
.callout.danger { background: #fdecea; border-color: #f6c6c0; }
.callout b, .callout strong { color: var(--text); }

/* Ejemplo */
.ejemplo { background: #fffdfb; border: 1px dashed var(--accent); border-radius: 14px; padding: 15px 16px; margin: 18px 0; }
.ejemplo .et { font-weight: 900; color: var(--accent-d); margin-bottom: 6px; font-size: .92rem; text-transform: uppercase; letter-spacing: .5px; }
.ejemplo p { margin: 0 0 10px; font-size: .96rem; }
.ejemplo p:last-child { margin-bottom: 0; }

/* Tabla */
.tbl-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--card); }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--border); }
th { background: var(--accent-light); font-weight: 800; color: var(--accent-d); }
tr:last-child td { border-bottom: none; }
tr:last-child td { font-weight: 800; }

/* Clave (para llevarte) */
.clave { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin: 20px 0; }
.clave .ct { font-weight: 900; margin-bottom: 10px; font-size: 1.02rem; }
.clave ul { list-style: none; padding: 0; margin: 0; }
.clave li { position: relative; padding-left: 28px; margin-bottom: 9px; font-size: .95rem; }
.clave li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }

/* Stat destacado */
.statbig { background: linear-gradient(160deg, var(--accent), var(--accent2)); color: #fff; border-radius: 18px; padding: 22px; text-align: center; margin: 20px 0; box-shadow: 0 10px 26px rgba(242,101,28,.26); }
.statbig .v { font-size: 2.1rem; font-weight: 900; line-height: 1.05; }
.statbig .l { font-size: .92rem; opacity: .95; margin-top: 6px; }
.statbig .s { font-size: .8rem; opacity: .85; margin-top: 4px; }

/* Mini-calculadora embebida (pc-engine) */
.calc { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px 18px; margin: 24px 0; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.calc h2 { margin: 0 0 4px; font-size: 1.1rem; }
.calc .hint { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.calc label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 5px; }
.calc input { width: 100%; padding: 13px 14px; font-size: 1.05rem; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); font-weight: 600; -webkit-appearance: none; appearance: none; }
.calc input:focus { outline: none; border-color: var(--accent); }
.calc .row { display: flex; gap: 10px; }
.calc .row .f { flex: 1; margin-bottom: 12px; }
.calc .f { margin-bottom: 12px; }
.calc .nose { display: flex; align-items: center; gap: 7px; margin: 2px 0 12px; font-size: .8rem; color: var(--muted); cursor: pointer; }
.calc .nose input { width: 17px; height: 17px; accent-color: var(--accent); }
.calc .btn { display: block; width: 100%; padding: 15px; border: none; border-radius: 13px; background: var(--accent); color: #fff; font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(242,101,28,.26); }
.calc .btn:active { transform: translateY(1px); }
.calc .out { display: none; margin-top: 16px; }
.placa { background: linear-gradient(160deg, var(--accent), var(--accent2)); color: #fff; border-radius: 18px; padding: 22px 18px; text-align: center; box-shadow: 0 10px 26px rgba(242,101,28,.26); }
.placa .lbl { font-size: .74rem; letter-spacing: 1.4px; opacity: .92; text-transform: uppercase; font-weight: 700; }
.placa .fecha { font-size: 2.2rem; font-weight: 900; margin: 5px 0 2px; line-height: 1.05; }
.placa .meses { font-size: .96rem; opacity: .95; }
.calc .stats { display: flex; gap: 10px; margin-top: 14px; }
.calc .stat { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; text-align: center; }
.calc .stat .big { font-size: 1.2rem; font-weight: 900; color: var(--accent); line-height: 1.1; }
.calc .stat .cap { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.calc .stat.green .big { color: var(--green); }
.calc .irreal { background: #fff6ef; border: 1px solid #f6d9c4; border-radius: 14px; padding: 16px; text-align: center; }
.calc .irreal .t { font-size: 1.1rem; font-weight: 900; color: var(--accent); margin-bottom: 6px; }

/* CTA principal */
.cta { background: var(--text); color: #fff; border-radius: 20px; padding: 26px 20px; text-align: center; margin: 30px 0; }
.cta h3 { font-size: 1.28rem; font-weight: 900; margin-bottom: 8px; }
.cta p { font-size: .96rem; opacity: .9; margin-bottom: 16px; }
.cta .btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 15px 26px; border-radius: 13px; font-weight: 800; font-size: 1.02rem; box-shadow: 0 8px 22px rgba(242,101,28,.3); }
.cta .btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); box-shadow: none; margin-left: 6px; }
.cta-row { margin-top: 4px; }

/* Enlaces relacionados */
.rel { margin: 30px 0 10px; }
.rel .rt { font-weight: 900; font-size: 1.05rem; margin-bottom: 12px; }
.rel a { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; margin-bottom: 9px; text-decoration: none; color: var(--text); font-weight: 700; font-size: .95rem; transition: .15s; }
.rel a:hover { border-color: var(--accent); background: var(--accent-light); }
.rel a .a { color: var(--accent); }
.rel a span { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* FAQ */
.faq { margin: 24px 0; }
.faq .q { font-weight: 800; margin-top: 16px; color: var(--text); }
.faq .a { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* Footer */
.disclaimer { font-size: .78rem; color: var(--muted); text-align: center; margin: 26px 0 6px; line-height: 1.55; }
footer.pc { text-align: center; font-size: .82rem; color: var(--muted); padding: 20px 18px 0; border-top: 1px solid var(--border); margin-top: 24px; }
footer.pc a { color: var(--accent); text-decoration: none; }
footer.pc .links { margin-top: 8px; }

@media (max-width: 400px) {
  h1 { font-size: 1.6rem; }
  .placa .fecha { font-size: 1.9rem; }
  .calc .stats { flex-direction: column; }
}
