/* GEARA: hoja de estilos de la web pública (v3, 24-11-2026: diseño sobrio, de documento) */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/sourceserif4-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --navy-950: #061423; --navy-900: #0b1f33; --navy: #14304a; --navy-600: #24486b; --slate: #3d5a76;
  --ink: #142231; --text: #3b4855; --muted: #5a6776; --faint: #8a95a2; --line: #e2e5e9; --line-2: #d3d8de;
  --paper: #f7f6f2; --card: #fff; --soft: #f1f3f5; --tint: #f2f7f4;
  --green: #0f7a5c; --green-600: #0c6a50; --green-700: #0a5642; --mint: #e7f4ef; --mint-2: #cfe9de;
  --amber-ink: #7a5a12; --focus: #2563eb; --danger: #b42318; --warn: #b54708;
  --low: #1a9850; --moderate: #c99a00; --high: #e8692e; --very_high: #c9302c;
  --gA: #1a9850; --gB: #66bd63; --gC: #a6d96a; --gD: #fee08b; --gE: #fdae61; --gF: #f46d43; --gG: #d73027;
  --r-sm: 3px; --r: 6px; --r-lg: 8px;
  --sh-1: 0 1px 2px rgba(11,31,51,.06);
  --sh-2: 0 1px 2px rgba(11,31,51,.06), 0 8px 24px rgba(11,31,51,.08);
  --sh-doc: 0 2px 6px rgba(4,14,26,.18), 0 24px 48px rgba(4,14,26,.28);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 68px;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16.5px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-700); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.018em; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-wrap: balance; }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; flex: none; }
.nowrap { white-space: nowrap; }
@media (max-width: 560px) { .container, .narrow { width: calc(100% - 32px); } body { font-size: 16px; } }

