/* Layout: light page with deep-navy bands for the hero and stats; the animated "scanner" browser is the signature object.
   Single committed look (bright, not theme-switched): every color is set explicitly. */
/* Fuentes alojadas aquí (no en Google Fonts) para no enviar la IP de las visitas a Google. Licencia SIL OFL.
   Solo el subconjunto latino: cubre español, € y comillas «». */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans-latin.woff2") format("woff2"); }
:root {
  --navy: #0E1A3A;
  --navy-2: #1A2A57;
  --blue: #3355FF;
  --sky: #DCE4FF;
  --coral: #FF4F45;
  --coral-soft: #FFE3E0;
  --mint: #12B886;
  --mint-soft: #D6F5EA;
  --sun: #FFC233;
  --paper: #F5F7FC;
  --white: #FFFFFF;
  --ink: #111A33;
  --muted: #56607A;
  --line: #E1E6F2;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: .9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.5rem, 2.6vw, 1.9rem);
  --step-3: clamp(2rem, 4.4vw, 3.2rem);
  --step-4: clamp(2.5rem, 6.4vw, 4.6rem);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 74rem; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 46rem; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); font-weight: 800; line-height: 1.02; }
h2 { font-size: var(--step-3); font-weight: 800; line-height: 1.05; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 38rem; }
.hl { color: var(--sun); }
.u { background: linear-gradient(transparent 62%, var(--sun) 62%); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(14, 26, 58, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font: 800 clamp(1.1rem, 5.2vw, 1.7rem)/1 var(--display); white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; letter-spacing: -0.02em; }
.brand svg { width: clamp(40px, 10vw, 52px); height: auto; flex: none; }
.nav { display: flex; gap: 22px; align-items: center; font-size: var(--step--1); }
.nav a { text-decoration: none; opacity: .8; }
.nav a:hover { opacity: 1; }
.nav .btn { opacity: 1; }
@media (max-width: 720px) { .nav .hide-s { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--step-0)/1 var(--body); text-decoration: none; padding: 16px 24px; border-radius: 999px; border: 0; cursor: pointer; background: var(--sun); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(255, 194, 51, .8); transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.blue { background: var(--blue); color: var(--white); box-shadow: 0 8px 24px -10px rgba(51, 85, 255, .7); }
.btn.small { padding: 10px 16px; font-size: var(--step--1); }

/* Hero */
.hero-band { background: radial-gradient(1200px 500px at 85% 10%, #2B47C8 0%, transparent 60%), radial-gradient(800px 400px at 0% 100%, #3A1F6E 0%, transparent 60%), var(--navy); color: var(--white); overflow: hidden; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.hero > div:first-child { display: grid; gap: 26px; min-width: 0; }
.hero .lead { color: #C3CCE6; }
.pill { justify-self: start; display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 79, 69, .16); color: #FFB3AD; border: 1px solid rgba(255, 79, 69, .45); padding: 7px 14px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 79, 69, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 79, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 69, 0); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* Scanner browser */
.browser { background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; min-width: 0; }
.bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #EEF1F8; border-bottom: 1px solid var(--line); }
.bar i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; }
.bar i:nth-child(2) { background: #FBBF24; } .bar i:nth-child(3) { background: #34D399; }
.bar span { margin-left: 10px; flex: 1; min-width: 0; background: var(--white); border-radius: 6px; padding: 5px 10px; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { position: relative; padding: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; outline: 3px solid transparent; transition: outline-color .3s, filter .3s; }
.tile svg { display: block; width: 100%; height: 100%; }
.tile .tag { position: absolute; left: 6px; bottom: 6px; font: 700 .68rem/1 var(--body); padding: 5px 7px; border-radius: 999px; background: var(--white); color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.tile.ok .tag, .tile.risk .tag, .tile.fixed .tag { opacity: 1; transform: none; }
.tile.ok .tag { background: var(--mint-soft); color: #0B7A59; }
.tile.risk { outline-color: var(--coral); filter: saturate(.35); }
.tile.risk .tag { background: var(--coral); color: var(--white); }
.tile.fixed { outline-color: var(--mint); }
.tile.fixed .tag { background: var(--mint); color: var(--white); }
.tile .swap { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.tile.fixed .swap { opacity: 1; }
.beam { position: absolute; left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(180deg, transparent, rgba(51, 85, 255, .22) 70%, rgba(51, 85, 255, .9) 98%, transparent); pointer-events: none; opacity: 0; }
.beam.run { animation: scan 2.6s linear forwards; }
@keyframes scan { 0% { top: -60px; opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.readout div { padding: 12px 14px; display: grid; gap: 2px; }
.readout div + div { border-left: 1px solid var(--line); }
.readout b { font: 800 1.35rem/1 var(--display); font-variant-numeric: tabular-nums; }
.readout span { font-size: .74rem; color: var(--muted); }
.readout .r b { color: var(--coral); } .readout .g b { color: var(--mint); }

/* Stats band */
.stats { background: var(--navy); color: var(--white); padding-block: 56px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.stat { display: grid; gap: 8px; align-content: start; }
.stat b { font: 800 clamp(2.2rem, 4.5vw, 3.4rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.stat:nth-child(1) b { color: var(--sun); } .stat:nth-child(2) b { color: #FF8A82; } .stat:nth-child(3) b { color: #8EA2FF; } .stat:nth-child(4) b { color: #5EE0B5; }
.stat span { color: #B7C1DD; font-size: var(--step--1); max-width: 16rem; }
.stat small { color: #7F8BAD; font-size: .75rem; }
@media (max-width: 820px) { .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sections */
section { padding-block: clamp(60px, 8vw, 104px); }
.head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 48rem; }
.kicker { font-weight: 700; font-size: var(--step--1); color: var(--blue); }
.alt { background: var(--white); }

/* Steps as a path */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; position: relative; }
.path::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 3px; background: linear-gradient(90deg, var(--coral), var(--sun), var(--mint)); border-radius: 3px; }
.path li { counter-increment: s; display: grid; gap: 12px; align-content: start; position: relative; min-width: 0; }
.path li::before { content: counter(s); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 1.4rem/1 var(--display); background: var(--white); border: 3px solid var(--c, var(--blue)); color: var(--c, var(--blue)); }
.path li:nth-child(1) { --c: var(--coral); } .path li:nth-child(2) { --c: #FF8A3D; } .path li:nth-child(3) { --c: #E0A800; } .path li:nth-child(4) { --c: var(--blue); } .path li:nth-child(5) { --c: var(--mint); }
.path p { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; gap: 22px; }
  .path::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--coral), var(--sun), var(--mint)); }
  .path li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; }
  .path li::before { grid-row: span 2; }
}

/* Case */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }
.claims { display: grid; gap: 14px; }
.claim { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--white); border-radius: 14px; padding: 14px; box-shadow: 0 10px 30px -18px rgba(17, 26, 51, .35); }
.claim .thumb { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; filter: saturate(.4); outline: 2px solid var(--coral); }
.claim .thumb svg { width: 100%; height: 100%; display: block; }
.claim span { color: var(--muted); font-size: var(--step--1); }
.claim b { font: 800 1.5rem/1 var(--display); color: var(--coral); font-variant-numeric: tabular-nums; white-space: nowrap; }
.claim.total { background: var(--navy); color: var(--white); grid-template-columns: minmax(0, 1fr) auto; }
.claim.total span { color: #B7C1DD; }
.claim.total b { color: var(--sun); font-size: 2rem; }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }
.plan { background: var(--white); border-radius: 18px; padding: 26px 22px; display: grid; gap: 14px; align-content: start; border: 1px solid var(--line); position: relative; min-width: 0; }
.plan .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--soft, var(--sky)); }
.plan .eur { font: 800 2.4rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .eur small { font: 500 .85rem/1 var(--body); color: var(--muted); letter-spacing: 0; }
.plan p { color: var(--muted); font-size: var(--step--1); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: var(--step--1); }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.plan li::before { content: "✓"; color: var(--mint); font-weight: 700; }
.plan.featured { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(14, 26, 58, .7); }
.plan.featured p, .plan.featured .eur small { color: #B7C1DD; }
.plan.featured .badge { position: absolute; top: -12px; right: 18px; background: var(--sun); color: var(--navy); font: 700 .75rem/1 var(--body); padding: 7px 11px; border-radius: 999px; }
@media (max-width: 1000px) { .plan.featured { transform: none; } }
.fine { color: var(--muted); font-size: var(--step--1); margin-top: 22px; max-width: 46rem; }

/* Process */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }
.how > div { display: grid; gap: 10px; align-content: start; }
.how .ill { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 16px; background: var(--bgc, var(--sky)); display: grid; place-items: center; }
.how .ill svg { width: 62%; height: auto; }
.how p { color: var(--muted); font-size: var(--step--1); }
.how h3 small { display: block; font: 700 .8rem/1 var(--body); color: var(--blue); margin-bottom: 6px; }

/* Quién hay detrás: texto y cifras a la izquierda, lo que hacemos y lo que no a la derecha */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about-text { display: grid; gap: 16px; }
.scope { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.5vw, 32px); display: grid; gap: 22px; box-shadow: 0 24px 50px -36px rgba(14, 26, 58, .45); }
.scope > div + div { padding-top: 20px; border-top: 1px solid var(--line); }
.scope h3 { font-size: var(--step-1); margin-bottom: 12px; }
.scope ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scope li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.scope li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 8.5l2.5 2.5L12 5.5%27 fill=%27none%27 stroke=%27%230B7A59%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / 16px no-repeat; }
.scope .no li::before { background-color: var(--coral-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M5 5l6 6M11 5l-6 6%27 fill=%27none%27 stroke=%27%23C42B22%27 stroke-width=%272.2%27 stroke-linecap=%27round%27/%3E%3C/svg%3E"); }

details { background: var(--white); border-radius: 14px; padding: 18px 20px; border: 1px solid var(--line); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--blue); font: 700 1.1rem/1 var(--body); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; }

.cta-band { background: linear-gradient(120deg, var(--blue), #6A3DF0); color: var(--white); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band .lead { color: #DDE3FF; }
.mailcard { background: var(--white); color: var(--ink); border-radius: 18px; padding: 24px; display: grid; gap: 14px; min-width: 0; }
@media (max-width: 520px) { .cta-band { padding: 24px 16px; border-radius: 22px; } .mailcard { padding: 20px 16px; } }
.addr { font: 700 var(--step-1)/1.3 var(--display); word-break: break-all; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; } /* minmax(0, …): la columna nunca crece más que la tarjeta */
.form label { font-weight: 600; font-size: var(--step--1); margin-top: 6px; }
.form input[type=text], .form input[type=email], .form textarea { width: 100%; font: 400 var(--step-0)/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky); }
.form textarea { resize: vertical; min-height: 6rem; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .consent input { margin-top: 4px; }
.form .btn { justify-self: start; margin-top: 10px; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: var(--step--1); font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #0B7A59; } .form-status.err { color: #C42B22; }
.alt-mail { font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; overflow-wrap: anywhere; }
.alt-mail strong { color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: 600 var(--step--1)/1 var(--body); cursor: pointer; text-decoration: underline; }
.checklist { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: var(--step--1); display: grid; gap: 4px; }

/* Article */
.article { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 22px; }
.article h1 { font-size: var(--step-3); }
.article h2 { font-size: var(--step-2); margin-top: 18px; }
.article p, .article li { max-width: 42rem; }
.article ul, .article ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.template { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 22px; font: 400 .9rem/1.6 ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-x: auto; max-width: 44rem; }
.crumbs { font-size: var(--step--1); color: var(--muted); }
.box { background: var(--navy); color: var(--white); border-radius: 18px; padding: 26px; display: grid; gap: 12px; }
.box p { color: #C3CCE6; }

footer { background: var(--navy); color: #9AA5C4; padding-block: 36px; font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
footer .brand { color: var(--white); }
.foot-note strong { color: #DCE4FF; font-weight: 700; }

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

/* Guías */
.updated { color: var(--muted); font-size: var(--step--1); margin-top: -10px; }
.table-wrap { overflow-x: auto; max-width: 46rem; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 30rem; background: var(--white); border-radius: 12px; overflow: hidden; font-size: var(--step--1); }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--sky); color: var(--navy); }
.article details { max-width: 44rem; }
.sources { font-size: var(--step--1); color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: #C3CCE6; }

/* Banner de cookies (consent.js). Aceptar y Rechazar con el mismo peso visual, como pide la AEPD. */
.cookies { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 44rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; background: var(--navy); color: var(--white); border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(14, 26, 58, .6); font-size: var(--step--1); line-height: 1.5; }
.cookies[hidden] { display: none; }
.cookies p { flex: 1 1 20rem; }
.cookies a { color: var(--sun); }
.cookies-btns { display: flex; gap: 10px; }
.cookies .btn { box-shadow: none; }
