/* ==========================================================================
   oscargilgomez.com · Estilos comunes (web nueva, octubre 2026)
   Concepto: la web es una auditoría. Base clara neutra, azul marino de marca,
   rojo de rotulador para lo que pierde dinero y amarillo subrayador solo
   para las acciones.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #FAFAF7;
  --bg-2: #F1F0EA;
  --line: #E1DFD6;
  --paper: #FFFFFF;
  --paper-line: #E8E6DE;
  --ink: #10162A;
  --muted: #596175;
  --brand: #0B1530;
  --marker: #D23A2E;
  --hl: #FFD43B;
  --hl-ink: #14140A;
  --ok: #1B7F4E;
  --blue: #1F5BFF;
  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-hand: 'Caveat', 'Segoe Print', cursive;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.05; text-wrap: balance; color: var(--brand); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 95%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap, .container { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
section { padding-block: clamp(4rem, 9vw, 7rem); }
.label, .eyebrow { display: inline-block; font: 600 .72rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.hl { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); padding-inline: .08em; }
.strike { position: relative; white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .12em; background: var(--marker); transform: rotate(-2deg); border-radius: 2px; }
.tag { display: inline-block; font: 600 .62rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: .3rem .45rem; border: 1px dashed currentColor; border-radius: 3px; opacity: .85; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .85rem 1.4rem; border-radius: 4px; font: 700 1rem var(--f-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.btn-hl, .btn-primary { background: var(--hl); color: var(--hl-ink); box-shadow: 4px 4px 0 var(--brand); }
.btn-hl:hover, .btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--brand); }
.btn-line, .btn-secondary { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-line:hover, .btn-secondary:hover { border-color: var(--brand); }
.btn-sm { min-height: 42px; padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Cabecera ---------- */
.site-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: block; text-decoration: none; }
.brand img { display: block; height: 46px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current="page"] { color: var(--brand); }
.nav-menu .btn { box-shadow: 3px 3px 0 var(--brand); }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 4px; min-width: 46px; min-height: 46px; cursor: pointer; color: var(--brand); font: 600 .75rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) {
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--paper-line); font-size: 1rem; }
  .nav-menu .btn { margin-top: 1rem; }
}

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 6rem; color: var(--muted); font-size: .88rem; background: var(--bg-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer b { color: var(--brand); }
.site-footer address { font-style: normal; margin-top: .6rem; line-height: 1.7; }
.site-footer h4 { margin: 0 0 .6rem; font: 600 .7rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.site-footer .partner { display: inline-block; margin-top: 1rem; }
.site-footer .partner img { width: 120px; height: auto; display: block; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Barra fija móvil ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; gap: .6rem; padding: .65rem max(16px, env(safe-area-inset-right, 0px)) calc(.65rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--paper); border-top: 1px solid var(--line); }
.dock .btn { flex: 1; min-height: 46px; padding: .6rem; font-size: .92rem; box-shadow: none; }
.dock .wa { background: #1FA855; color: #fff; }
@media (max-width: 760px) { .dock { display: flex; } }

/* ==========================================================================
   PORTADA
   ========================================================================== */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
h1.kw { font: 600 .8rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hook { font-family: var(--f-display); font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 850; font-stretch: 78%; letter-spacing: -.015em; text-transform: uppercase; line-height: 1.02; color: var(--brand); margin-top: 1.1rem; text-wrap: balance; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 33em; margin-top: 1.5rem; }
.hero .lead b { color: var(--ink); font-weight: 600; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; align-items: center; }
.hero .note { font: 500 .82rem var(--f-mono); color: var(--muted); margin-top: 1.1rem; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

/* Hoja de auditoría */
.sheet { position: relative; background: var(--paper); color: var(--ink); border-radius: 3px; padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 24px 50px -28px rgba(16, 22, 42, .35), 0 0 0 1px var(--line); transform: rotate(.8deg); min-width: 0; }
.sheet::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 31px, var(--paper-line) 31px 32px); opacity: .5; pointer-events: none; border-radius: 3px; }
.sheet > * { position: relative; }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; border-bottom: 2px solid var(--ink); padding-bottom: .7rem; }
.sheet-head b { font: 800 1rem var(--f-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .03em; color: var(--brand); }
.sheet-head span { display: block; font: 500 .72rem var(--f-mono); color: var(--muted); margin-top: .2rem; }
.terms-wrap { overflow-x: auto; }
.terms { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .86rem; }
.terms th { font: 600 .64rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; padding: .45rem .3rem; }
.terms th:first-child, .terms td:first-child { text-align: left; }
.terms td { padding: .55rem .3rem; border-top: 1px solid var(--paper-line); text-align: right; font-family: var(--f-mono); font-size: .8rem; }
.terms td:first-child { font-family: var(--f-body); font-size: .88rem; }
.terms tr.bad td:first-child span { text-decoration: line-through; text-decoration-color: var(--marker); text-decoration-thickness: 2px; }
.terms tr.bad td.c { color: var(--marker); font-weight: 600; }
.terms tr.good td.c { color: var(--ok); font-weight: 600; }
.scribble { display: block; font: 700 1.05rem/1.1 var(--f-hand); color: var(--marker); transform: rotate(-1.5deg); margin-top: .15rem; font-style: normal; }
.sheet-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; padding-top: .8rem; border-top: 2px solid var(--ink); }
.sheet-total .big { font: 700 1.9rem/1 var(--f-hand); color: var(--marker); transform: rotate(-2deg); }
.signed { display: flex; align-items: center; gap: .6rem; }
.signed img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--ink); }
.signed small { font: 500 .72rem/1.3 var(--f-mono); color: var(--muted); }
.signed b { display: block; font: 700 1.15rem/1 var(--f-hand); color: var(--ink); }