.staging-bar { position: relative; z-index: 80; background: #f2b13a; color: #3a2a00; text-align: center; font: 600 .82rem/1.3 var(--sans); padding: 7px 16px; }
.home .staging-bar { position: fixed; inset: auto 0 0 0; }

/* ── Cabecera ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgba(247,246,242,.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 32px; height: 32px; transition: filter .25s; }
.brand b { font-family: var(--serif); font-size: 1.42rem; letter-spacing: .08em; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .94rem; font-weight: 500; }
.nav a:hover { color: var(--green); }
.bar-actions { display: flex; align-items: center; gap: 18px; }
.lang { text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 600; letter-spacing: .06em; padding: 4px 2px; }
.lang:hover { color: var(--green); text-decoration: underline; }
@media (max-width: 980px) { .nav { display: none; } }
/* Portada: cabecera transparente sobre el fondo oscuro hasta hacer scroll */
.home .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.scrolled) .brand, .home .site-header:not(.scrolled) .nav a, .home .site-header:not(.scrolled) .lang { color: #fff; }
.home .site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.home .site-header.scrolled { background: rgba(247,246,242,.96); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-color: var(--line); }

/* ── Botones y formularios ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: var(--r); padding: 13px 22px; font: 600 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid var(--line-2); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mint); color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 26px; font-size: 1.04rem; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], textarea, select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 13px 14px; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(15,122,92,.14); }
input::placeholder, textarea::placeholder { color: #9aa4af; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; margin: 12px 0; color: #34414e; line-height: 1.5; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.field-error { color: var(--danger); font-size: .9rem; margin-top: 8px; min-height: 1.2em; }
.field-error:empty { min-height: 0; margin: 0; }
.hint { color: var(--muted); font-size: .84rem; margin: 10px 0 0; }
.eyebrow { display: block; font: 600 .74rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin: 0 0 14px; }
.eyebrow.on-dark { color: #a9d9c4; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Portada (hero) ───────────────────────────────────────────────────────── */
.hero { position: relative; z-index: 2; color: #e6edf3; background: var(--navy-950); padding: calc(var(--header-h) + 64px) 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--navy-950); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.7); }
/* Velo oscuro, más denso a la izquierda (donde va el texto) para que se lea bien */
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(6,20,35,.95) 0%, rgba(6,20,35,.88) 42%, rgba(6,20,35,.62) 75%, rgba(6,20,35,.55) 100%),
  linear-gradient(180deg, rgba(6,20,35,.35) 0%, rgba(6,20,35,0) 30%, rgba(6,20,35,.6) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; padding-bottom: 56px; }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.hero-kicker { font: 600 .8rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #b9cbda; margin: 0 0 18px; }
.hero h1 { color: #fff; max-width: 13.5em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: #bfe8d6; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: #e6edf3; max-width: 36em; }
.hero .lead strong { color: #fff; font-weight: 600; }
.hero-note { margin: 18px 0 0; font-size: .95rem; color: #c3d1dd; max-width: 40em; }

.search-card { position: relative; z-index: 5; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 4px 20px 20px; margin-top: 30px; box-shadow: 0 20px 50px rgba(0,0,0,.35); max-width: 640px; }
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { display: inline-flex; white-space: nowrap; align-items: center; background: none; border: 0; font: 600 .94rem var(--sans); color: var(--muted); padding: 14px 0 12px; cursor: pointer; position: relative; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--green); }
.search-row { display: flex; gap: 10px; align-items: stretch; }
.combo { position: relative; flex: 1; min-width: 0; }
.field-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.search-input { padding-left: 46px !important; height: 56px; font-size: 1.05rem !important; }
.ref-input { font-family: var(--mono) !important; letter-spacing: .05em; text-transform: uppercase; }
.search-row .btn { height: 56px; }
@media (max-width: 600px) { .search-row { flex-direction: column; } .search-row .btn { width: 100%; } }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; list-style: none; margin: 0; padding: 4px 0; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-2); max-height: 340px; overflow: auto; }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--soft); }
.suggest li:last-child { border-bottom: 0; }
.suggest li .ico { color: var(--faint); width: 18px; height: 18px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--tint); }
.suggest li b { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); }
.suggest li small { color: var(--muted); font-size: .8rem; }
.suggest li.info { cursor: default; color: var(--muted); font-size: .9rem; }
.suggest li.info:hover { background: none; }
.suggest li em { margin-left: auto; font-style: normal; font-size: .76rem; font-weight: 600; color: var(--warn); white-space: nowrap; }

.loader { display: none; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.loader.on { display: block; }
.loader-head { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 8px; }
.loader-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 4px; background: var(--soft); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width .6s ease; }
.loader ol { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .78rem; color: var(--faint); }
.loader li + li::before { content: "·"; margin: 0 8px; color: var(--line-2); }
.loader li { transition: color .3s; }
.loader li.done { color: var(--green-700); }
.loader li.now { color: var(--navy); font-weight: 600; }
.loader-slow { margin: 10px 0 0; font-size: .84rem; color: var(--muted); }

