/* CERTIMOTORS — páginas de servicio y guías (SEO). Hereda tokens.css para la fuente. */
:root {
  color-scheme: light;
  --navy: #142338;
  --navy-2: #1d3350;
  --ink: #192b40;
  --ink-2: #34455a;
  --mute: #5c6b7b;
  --gold: #e4bb78;
  --gold-deep: #805923;
  --soft: #f4f5f2;
  --line: #dce0e3;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.7 var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: #24445f; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #b48440; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; padding: 10px 14px; background: #fff; color: var(--navy); border-radius: 6px; }
.skip-link:focus { left: 8px; }
.wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }

/* Logo */
.logo { display: inline-flex; flex-direction: column; gap: 5px; text-decoration: none; }
.logo-row { display: flex; align-items: center; line-height: 1; }
.lc, .lm { font-size: 22px; letter-spacing: -.035em; color: #fff; }
.lc { font-weight: 400; color: rgba(255,255,255,.8); }
.lm { font-weight: 700; }
.ls { width: 1.5px; height: 21px; background: var(--gold); margin: 0 7px; flex-shrink: 0; }
.lt { font-size: 7.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

/* Header */
.site-header { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a.nl { color: #d5dce3; font-size: 14px; font-weight: 500; text-decoration: none; }
.site-nav a.nl:hover { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 7px; border: 1px solid transparent; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.btn-gold { background: var(--gold); color: #172639; }
.btn-gold:hover { background: #edcd99; color: #142338; }
.btn-line { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 13px; white-space: nowrap; }

/* Breadcrumb */
.crumbs { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; list-style: none; color: var(--mute); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--mute); }
.crumbs a { color: var(--ink-2); }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 64px 0 72px; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin: 0 0 20px; max-width: 860px; font-size: clamp(34px, 5.4vw, 56px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.hero .lead { margin: 0 0 30px; max-width: 720px; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: #d8dfe6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.micro { margin: 20px 0 0; font-size: 14px; color: rgba(255,255,255,.72); }

/* Body copy */
main section { padding: 56px 0; }
main section + section { border-top: 1px solid var(--line); }
main h2 { margin: 0 0 16px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
main h3 { margin: 28px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
main p { margin: 0 0 16px; color: var(--ink-2); }
main ul, main ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); }
main li { margin-bottom: 8px; }
.updated { font-size: 14px; color: var(--mute); }

/* Answer box (resumen para buscadores y asistentes de IA) */
.answer { margin: 0; padding: 22px 24px; border-left: 4px solid var(--gold-deep); border-radius: 0 10px 10px 0; background: #fbf6ec; }
.answer p { margin: 0; color: var(--ink); }
.answer strong { color: var(--navy); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.facts b { display: block; font-size: 22px; letter-spacing: -.03em; color: var(--navy); }
.facts span { font-size: 14px; color: var(--mute); }

/* Cards / plans */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; }
.card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--gold-deep); box-shadow: 0 8px 24px rgba(20,35,56,.08); color: inherit; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; font-size: 15px; color: var(--mute); }
.card .more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--gold-deep); }
.plan { position: relative; }
.plan .price { margin: 4px 0 10px; font-size: 34px; font-weight: 600; letter-spacing: -.04em; color: var(--navy); }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--mute); letter-spacing: 0; }
.plan ul { margin: 0 0 20px; padding-left: 20px; font-size: 15px; }
.plan .btn { margin-top: auto; }
.plan.best { border-color: var(--navy); background: var(--navy); color: #fff; }
.plan.best h3, .plan.best .price { color: #fff; }
.plan.best .price small, .plan.best li, .plan.best p { color: #d8dfe6; }
.plan .tag { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #142338; font-size: 11px; font-weight: 700; }

/* Comparison table */
.table-scroll { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--navy); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0; }
.steps li { position: relative; margin: 0 0 16px; padding: 4px 0 4px 54px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* FAQ nativo */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--gold-deep); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; }

/* CTA final */
.cta { background: var(--navy); color: #fff; text-align: center; }
main section.cta { padding: 64px 0; border-top: 0; }
.cta h2 { color: #fff; margin-inline: auto; max-width: 720px; }
.cta p { color: #d8dfe6; max-width: 620px; margin-inline: auto; }
.cta .hero-cta { justify-content: center; margin-top: 24px; }

/* Aviso informativo */
.note { padding: 14px 16px; border-radius: 8px; background: var(--soft); font-size: 14px; color: var(--mute); }
.note p { margin: 0; font-size: 14px; color: var(--mute); }

/* Footer */
.site-footer { background: #0c1723; color: #d5dce3; padding: 48px 0 96px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.site-footer h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d5dce3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.65); }
.cookie-settings { border: 0; background: transparent; color: rgba(255,255,255,.75); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* Cookie banner + WhatsApp */
.cookie-banner { position: fixed; right: 20px; bottom: 20px; z-index: 1600; width: min(430px, calc(100% - 40px)); padding: 20px; border: 1px solid #415064; border-radius: 12px; background: #142338; color: #fff; box-shadow: 0 20px 55px rgb(4 15 28 / 35%); }
.cookie-banner p { margin: 8px 0 0; color: #d8dfe6; font-size: 14px; line-height: 1.55; }
.cookie-banner a { color: #f0cb92; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-actions button { min-height: 44px; flex: 1; padding: 9px 14px; border: 1px solid #e4bb78; border-radius: 7px; cursor: pointer; font: 700 15px var(--font); }
.cookie-accept { background: #e4bb78; color: #142338; }
.cookie-reject { background: transparent; color: #fff; }
.wa-fab { position: fixed; bottom: 24px; left: 20px; z-index: 1000; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px; background: var(--gold); color: #172639; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 8px 24px rgba(20,35,56,.25); }
.wa-fab:hover { background: #edcd99; color: #142338; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-nav a.nl { display: none; }
  .hero { padding: 44px 0 52px; }
  main section { padding: 42px 0; }
  .lc, .lm { font-size: 19px; }
  .lt { font-size: 6.5px; }
  .wa-fab { bottom: 16px; left: 16px; }
  .wa-long { display: none; }
  .btn-sm { padding: 9px 12px; font-size: 12px; }
  .site-header .wrap { gap: 12px; }
  .cookie-banner { right: 12px; left: 12px; width: auto; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