/* Franja de cifras */
.proof { border-block: 1px solid var(--line); background: var(--bg-2); }
.proof .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.proof .i { padding: 1.4rem 1rem; border-left: 1px solid var(--line); }
.proof .i:first-child { border-left: 0; }
.proof b { display: block; font: 800 clamp(1.6rem, 3vw, 2.3rem)/1 var(--f-display); font-stretch: 80%; color: var(--brand); font-variant-numeric: tabular-nums; }
.proof .i:nth-child(1) b { color: var(--ok); }
.proof .i:nth-child(2) b { color: var(--blue); }
.proof span { display: block; font-size: .82rem; color: var(--muted); margin-top: .45rem; line-height: 1.35; }
.proof a { color: inherit; text-decoration: none; }
.stamp { font: 500 .75rem var(--f-mono); color: var(--muted); text-align: center; padding: .7rem 16px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .proof .wrap { grid-template-columns: 1fr 1fr; } .proof .i { border-left: 0; border-top: 1px solid var(--line); } .proof .i:nth-child(-n+2) { border-top: 0; } .proof .i:last-child { grid-column: 1 / -1; } }

/* Encabezados de sección */
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head h2 { margin-top: .8rem; }
.head p { color: var(--muted); max-width: 34em; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* Lo que no hago */
.nots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.nots > div { background: var(--bg); padding: 1.5rem 1.3rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.nots .no { font: 800 1.35rem/1.05 var(--f-display); font-stretch: 82%; text-transform: uppercase; color: var(--brand); }
.nots p { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .nots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .nots { grid-template-columns: 1fr; } }

/* Quién soy */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; max-height: 620px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.about h2 { margin-top: .8rem; }
.about p { color: var(--muted); margin-top: 1rem; max-width: 36em; font-size: 1.05rem; }
.about p b { color: var(--ink); font-weight: 600; }
.sign { font: 700 2.4rem/1 var(--f-hand); color: var(--brand); margin-top: 1.4rem; transform: rotate(-3deg); display: inline-block; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.facts span { font: 600 .72rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); background: var(--paper); padding: .45rem .6rem; border-radius: 3px; }
.facts a { color: inherit; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { max-height: 480px; } }

/* Casos */
.case-main { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 4vw, 3rem); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: 0 18px 40px -30px rgba(16, 22, 42, .3); }
.case-main h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 850; font-stretch: 80%; text-transform: uppercase; margin-top: .6rem; }
.case-main p { color: var(--muted); margin-top: .8rem; }
.case-link { font-weight: 700; color: var(--brand); text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.kpis div { border-top: 2px solid var(--ink); padding-top: .6rem; }
.kpis b { display: block; font: 700 1.7rem/1 var(--f-mono); letter-spacing: -.03em; }
.kpis span { font-size: .8rem; color: var(--muted); }
.chart { min-width: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 1.2rem; font: 500 .74rem var(--f-mono); color: var(--muted); margin-top: .5rem; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: .35rem; vertical-align: -1px; }
.cases-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.mini { border: 1px solid var(--line); background: var(--paper); padding: 1.5rem; border-radius: 3px; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.mini .delta { font: 800 clamp(1.8rem, 3.4vw, 2.5rem)/1 var(--f-display); font-stretch: 78%; color: var(--brand); }
.mini .delta s { text-decoration-color: var(--marker); text-decoration-thickness: 3px; color: var(--muted); }
.mini p { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .case-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cases-2 { grid-template-columns: 1fr; } }

/* Diagnóstico */
.diag { background: var(--bg-2); }
.diag-box { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.diag-side { position: sticky; top: 90px; }
.diag-side ol { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; counter-reset: s; }
.diag-side li { counter-increment: s; display: flex; gap: .7rem; align-items: center; font-size: .95rem; color: var(--muted); }
.diag-side li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--paper-line); border-radius: 50%; font: 600 .8rem var(--f-mono); flex: none; background: var(--paper); }
.diag-side li.on { color: var(--ink); font-weight: 600; }
.diag-side li.on::before { border-color: var(--ink); background: var(--hl); }
.diag-side li.done::before { content: "✓"; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bar { height: 6px; background: var(--paper-line); border-radius: 3px; overflow: hidden; margin-top: 1.4rem; }
.bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s ease; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.05 var(--f-display); font-stretch: 82%; text-transform: uppercase; padding: 0; margin-bottom: 1.2rem; color: var(--brand); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: block; border: 2px solid var(--paper-line); background: var(--paper); border-radius: 4px; padding: 1rem 1.1rem; font-weight: 600; min-height: 64px; transition: border-color .15s, transform .15s; }
.opt span small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.opt input:hover + span { border-color: var(--muted); }
.opt input:checked + span { border-color: var(--ink); background: #FFF6CF; transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }
.nav-steps { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.linkbtn { background: none; border: 0; font: 600 .92rem var(--f-body); color: var(--muted); cursor: pointer; padding: .6rem 0; min-height: 44px; }
.linkbtn:hover { color: var(--ink); }
.result { border: 2px solid var(--ink); border-radius: 4px; padding: 1.3rem; background: var(--paper); }
.result h3 { font-stretch: 85%; text-transform: uppercase; }
.result ul { margin: .8rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.result .plan { margin-top: 1rem; font: 600 .8rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.result .plan b { background: var(--hl); padding: .1rem .35rem; }
.form { display: grid; gap: .9rem; margin-top: 1.3rem; }
.form label, .field label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=url],
.field input, .field textarea { font: inherit; font-weight: 400; padding: .8rem .9rem; border: 2px solid var(--paper-line); border-radius: 4px; background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.form input:focus, .field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.consent { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; color: var(--muted); font-size: .85rem; }
.consent input { margin-top: .25rem; width: 18px; height: 18px; flex: none; }
.form .btn-hl { justify-self: start; }
.form-msg { font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--marker); }
.alt { font-size: .88rem; color: var(--muted); display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.alt a { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .diag-box { grid-template-columns: 1fr; } .diag-side { position: static; } }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.plan-c { border: 1px solid var(--line); border-radius: 3px; padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; background: var(--paper); }
.plan-c.top { background: var(--brand); color: #F3F5FB; border-color: var(--brand); }
.plan-c .label { color: inherit; opacity: .7; }
.plan-c .price { font: 800 2.4rem/1 var(--f-display); font-stretch: 80%; }
.plan-c .price small { font: 500 .9rem var(--f-body); opacity: .7; }
.plan-c .for { font-size: .9rem; opacity: .75; }
.plan-c dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem .9rem; font-size: .88rem; }
.plan-c dt { font: 600 .68rem/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.plan-c dd { margin: 0; }
.plan-c .btn { margin-top: auto; }
.plan-c.top .btn-hl { box-shadow: 4px 4px 0 #000; }
.always { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .95rem; color: var(--muted); }
.always span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Checklist (lead magnet) */
.magnet { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; border: 2px dashed var(--line); border-radius: 4px; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--paper); }
.magnet h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 850; font-stretch: 80%; text-transform: uppercase; }
.magnet p { color: var(--muted); margin-top: .6rem; }
.magnet form { display: grid; gap: .7rem; }
.magnet .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.magnet input[type=email] { flex: 1 1 220px; font: inherit; padding: .8rem .9rem; border: 2px solid var(--paper-line); border-radius: 4px; min-width: 0; }
@media (max-width: 760px) { .magnet { grid-template-columns: 1fr; } }

/* Testimonio y FAQ */
.case-quote { margin: 1.25rem 0 0; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--hl); border-radius: 3px; padding: clamp(1.2rem, 3vw, 1.8rem); }
.case-quote blockquote { margin: 0; }
.case-quote p { font: 600 clamp(1.05rem, 1.8vw, 1.25rem)/1.5 var(--f-body); color: var(--ink); max-width: 60em; }
.case-quote figcaption, .quote figcaption { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
.case-quote b, .quote b { color: var(--brand); }
.case-quote a, .quote a { color: var(--muted); }
.quote blockquote { margin: 0; }
.reviews-more { margin-top: 1.6rem; }
.quote { margin: 0; border-left: 4px solid var(--brand); padding-left: 1.4rem; max-width: 46rem; }
.quote p { font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.3 var(--f-display); font-stretch: 90%; color: var(--brand); }
.quote footer { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font: 700 1.1rem var(--f-display); font-stretch: 92%; min-height: 28px; color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: .7rem; max-width: 44em; }

/* Enlaces a guías */
.links ul { list-style: none; padding: 0; margin: 1rem 0 0; columns: 2; column-gap: 2rem; }
.links li { break-inside: avoid; margin-bottom: .55rem; }
.links a { color: var(--brand); font-weight: 600; text-decoration-color: var(--line); text-underline-offset: 3px; }
.links a:hover { text-decoration-color: var(--brand); }
@media (max-width: 760px) { .links ul { columns: 1; } }

/* ==========================================================================
   SUBPÁGINAS (blog, ciudades, servicios, legales): estilos de contenido
   ========================================================================== */
.article-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.article-hero .container { max-width: 860px; }
.article-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 850; font-stretch: 78%; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.03; margin-top: .8rem; }
.article-back { display: inline-block; font: 600 .78rem var(--f-mono); color: var(--muted); text-decoration: none; margin-bottom: 1.2rem; }
.article-back:hover { color: var(--brand); }
.article-eyebrow { display: block; font: 600 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--marker); }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }
.article-meta strong { color: var(--ink); }
.article-updated { display: inline-block; margin-top: .8rem; font: 500 .75rem var(--f-mono); color: var(--ok); background: #E6F3EC; padding: .3rem .55rem; border-radius: 3px; }
.article-body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.article-body .container { max-width: 860px; }
.article-content { font-size: 1.06rem; line-height: 1.75; }
.article-content > * + * { margin-top: 1.1rem; }
.article-content h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 2.6rem; }
.article-content h3 { font-size: 1.25rem; margin-top: 1.8rem; text-transform: none; }
.article-content p, .article-content li { color: #2A3247; }
.article-content ul, .article-content ol { padding-left: 1.3rem; }
.article-content li + li { margin-top: .45rem; }
.article-content strong { color: var(--ink); }
.article-content a { color: var(--blue); text-underline-offset: 3px; }
.article-callout, .article-warning, .article-quote { border-radius: 3px; padding: 1.1rem 1.3rem; }
.article-callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.article-warning { background: #FDF0EE; border: 1px solid #F3D3CE; border-left: 4px solid var(--marker); }
.article-quote { border-left: 4px solid var(--hl); background: var(--paper); font: 700 1.2rem/1.45 var(--f-display); font-stretch: 92%; color: var(--brand); }
.article-callout p, .article-warning p { margin: 0; }
.article-content table, .article-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--paper); border: 1px solid var(--line); display: block; overflow-x: auto; }
.article-table th, .article-table td, .article-content table th, .article-content table td { padding: .7rem .8rem; border-bottom: 1px solid var(--paper-line); text-align: left; vertical-align: top; }
.article-table th, .article-content table th { font: 600 .7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.article-table tr.highlight td { background: #FFF6CF; font-weight: 600; }
.article-sources { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.article-sources a { color: var(--muted); }
.related { border-top: 2px solid var(--brand); padding-top: 1.2rem; margin-top: 2.6rem; }
.related h2 { font-size: 1.3rem !important; margin: 0 !important; }
.related ul { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }
.related li a { font-weight: 600; color: var(--brand); }
.related p { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.article-author-bio { display: flex; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 1.1rem; }
.article-author-bio img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex: none; }
.bio-name { font: 800 1.05rem var(--f-display); font-stretch: 88%; color: var(--brand); }
.bio-role { font-size: .85rem; color: var(--muted); }
.article-cta-box { background: var(--brand); color: #EEF1F8; border-radius: 3px; padding: clamp(1.4rem, 3vw, 2rem); }
.article-cta-box h3 { color: #fff; text-transform: uppercase; font-stretch: 85%; font-size: 1.4rem; margin: 0; }
.article-cta-box p { color: #C9D1E6 !important; margin-top: .6rem; }
.article-cta-box .btn { margin-top: 1.1rem; }
.article-cta-box .btn-secondary { background: var(--hl); color: var(--hl-ink); border-color: var(--hl); box-shadow: 4px 4px 0 #000; }
.page-cta { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 2rem; }
.page-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.page-cta-text p { font: 800 1.3rem var(--f-display); font-stretch: 85%; text-transform: uppercase; color: var(--brand); }
.page-cta-text span { font-size: .88rem; color: var(--muted); }
.page-cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.blog-card { display: flex; flex-direction: column; gap: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 1.4rem; text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.blog-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.blog-card-eyebrow { font: 600 .68rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--marker); }
.blog-card-title { font-size: 1.3rem !important; font-weight: 800; font-stretch: 85%; text-transform: none !important; line-height: 1.15; margin: 0; }
.blog-card-desc { color: var(--muted); font-size: .93rem; }
.blog-card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem; color: var(--muted); }
.blog-card-read { margin-left: auto; font-weight: 700; color: var(--brand); }
[style*="grid-template-columns:1fr 2fr"] { }
@media (max-width: 760px) { [style*="grid-template-columns:1fr 2fr"] { grid-template-columns: 1fr !important; } }

/* ---------- Casos de éxito ---------- */
.article-hero h1 .hl { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); }
.case-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.case-hero-stats > div { background: var(--paper); padding: 1.1rem 1rem; }
.case-hero-stats b { display: block; font: 850 clamp(1.5rem, 3.4vw, 2.2rem)/1 var(--f-display); font-stretch: 78%; color: var(--brand); }
.case-hero-stats b.red { color: var(--marker); }
.case-hero-stats span { display: block; margin-top: .45rem; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.case-chart { margin: 1.4rem 0; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 1rem 1rem .8rem; }
.case-chart svg { width: 100%; height: auto; display: block; }
.case-chart figcaption { font: 500 .75rem/1.5 var(--f-mono); color: var(--muted); margin-top: .6rem; }
.lg { display: inline-block; width: 10px; height: 10px; margin: 0 .3rem 0 .6rem; vertical-align: -1px; }
.lg:first-child { margin-left: 0; }
.lg.red { background: var(--marker); } .lg.ink { background: var(--ink); }
.case-steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: .9rem; }
.case-steps li { counter-increment: st; position: relative; padding: 1rem 1rem 1rem 3.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.case-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 1rem; top: 1rem; font: 700 .9rem var(--f-mono); color: var(--marker); }
.case-steps b { display: block; color: var(--brand); margin-bottom: .2rem; }
.case-note { font: 500 .78rem/1.5 var(--f-mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: .9rem; }
@media (max-width: 640px) { .case-hero-stats { grid-template-columns: 1fr; } }

/* ---------- Modal de contacto ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(11, 21, 48, .55); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.modal-is-open { display: flex; }
.modal-box { position: relative; background: var(--paper); border-radius: 4px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(1.3rem, 4vw, 2rem); box-shadow: 8px 8px 0 var(--brand); }
.modal-close { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.modal-head h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: .5rem; }
.modal-head p { color: var(--muted); margin-top: .5rem; font-size: .93rem; }
.form-card { display: grid; gap: .9rem; margin-top: 1.2rem; }
.field { display: grid; gap: .3rem; }
.form-feedback { font-weight: 600; min-height: 1.2em; font-size: .9rem; }
.form-feedback--ok { color: var(--ok); }
.form-feedback--error { color: var(--marker); }

/* ---------- Banner de cookies (AEPD: tres opciones con la misma visibilidad) ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 760px; margin-inline: auto; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); border: 2px solid var(--brand); border-radius: 4px; box-shadow: 6px 6px 0 var(--brand); padding: 1rem 1.2rem; display: grid; gap: .9rem; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.cookie-banner.visible { opacity: 1; transform: none; }
.cookie-banner-text { font-size: .86rem; color: var(--muted); }
.cookie-banner-text b { color: var(--brand); }
.cookie-banner-text a { color: var(--brand); }
.cookie-settings { display: grid; gap: .5rem; }
.cookie-settings[hidden] { display: none; }
.ck { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 4px; padding: .7rem .8rem; cursor: pointer; }
.ck input { width: 20px; height: 20px; margin-top: .1rem; flex: none; accent-color: var(--brand); }
.ck b { display: block; font-size: .9rem; color: var(--ink); }
.ck small { display: block; font-size: .8rem; color: var(--muted); }
.cookie-banner-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.cookie-btn { min-height: 46px; padding: .55rem .8rem; border-radius: 4px; font: 700 .9rem var(--f-body); cursor: pointer; background: var(--paper); color: var(--brand); border: 2px solid var(--brand); }
.cookie-btn:hover { background: var(--brand); color: #fff; }
/* Aceptar y Rechazar: los dos rellenos y con el mismo peso visual (AEPD); Configurar, secundario */
.cookie-btn[data-ck="accept"] { background: var(--hl); color: var(--hl-ink); border-color: var(--hl); }
.cookie-btn[data-ck="reject"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.cookie-btn[data-ck="accept"]:hover, .cookie-btn[data-ck="reject"]:hover { filter: brightness(1.08); }
.cookie-btn[hidden] { display: none; }
@media (max-width: 480px) { .cookie-banner-actions { grid-template-columns: 1fr; } }
.cookie-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 12vw, 9rem); text-align: left; }
.notfound .hook { margin-top: .6rem; }
.notfound p { color: var(--muted); margin-top: 1.2rem; max-width: 34em; }
.notfound .cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } .sheet { transform: none; } }