/* Páginas reales del certificado de ejemplo */
.hero-doc { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.doc-stack { position: relative; }
.doc-stack img { display: block; width: 100%; height: auto; background: #fff; border-radius: 2px; }
.doc-front { position: relative; z-index: 1; box-shadow: var(--sh-doc); }
.doc-back { position: absolute; top: 0; left: 0; transform: translate(34px, -16px) rotate(4deg); box-shadow: var(--sh-doc); }
.hero-doc figcaption { margin-top: 16px; font-size: .8rem; color: #9fb0c0; text-align: center; }
@media (max-width: 1020px) { .hero-doc { display: none; } }

.sources-band { display: flex; align-items: baseline; gap: 10px 26px; flex-wrap: wrap; padding: 20px 0 24px; border-top: 1px solid rgba(255,255,255,.12); }
.sources-title { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #8fa3b6; }
.sources-band ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; }
.sources-band li { font: 600 .92rem var(--sans); color: #dce5ed; }

/* ── Secciones genéricas ──────────────────────────────────────────────────── */
section { padding: 92px 0; }
@media (max-width: 760px) { section { padding: 64px 0; } }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p:last-child { margin-bottom: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Escala A-G con la forma de la etiqueta energética */
.g-A { background: var(--gA); } .g-B { background: var(--gB); } .g-C { background: var(--gC); } .g-D { background: var(--gD); }
.g-E { background: var(--gE); } .g-F { background: var(--gF); } .g-G { background: var(--gG); }
.elabel { position: relative; display: grid; gap: 3px; }
.elabel i { display: block; height: 22px; padding-left: 8px; font: 700 .78rem/22px var(--sans); font-style: normal; color: #fff; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%); }
.elabel i.g-B, .elabel i.g-C, .elabel i.g-D, .elabel i.g-E { color: rgba(0,0,0,.66); }
.elabel i:nth-child(1) { width: 34%; } .elabel i:nth-child(2) { width: 45%; } .elabel i:nth-child(3) { width: 56%; }
.elabel i:nth-child(4) { width: 67%; } .elabel i:nth-child(5) { width: 78%; } .elabel i:nth-child(6) { width: 89%; }
.elabel i:nth-child(7) { width: 100%; }

/* ── Qué analiza (riesgos + historial) ───────────────────────────────────── */
.analysis { background: var(--paper); }
.risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.risk-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.risk-media { position: relative; height: 168px; display: flex; align-items: flex-end; padding: 14px 18px; color: #fff; isolation: isolate; background: var(--navy-900); }
.risk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.risk-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,20,35,0) 35%, rgba(6,20,35,.85) 100%); }
.risk-media.no-photo { background: var(--navy-600); }
.risk-media h3 { color: #fff; margin: 0; font-size: 1.32rem; }
.risk-body { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.risk-row { margin: 0; font-size: .94rem; line-height: 1.5; color: var(--text); }
.risk-k { display: block; font: 600 .7rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.risk-past { padding-top: 12px; border-top: 1px solid var(--line); }
.risk-past .risk-k { color: var(--amber-ink); }
.risk-past b { color: var(--ink); }
.risk-src { margin: auto 0 0; font-size: .78rem; color: var(--faint); }

.grade-band { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px) auto; gap: 24px 40px; align-items: center; padding: 28px 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.grade-band h3 { margin: 0 0 4px; }
.grade-band p { margin: 0; color: var(--text); font-size: .95rem; }
.grade-scale p { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 1100px) { .grade-band { grid-template-columns: 1fr; } .grade-band .btn { justify-self: start; } }
@media (max-width: 980px) { .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* Móvil: los seis riesgos en carrusel deslizable (se ve asomar la siguiente tarjeta) */
  .risk-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 2px 16px 12px; scrollbar-width: none; }
  .risk-grid::-webkit-scrollbar { display: none; }
  .risk-card { flex: 0 0 84%; scroll-snap-align: center; }
  .risk-media { height: 132px; }
  .grade-band { padding: 22px 18px; }
  .grade-band .btn { width: 100%; white-space: normal; }
}

/* ── Frente a una IA: tabla comparativa ──────────────────────────────────── */
.versus { background: #fff; }
.versus-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.versus-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.versus-table th, .versus-table td { text-align: left; vertical-align: top; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.versus-table tbody tr:last-child > * { border-bottom: 0; }
.versus-table thead th { font: 600 .74rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.versus-table thead th.is-geara { color: var(--green-700); background: #e5f1eb; }
.versus-table tbody th { width: 24%; font-weight: 600; color: var(--ink); }
.versus-table td { width: 34%; color: var(--muted); }
.versus-table td.is-geara { width: 42%; color: var(--ink); background: var(--tint); }
.versus-foot { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.versus-case { margin: 0; max-width: 46em; color: var(--text); font-size: .95rem; }
.versus-case b { color: var(--ink); }
@media (max-width: 760px) {
  .versus-wrap { border: 0; border-radius: 0; overflow: visible; }
  .versus-table, .versus-table tbody, .versus-table tr, .versus-table th, .versus-table td { display: block; width: auto !important; }
  .versus-table thead { display: none; }
  .versus-table tr { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 8px; }
  .versus-table tbody th { grid-column: 1 / -1; padding: 10px 14px 8px; border: 0; font-size: .92rem; }
  .versus-table td { padding: 8px 14px 10px; border: 0; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.45; }
  .versus-table td + td { border-left: 1px solid var(--line); }
  .versus-table td::before { content: attr(data-col); display: block; font: 600 .68rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
  .versus-table td.is-geara::before { color: var(--green-700); }
  .versus-table tbody tr:last-child > * { border-bottom: 0; }
}

/* ── Para quién ──────────────────────────────────────────────────────────── */
.who { background: var(--paper); }
.who-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.who-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.who-pro { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--text); }
.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0; }
.who-item { padding: 22px 0 24px; border-top: 1px solid var(--line-2); }
.who-item dt { font: 600 1.28rem/1.25 var(--serif); color: var(--navy); margin-bottom: 8px; }
.who-item dd { margin: 0; color: var(--text); font-size: .96rem; }
.who-focus { display: block; margin-top: 10px; font-size: .82rem; color: var(--muted); }
@media (max-width: 980px) { .who-grid { grid-template-columns: 1fr; gap: 28px; } .who-grid .section-head { position: static; } }
@media (max-width: 640px) { .who-list { grid-template-columns: 1fr; } .who-item { padding: 18px 0 20px; } }

/* ── Lo que recibes y precio ─────────────────────────────────────────────── */
.pricing { background: #fff; }
.pages-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 48px; }
.page-fig { margin: 0; }
.page-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--sh-2); background: #fff; }
.page-fig figcaption { margin-top: 12px; font-size: .92rem; color: var(--text); }
@media (max-width: 640px) {
  .pages-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 2px 16px 14px; scrollbar-width: none; }
  .pages-row::-webkit-scrollbar { display: none; }
  .page-fig { flex: 0 0 78%; scroll-snap-align: center; }
}
.price-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; gap: 32px; } }
.includes-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 36px; }
.includes-list li { break-inside: avoid; padding: 11px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--text); }
@media (max-width: 640px) { .includes-list { columns: 1; } }
.price-box { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 30px 30px 26px; text-align: center; background: #fff; }
.price-title { font: 600 1.1rem var(--serif); color: var(--navy); margin-bottom: 4px; }
.price { font: 700 clamp(3rem, 6vw, 3.8rem)/1 var(--sans); color: var(--navy); letter-spacing: -.03em; margin: 6px 0 6px; }
.price-vat { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.guarantees { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; font-size: .86rem; color: var(--muted); }
.guarantees li { padding: 7px 0; border-top: 1px solid var(--line); }

/* ── Profesionales ───────────────────────────────────────────────────────── */
.pro-section { padding-top: 0; background: #fff; }
.pro { background: var(--navy-900); color: #d6e1ea; border-radius: var(--r-lg); padding: 52px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.pro h2 { color: #fff; }
.pro p { color: #c3d1dd; margin: 0; }
.pro-side ul { list-style: none; padding: 0; margin: 0 0 22px; }
.pro-side li { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.14); }
@media (max-width: 860px) { .pro { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ── Preguntas (dos columnas, compactas) ─────────────────────────────────── */
.faq-section { background: var(--paper); }
.faq-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 48px; flex-wrap: wrap; margin-bottom: 28px; }
.faq-head h2 { margin: 0; }
.faq-head p { margin: 0; max-width: 32em; font-size: .94rem; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; align-items: start; }
.faq details { border-top: 1px solid var(--line-2); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: .98rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.2rem/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 2px; color: var(--text); font-size: .94rem; }
.faq .contact-box { grid-column: 1 / -1; }
.faq .contact-box summary { color: var(--green-700); }
.faq .contact-box .form-card { margin-top: 16px; max-width: 760px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Llamada final */
.final-cta { background: var(--navy-900); color: #c3d1dd; padding: 64px 0; }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.final-cta h2 { color: #fff; margin-bottom: 6px; }
.final-cta p { margin: 0; }

/* Barra fija en móvil (antes de buscar) */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,31,51,.08); transform: translateY(110%); transition: transform .3s ease; font-size: .86rem; color: var(--muted); }
.mobile-cta b { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.1; }
.mobile-cta small { font-size: .74rem; }
.mobile-cta.show { transform: none; }
@media (min-width: 761px) { .mobile-cta { display: none !important; } }

/* ── Vista previa y compra ────────────────────────────────────────────────── */
#preview-title:focus { outline: none; }
.preview-section { background: #eef1ef; padding: 36px 0 72px; scroll-margin-top: 0; }
.preview-head { margin-bottom: 22px; }
.preview-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.preview-addr { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; color: var(--muted); font-size: .92rem; }
.preview-addr b { color: var(--ink); font-size: 1.02rem; }
.found { display: inline-flex; align-items: center; gap: 5px; color: var(--green-700); font-weight: 600; font-size: .86rem; }
.found .ico { width: 17px; height: 17px; stroke-width: 2.4; }
.preview-ref span { font-family: var(--mono); font-size: .86rem; color: var(--slate); }

.preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); grid-template-areas: "map checkout" "inc checkout"; gap: 24px 28px; align-items: start; }
.checkout-card { grid-area: checkout; position: sticky; top: calc(var(--header-h) + 16px); padding: 22px; border: 2px solid var(--green); box-shadow: 0 12px 32px rgba(15,122,92,.12); }
.card-map { grid-area: map; padding: 0; overflow: hidden; }
.includes-card { grid-area: inc; }
.map { height: 340px; background: var(--soft); }
.map-body { padding: 18px 22px 22px; }
.map-check { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; margin: 0; }
.facts dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.history-teaser { margin: 0; line-height: 1.35; }
#p-history-title { display: block; font-weight: 600; color: var(--ink); font-size: 1.04rem; }
#p-history-title b { font: 600 1.7rem/1 var(--serif); color: var(--amber-ink); margin-right: 2px; }
.history-teaser small { display: block; margin-top: 4px; font-size: .84rem; color: var(--muted); }

.locked-grade { display: flex; align-items: center; gap: 16px; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--soft); }
.elabel-sm { flex: none; width: 150px; padding-right: 36px; gap: 2px; }
.elabel-sm i { height: 11px; font-size: .5rem; line-height: 11px; padding-left: 4px; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); }
.elabel-q { position: absolute; right: 0; top: calc(50% - 13px); width: 34px; height: 26px; display: grid; place-items: center; padding-left: 6px; background: var(--ink); color: #fff; font: 700 .9rem var(--sans); clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); }
.locked-grade p { margin: 0; line-height: 1.3; font-size: .92rem; }
.locked-grade p b { display: block; color: var(--ink); }
.locked-grade p span { font-size: .82rem; color: var(--muted); }

.avail-summary { margin: 12px 0 0; font-size: .88rem; color: var(--green-700); }
.avail-summary.partial { color: var(--warn); }
.avail-summary:empty { display: none; }

#checkout-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.buy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.buy-row b { display: block; color: var(--ink); font-size: .98rem; }
.buy-row small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.buy-price { font: 700 1.7rem/1 var(--sans); color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
#checkout-form label[for="email"] { font-size: .86rem; }
#checkout-form .check { margin: 10px 0 12px; font-size: .82rem; }
.btn-pay { padding: 17px 22px; font-size: 1.08rem; }
.btn-pay .ico { width: 18px; height: 18px; }
.btn-pay.busy .ico { display: none; }
.legal-line { margin: 10px 0 0; font-size: .74rem; line-height: 1.45; color: var(--faint); text-align: center; }
.legal-line a { color: var(--muted); }
.pay-trust { list-style: none; margin: 14px 0 0; padding: 0; font-size: .82rem; color: var(--text); }
.pay-trust li { padding: 7px 0; border-top: 1px solid var(--line); }

.avail-details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.avail-details summary { cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--slate); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.avail-details summary::-webkit-details-marker { display: none; }
.avail-details summary::after { content: "+"; font-size: 1.1rem; color: var(--faint); }
.avail-details[open] summary::after { content: "–"; }
.avail { list-style: none; padding: 0; margin: 6px 0 0; }
.avail li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.avail .src { color: var(--muted); font-size: .74rem; display: block; }
.avail .src .req { margin-left: 6px; font-size: .7rem; font-weight: 600; color: var(--slate); }
.ok, .ko { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.ok { color: var(--green-700); }
.ko { color: var(--warn); }

.includes-card { padding: 26px 28px; }
.includes-card h3 { margin-bottom: 18px; font-size: 1.4rem; }
.includes-body { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 36px; align-items: start; }
/* Tres páginas reales apiladas: la 1 delante, la 3 y la 6 asomando detrás */
.inc-stack { position: relative; margin: 6px 22px 0 0; }
.inc-stack img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.inc-stack .stack-3 { position: relative; z-index: 3; box-shadow: var(--sh-2); }
.inc-stack .stack-2 { position: absolute; z-index: 2; inset: 0 auto auto 0; transform: translate(14px, -8px) rotate(3deg); box-shadow: var(--sh-1); }
.inc-stack .stack-1 { position: absolute; z-index: 1; inset: 0 auto auto 0; transform: translate(26px, -12px) rotate(6deg); box-shadow: var(--sh-1); }
.inc-list { list-style: none; counter-reset: inc; margin: 0; padding: 0; }
.inc-list li { counter-increment: inc; display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--text); }
.inc-list li::before { content: counter(inc) "."; color: var(--faint); font-variant-numeric: tabular-nums; }
.inc-list b { color: var(--amber-ink); }
.inc-pages { margin: 0; }
.inc-pages figcaption { margin-top: 14px; font-size: .78rem; line-height: 1.45; color: var(--faint); }

/* Barra fija de pago: aparece cuando el botón principal no se ve */
.pay-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11,31,51,.1); transform: translateY(110%); transition: transform .28s ease; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.pay-bar.show { transform: none; }
.pay-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pay-bar-txt { min-width: 0; line-height: 1.25; }
.pay-bar-txt b { display: block; color: var(--navy); font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-bar-txt small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-bar .btn { flex: none; padding: 13px 18px; }

@media (max-width: 980px) {
  .preview { grid-template-columns: 1fr; grid-template-areas: "checkout" "inc" "map"; }
  .checkout-card { position: static; }
}
@media (max-width: 600px) {
  .preview-section { padding: 22px 0 96px; }
  .preview-head { margin-bottom: 14px; }
  .preview-head h2 { font-size: 1.36rem; }
  .preview-addr { font-size: .82rem; }
  .preview-addr b { font-size: .92rem; }
  .checkout-card { padding: 16px; }
  .history-teaser small { display: none; }
  #p-history-title { font-size: .96rem; }
  .locked-grade { padding: 10px 12px; gap: 12px; margin-top: 12px; }
  .elabel-sm { width: 128px; }
  .locked-grade p { font-size: .86rem; }
  .avail-summary { font-size: .82rem; margin-top: 10px; }
  #checkout-form { margin-top: 12px; padding-top: 12px; }
  .buy-row { margin-bottom: 8px; }
  .buy-row small { display: none; }
  .buy-price { font-size: 1.45rem; }
  .btn-pay { font-size: 1.02rem; padding: 16px 14px; }
  .map { height: 220px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .includes-card { padding: 20px 18px; }
  .includes-card h3 { font-size: 1.2rem; }
  .includes-body { grid-template-columns: 1fr; gap: 22px; }
  .inc-pages { width: 58%; max-width: 230px; }
  .pay-bar-txt { display: none; }
  .pay-bar .btn { width: 100%; padding: 15px 18px; font-size: 1.02rem; }
}

.notice { border-radius: var(--r); padding: 12px 14px; font-size: .9rem; margin: 14px 0; }
.notice.warn { background: #fff7e6; border: 1px solid #f5d38f; color: #6b4a00; }
.notice.error { background: #fdecea; border: 1px solid #f5b5ae; color: #7a1b12; }
.notice.ok-box { background: var(--mint); border: 1px solid var(--mint-2); color: #0b4d3a; display: flex; gap: 10px; align-items: flex-start; }

/* ── Pedido, verificación y páginas legales ───────────────────────────────── */
.page-wrap { padding: 56px 0 96px; }
.status-card { text-align: center; padding: 44px 30px; }
.status-card h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.grade-badge { width: 92px; height: 92px; border-radius: var(--r-lg); display: grid; place-items: center; font: 800 3.2rem var(--sans); color: #fff; margin: 0 auto 18px; }
.grade-badge.light { color: var(--ink); }
.factor-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; text-align: left; }
@media (max-width: 620px) { .factor-levels { grid-template-columns: repeat(2, 1fr); } }
.factor-levels div { background: var(--soft); border-radius: var(--r); padding: 11px 13px; font-size: .86rem; }
.factor-levels b { display: block; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.lvl-low { background: var(--low); } .lvl-moderate { background: var(--moderate); } .lvl-high { background: var(--high); } .lvl-very_high { background: var(--very_high); }
.big-spinner { width: 48px; height: 48px; border: 4px solid #d8dee4; border-top-color: var(--green); border-radius: 50%; margin: 10px auto 20px; animation: spin .9s linear infinite; }
.legal { font-size: .98rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page { padding: 56px 0 96px; }

/* ── Guías (contenido SEO) ───────────────────────────────────────────────── */
.guide { font-size: 1.02rem; }
.guide h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); text-wrap: balance; }
.guide h2 { font-size: 1.5rem; margin-top: 1.9em; }
.guide-lead { font-size: 1.15rem; color: #3d4b59; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 26px 0; padding: 20px 22px; border-radius: var(--r-lg); background: var(--tint); border: 1px solid var(--mint-2); }
.guide-cta b { display: block; color: var(--navy); }
.guide-cta span { display: block; font-size: .92rem; color: #2f4a40; max-width: 36em; }
.guide-cta-end { background: var(--navy-900); border: 0; }
.guide-cta-end b { color: #fff; } .guide-cta-end span { color: #c4d2df; }
.guide-list { padding-left: 1.1em; } .guide-list li { margin-bottom: .6em; }
.guide-steps li { margin-bottom: .5em; }
.callout { padding: 14px 16px; border-left: 3px solid #c99a00; background: #fbf7ec; color: #3a3324; font-size: .96rem; }
.guide .faq { display: block; margin-top: 8px; }
.guide .fine { font-size: .8rem; color: var(--faint); }

/* ── Pie ──────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: #9fb0c0; padding: 64px 0 36px; font-size: .9rem; }
.site-footer a { color: #e2eaf1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { max-width: 38em; margin-top: 14px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.footer-title { font: 600 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6f8396; margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 9px 0; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 20px; font-size: .76rem; color: #6f8396; }
.site-footer .fine.copy { border: 0; margin-top: 0; padding-top: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .mobile-cta, .final-cta, .pay-bar { display: none; } }
