/* Civik-IA · web comercial
   Diseño y contenido: propuesta de Antonio (v1.116, oct-2026).
   Una sola hoja de estilos para todo el sitio; sin dependencias externas. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0d3b66;
  --ink: #082f56;
  --green: #18b37a;
  --green-dark: #0d9475;
  --green-ink: #0f7a55;          /* verde para texto pequeño: 4.6:1 sobre blanco */
  --cyan: #2fb1e1;
  --muted: #536b80;
  --soft: #6b7f90;
  --line: rgba(13, 59, 102, .10);
  --line-strong: rgba(13, 59, 102, .16);
  --bg: #f8fbfa;
  --bg-tint: #f1f8f5;
  --card: #ffffff;
  --shadow-sm: 0 4px 14px rgba(13, 59, 102, .06);
  --shadow: 0 18px 50px rgba(13, 59, 102, .10);
  --shadow-lg: 0 30px 80px rgba(13, 59, 102, .16);
  --radius: 18px;
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; color: var(--navy); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section--white { background: #fff; }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), #f7fbf9); }

/* ---------- Marca y textos ---------- */
.wordmark { font-weight: 800; letter-spacing: -.03em; color: var(--navy); white-space: nowrap; }
.wordmark b { font-weight: inherit; color: var(--green); }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--green-ink); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--green); }
.center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: transparent; }

.title { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; }
.title .accent, .hero h1 .accent { display: block; color: var(--green); }
.title--md { font-size: clamp(30px, 4.2vw, 46px); }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.intro { max-width: 940px; margin-inline: auto; }
.intro .lead { max-width: 36em; }

.claim { margin-top: clamp(48px, 7vw, 80px); text-align: center; }
.claim strong { display: block; font-size: clamp(20px, 2.2vw, 26px); font-weight: 750; line-height: 1.25; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.claim p { margin: 10px auto 0; max-width: 34em; color: var(--muted); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn--primary { color: #fff; background: linear-gradient(100deg, var(--green-dark), var(--green)); box-shadow: 0 12px 30px rgba(24, 179, 122, .22); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(24, 179, 122, .30); }
.btn--ghost { color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-ink); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 15px; border-radius: 10px; }

/* ---------- Cabecera ---------- */
/* El desenfoque va en ::before: en la propia cabecera la convertiría en el contenedor
   de los position:fixed y el menú móvil mediría lo que ella. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: transform .22s ease, border-color .2s ease, box-shadow .2s ease; }
.site-header.is-hidden { transform: translateY(-110%); }
@media (min-width: 1121px) {
  .site-header.is-floating { border-bottom-color: transparent !important; box-shadow: none !important; }
  .site-header.is-floating::before { left: max(16px, calc(50% - 600px)); right: max(16px, calc(50% - 600px)); border-radius: 0 0 12px 12px; background: rgba(255, 255, 255, .97); box-shadow: 0 9px 28px rgba(13, 59, 102, .12); }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(13, 59, 102, .05); }
.site-header .shell { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.nav > a, .nav-product > button { white-space: nowrap; }
.nav > a:not(.btn), .nav-product > button { position: relative; padding: 10px 0; background: none; border: 0; color: #34546f; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; border-radius: 2px; background: var(--green); transform: translateX(-50%); transition: width .2s ease; }
.nav > a:not(.btn):hover, .nav-product > button:hover { color: var(--green-ink); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { width: 32px; }
.nav > a[aria-current="page"] { color: var(--navy); font-weight: 650; }
.nav .btn { color: #fff; }
.nav-product { position: relative; }
.nav-product > button { display: inline-flex; align-items: center; gap: 6px; }
.nav-product > button svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-product > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.product-menu { position: absolute; top: calc(100% + 10px); left: 50%; width: 300px; padding: 8px; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.product-menu[hidden] { display: none; }
.nav-access .product-menu { width: 260px; }
.product-menu a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.product-menu a:hover, .product-menu a:focus-visible { background: var(--bg-tint); }
.product-menu strong { display: block; color: var(--navy); font-size: 15px; }
.product-menu span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 26px; height: 26px; margin: auto; }
.mobile-nav { display: none; }

@media (max-width: 1120px) {
  :root { --header-h: 68px; }
  .brand img { height: 46px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 49; overflow-y: auto; padding: 12px var(--gutter) 32px; background: #fff; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 18px; font-weight: 600; text-decoration: none; }
  .mobile-nav__kicker { display: block; padding: 22px 4px 4px; color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-nav .sub a { padding-left: 18px; font-size: 16px; font-weight: 500; color: var(--muted); }
  .mobile-nav .btn { display: flex; margin-top: 24px; color: #fff; border: 0; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Animación de entrada (solo si hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Teléfono y monitor ---------- */
.phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 841 / 1789; padding: 11px; border-radius: 48px; background: #0b2238; box-shadow: 0 0 0 2px #1d3a55 inset, var(--shadow-lg); }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 38px; background: #eef4fb; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .45s ease; }
.phone__screen img.is-visible { opacity: 1; }
.phone--sm { width: 220px; padding: 8px; border-radius: 36px; }
.phone--sm .phone__screen { border-radius: 29px; }

.monitor { width: 100%; }
.monitor__frame { padding: 10px; border-radius: 18px; background: #0f2c46; box-shadow: var(--shadow-lg); }
.monitor__frame img { width: 100%; border-radius: 10px; }
.monitor__neck { width: 12%; height: 36px; margin: 0 auto; background: linear-gradient(#173a57, #0f2c46); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.monitor__base { width: 30%; height: 10px; margin: 0 auto; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: #0f2c46; }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 82% 24%, rgba(24, 179, 122, .16), transparent 28%), radial-gradient(circle at 68% 78%, rgba(47, 177, 225, .12), transparent 32%), linear-gradient(135deg, #fff 0%, #fbfdfc 42%, #f1faf7 100%); }
.hero .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; min-height: min(760px, calc(100svh - var(--header-h))); padding-block: 48px 72px; }
.hero__copy .wordmark { display: block; margin-bottom: 14px; font-size: 22px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); font-weight: 850; letter-spacing: -.045em; line-height: 1; }
.hero .lead { max-width: 22em; }
.hero .btn { margin-top: 34px; }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero__visual .skyline { position: absolute; left: -20%; right: -40%; bottom: 4%; width: 140%; max-width: none; opacity: .35; pointer-events: none; }
.hero__visual .halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(24, 179, 122, .16), rgba(47, 177, 225, .06) 55%, transparent 70%); }
.hero__visual .phone { width: 290px; transform: rotate(4deg); }

@media (max-width: 860px) {
  .hero .shell { grid-template-columns: minmax(0, 1fr); text-align: center; padding-block: 32px 56px; min-height: 0; }
  .hero .lead { margin-inline: auto; }
  .hero__visual { min-height: 0; padding-top: 12px; }
  .hero__visual .phone { width: 240px; transform: none; }
  .hero__visual .halo { width: 320px; height: 320px; }
}

/* ---------- El municipio digital (ecosistema) ---------- */
.eco { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; max-width: 980px; margin: clamp(48px, 7vw, 72px) auto 0; }
.eco-card { padding: 30px 28px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.eco-card h3 { margin-top: 14px; font-size: 22px; letter-spacing: -.02em; }
.eco-card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.eco-card strong { color: var(--navy); }
.icon-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(24, 179, 122, .10); color: var(--green-dark); }
.icon-badge--blue { background: rgba(47, 177, 225, .12); color: #1f7fb0; }
.icon-badge svg { width: 24px; height: 24px; }
.eco-core { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 12px rgba(24, 179, 122, .07), 0 0 0 24px rgba(47, 177, 225, .05), var(--shadow); font-size: 19px; }
.eco-core { position: relative; }
.eco-core::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(24, 179, 122, .22); opacity: .76; pointer-events: none; }
.eco > .eco-card:first-child, .eco > .eco-card:nth-child(3) { position: relative; }
.eco > .eco-card:first-child::after, .eco > .eco-card:nth-child(3)::after { content: ""; position: absolute; top: 50%; width: 28px; height: 1.5px; }
.eco > .eco-card:first-child::after { right: -29px; background: linear-gradient(90deg, transparent, var(--green)); }
.eco > .eco-card:nth-child(3)::after { left: -29px; background: linear-gradient(90deg, #2f8fc7, transparent); }
.eco-down { position: relative; grid-column: 1 / -1; justify-self: center; width: min(460px, 100%); margin-top: 44px; }
.eco-down::before { content: ""; position: absolute; left: 50%; top: -58px; width: 2px; height: 50px; background: linear-gradient(transparent, var(--green)); }
@media (max-width: 760px) {
  .eco { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .eco-core { justify-self: center; order: -1; width: 112px; height: 112px; margin-bottom: 12px; }
  .eco > .eco-card::after { display: none; }
}

/* ---------- Una App. Muchas posibilidades ---------- */
.app-tabs { display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 48px auto 0; padding: 6px; overflow-x: auto; background: #fff; border-radius: 999px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); scrollbar-width: none; }
.app-tabs::-webkit-scrollbar { display: none; }
.app-tabs button { flex: none; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.app-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.app-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; min-height: 44px; margin: 20px auto 0; padding: 0; list-style: none; }
.app-features button { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all .2s ease; }
.app-features button:hover { color: var(--green-ink); border-color: var(--green); }
.app-features button[aria-pressed="true"] { color: var(--green-ink); border-color: var(--green); background: rgba(24, 179, 122, .08); font-weight: 600; }
.app-stage { position: relative; display: grid; place-items: center; margin-top: 36px; }
.app-stage::before { content: ""; position: absolute; width: min(560px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(47, 177, 225, .12), rgba(24, 179, 122, .06) 50%, transparent 70%); }
.app-caption { min-height: 3.2em; margin-top: 22px; color: var(--muted); font-size: 15.5px; text-align: center; }
.app-caption strong { display: block; color: var(--navy); }

/* ---------- Del vecino al Ayuntamiento ---------- */
.flow { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; gap: clamp(20px, 3vw, 44px); margin-top: clamp(48px, 7vw, 72px); }
.flow__label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--green-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.flow__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(24, 179, 122, .15); }
.flow__label--blue { color: #1f6f9c; }
.flow__label--blue::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(47, 177, 225, .18); }
.flow__app { position: relative; }
.flow__toast { position: absolute; right: -36px; bottom: 120px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--green-ink); font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }
.flow__steps { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 260px; margin-inline: auto; width: 100%; }
.flow__steps .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(13, 59, 102, .14); }
.flow__steps .core { display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 10px rgba(24, 179, 122, .07), var(--shadow); font-size: 18px; }
.flow__steps .ring-arc { position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 72%, rgba(24, 179, 122, .15) 80%, var(--green) 93%, var(--navy) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); }
.flow__steps ol { margin: 0; padding: 0; list-style: none; }
.flow__steps li { position: absolute; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow-sm); transition: color .3s ease, box-shadow .3s ease; }
.flow__steps li.is-active { color: var(--green-ink); box-shadow: 0 0 0 1.5px var(--green), var(--shadow-sm); }
.flow__steps li:nth-child(1) { left: -6%; top: 70%; }
.flow__steps li:nth-child(2) { left: -10%; top: 22%; }
.flow__steps li:nth-child(3) { left: 50%; top: -4%; transform: translateX(-50%); }
.flow__steps li:nth-child(4) { right: -12%; top: 22%; }
.flow__steps li:nth-child(5) { right: -6%; top: 70%; }
.panel-mock { overflow: hidden; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 14px; }
.panel-mock__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: linear-gradient(100deg, var(--navy), #11706a); color: #fff; }
.panel-mock__bar .wordmark { color: #fff; font-size: 17px; }
.panel-mock__bar .wordmark b { color: #5be3ad; }
.panel-mock__bar span:last-child { font-size: 12.5px; opacity: .8; }
.panel-mock__body { display: grid; grid-template-columns: 110px minmax(0, 1fr); }
.panel-mock__nav { display: grid; align-content: start; gap: 12px; padding: 22px 16px; background: #f6f9fb; border-right: 1px solid var(--line); }
.panel-mock__nav i { display: block; height: 8px; border-radius: 4px; background: #dfe7ee; }
.panel-mock__nav i:nth-child(2) { background: rgba(24, 179, 122, .45); }
.panel-mock__main { padding: 20px 22px 24px; }
.panel-mock__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-mock__head strong { color: var(--navy); font-size: 17px; }
.panel-mock__head span { padding: 5px 10px; border-radius: 999px; background: rgba(24, 179, 122, .1); color: var(--green-ink); font-size: 12px; font-weight: 700; }
.ticket { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .4s ease, box-shadow .4s ease; }
.ticket::before { content: ""; flex: none; width: 4px; align-self: stretch; border-radius: 4px; background: #dfe7ee; }
.ticket div { flex: 1; min-width: 0; }
.ticket b { display: block; color: var(--navy); font-size: 14.5px; }
.ticket small { color: var(--soft); font-size: 12.5px; }
.ticket em { flex: none; padding: 4px 10px; border-radius: 999px; background: #f1f4f7; color: var(--soft); font-size: 12px; font-style: normal; font-weight: 600; }
.flow__panel { position: relative; }
.flow__state { position: absolute; right: 18px; bottom: -14px; padding: 8px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 12px 28px rgba(13, 59, 102, .18); opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.flow__state.is-on { opacity: 1; transform: none; }
.ticket.is-new { border-color: rgba(24, 179, 122, .45); box-shadow: 0 8px 24px rgba(24, 179, 122, .12); }
.ticket.is-new::before { background: var(--green); }
.ticket.is-new em { background: rgba(24, 179, 122, .12); color: var(--green-ink); }
@media (max-width: 960px) {
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flow__panel { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .flow__app .phone { margin-inline: auto; }
  .flow__toast { right: -18px; }
  .flow__steps { max-width: 230px; margin-block: 16px; }
  .flow__panel { width: 100%; }
  .panel-mock__body { grid-template-columns: minmax(0, 1fr); }
  .panel-mock__nav { display: none; }
}

/* ---------- Panel de gestión (escaparate) ---------- */
.showcase { margin-top: clamp(48px, 7vw, 72px); }
.showcase__tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.showcase__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@media (max-width: 640px) {
  /* En móvil la tabla del panel se ve recortada a propósito, con un fundido. */
  .showcase .monitor__frame { overflow: hidden; }
  .showcase .monitor__frame img { width: 170%; max-width: none; -webkit-mask-image: linear-gradient(90deg, #000 52%, transparent 60%); mask-image: linear-gradient(90deg, #000 52%, transparent 60%); }
  .showcase .monitor__neck, .showcase .monitor__base { display: none; }
}

/* ---------- Tres columnas numeradas ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-strong); }
.cols > * { padding: 30px clamp(18px, 2.4vw, 32px) 8px; }
.cols > * + * { border-left: 1px solid var(--line); }
.cols .num { display: block; margin-bottom: 12px; color: var(--green-ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.cols h3 { font-size: 21px; letter-spacing: -.02em; }
.cols p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.cols .icon { width: 26px; height: 26px; margin-bottom: 14px; color: var(--green-dark); }
@media (max-width: 760px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols > * { padding-inline: 0; padding-bottom: 26px; }
  .cols > * + * { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Pensada para municipios reales ---------- */
/* El SVG se estira en horizontal (preserveAspectRatio=none) y mide 470 px de alto:
   nodos y puntos usan % en x y px en y para caer sobre el trazado. */
.journey { position: relative; height: 470px; max-width: 1180px; margin: clamp(40px, 6vw, 64px) auto 0; }
.journey .skyline { position: absolute; left: 14%; bottom: -60px; width: 72%; opacity: .26; pointer-events: none; }
.journey__route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey__route path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.journey__base { stroke: rgba(13, 59, 102, .16); stroke-width: 1.1; }
.journey__energy { stroke: url(#journey-energy); stroke-width: 2.75; opacity: 0; filter: drop-shadow(0 0 2.6px rgba(24, 179, 122, .3)); }
.journey__node { position: absolute; left: calc(var(--x) / 1180 * 100%); top: calc(var(--y) * 1px); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(24, 179, 122, .07); }
.journey__node::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid rgba(24, 179, 122, .5); opacity: 0; }
.journey__node.is-hit::after { animation: node-hit 1.12s cubic-bezier(.22, .61, .36, 1); }
@keyframes node-hit { 0% { opacity: 0; transform: scale(.56); } 20% { opacity: .62; transform: scale(.76); } 48% { opacity: .38; transform: scale(1.02); } 100% { opacity: 0; transform: scale(1.44); } }
.journey__point { position: absolute; width: 28.4%; padding: 4px 6px; border-radius: 12px; outline: none; transition: background-color .25s ease; }
.journey__point:focus-visible { box-shadow: 0 0 0 2px var(--green); }
.journey__point:nth-of-type(1) { left: 4%; top: 8px; }
.journey__point:nth-of-type(2) { left: 36.5%; top: 132px; }
.journey__point:nth-of-type(3) { left: 69.6%; top: 220px; }
.journey__point .num { display: block; margin-bottom: 10px; color: var(--green-ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.journey__point h3 { font-size: 21px; letter-spacing: -.02em; }
.journey__point p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) {
  .journey { height: auto; display: grid; gap: 0; max-width: 560px; padding-bottom: 150px; }
  .journey__route, .journey__node { display: none; }
  .journey .skyline { left: 0; bottom: 0; width: 100%; opacity: .42; }
  .journey__point { position: relative; inset: auto !important; width: auto; padding: 22px 0 22px 26px; border-left: 2px solid rgba(24, 179, 122, .25); border-radius: 0; }
  .journey__point::before { content: ""; position: absolute; left: -5px; top: 28px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(24, 179, 122, .1); }
}
.ia-ready { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); max-width: 860px; margin: clamp(48px, 7vw, 72px) auto 0; padding: 24px clamp(20px, 3vw, 32px); border: 1px solid rgba(24, 179, 122, .25); border-radius: var(--radius); background: linear-gradient(100deg, rgba(24, 179, 122, .07), rgba(47, 177, 225, .05)); }
.ia-ready__badge { flex: none; color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.ia-ready__badge b { color: var(--green); }
.ia-ready strong { display: block; color: var(--navy); font-size: 17px; }
.ia-ready p { margin-top: 4px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 560px) { .ia-ready { flex-direction: column; align-items: flex-start; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 12px; align-items: start; padding: 22px 0; cursor: pointer; list-style: none; }
.faq__more { padding-top: 28px; }
.faq--page { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-inline: auto; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .num { padding-top: 3px; color: var(--green-ink); font-size: 13px; font-weight: 700; }
.faq summary .q { color: var(--navy); font-size: 18px; font-weight: 650; line-height: 1.35; }
.faq summary svg { width: 22px; height: 22px; margin-top: 2px; color: var(--navy); transition: transform .25s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover .q { color: var(--green-ink); }
.faq .answer { padding: 0 36px 24px 46px; color: var(--muted); }
.faq .answer p + p { margin-top: 12px; }
.faq .answer strong { color: var(--navy); }
@media (max-width: 860px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__intro { position: static; }
  .faq .answer { padding: 0 0 22px 46px; }
}

/* ---------- Confianza ---------- */
.trust-rail { position: relative; height: 32px; margin-top: clamp(40px, 6vw, 64px); }
.trust-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 15.5px; height: 1px; background: var(--line-strong); }
.trust-rail__energy { position: absolute; left: 0; top: 15.5px; width: 100%; height: 2px; background: linear-gradient(90deg, rgba(24, 179, 122, 0), rgba(24, 179, 122, .44) 17%, var(--green) 29%, #219c94 64%, var(--navy) 90%, rgba(13, 59, 102, 0)); box-shadow: 0 0 8px rgba(24, 179, 122, .16); }
.trust-rail i { position: absolute; top: 11px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #f3f8f5; border: 1px solid rgba(13, 59, 102, .26); box-shadow: 0 0 0 5px rgba(13, 59, 102, .024); transition: background-color .4s ease, border-color .4s ease; }
.trust-rail i:nth-of-type(1) { left: 16.667%; }
.trust-rail i:nth-of-type(2) { left: 50%; }
.trust-rail i:nth-of-type(3) { left: 83.333%; }
.trust-rail i.is-reached { background: var(--green); border-color: var(--green); animation: trust-pulse .82s ease-out; }
@keyframes trust-pulse { 0% { box-shadow: 0 0 0 0 rgba(24, 179, 122, .26); } 55% { box-shadow: 0 0 0 8px rgba(24, 179, 122, .1); } 100% { box-shadow: 0 0 0 13px rgba(24, 179, 122, 0); } }
.trust .cols { margin-top: 0; border-top: 0; }
.trust .cols > * { padding-top: 26px; padding-bottom: 26px; border-radius: 14px; transition: opacity .6s ease, transform .6s ease, background-color .6s ease; }
.trust .cols .icon { transition: color .6s ease; }
.trust .cols.is-looping > * { opacity: .72; transform: translateY(6px); }
.trust .cols.is-looping > .is-reached { opacity: 1; transform: none; background: rgba(226, 242, 235, .68); }
.trust .cols.is-looping > :not(.is-reached) .icon { color: rgba(13, 59, 102, .58); }
@media (max-width: 760px) { .trust-rail { display: none; } .trust .cols > * { padding-inline: 14px; } }

/* ---------- Cierre (CTA) ---------- */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 120px); text-align: center; background: radial-gradient(circle at 20% 0%, rgba(24, 179, 122, .14), transparent 40%), radial-gradient(circle at 85% 100%, rgba(47, 177, 225, .12), transparent 40%), linear-gradient(180deg, #f3f9f6, #eef6f3); }
.cta-band h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.cta-band p { max-width: 34em; margin: 18px auto 0; color: var(--muted); font-size: 18px; }
.cta-band .btn { margin-top: 32px; }

/* ---------- Pie ---------- */
.site-footer { padding-block: 56px 28px; background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 15px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; }
.site-footer .wordmark { color: #fff; font-size: 24px; text-decoration: none; }
.site-footer .wordmark b { color: #5be3ad; }
.footer-main p { margin-top: 12px; max-width: 18em; }
.footer-main nav { display: grid; align-content: start; gap: 10px; }
.footer-main a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.footer-main a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-kicker { margin-bottom: 4px; color: #5be3ad; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.footer-bottom a { color: rgba(255, 255, 255, .86); }
@media (max-width: 860px) { .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-main > :first-child { grid-column: 1 / -1; } }

/* ---------- Página de Ayuntamientos ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 104px); background: radial-gradient(circle at 85% 10%, rgba(24, 179, 122, .14), transparent 35%), radial-gradient(circle at 50% 110%, rgba(47, 177, 225, .12), transparent 40%), linear-gradient(180deg, #fff, #f4faf7); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 850; letter-spacing: -.045em; line-height: 1.02; }
.page-hero h1 .accent { display: block; color: var(--green); }
.page-hero .shot { max-width: 920px; margin: clamp(40px, 6vw, 64px) auto 0; padding: 6px; border-radius: 22px; background: linear-gradient(135deg, rgba(24, 179, 122, .35), rgba(47, 177, 225, .25)); box-shadow: var(--shadow-lg); }
.page-hero .shot img { width: 100%; border-radius: 17px; }
.page-hero .cols { max-width: 920px; margin-inline: auto; border-top-color: var(--line); }
.page-hero .cols > * { padding-top: 22px; }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) 0; margin-top: clamp(40px, 6vw, 64px); text-align: center; }
.steps__energy { position: absolute; top: 25.4px; left: calc(100% / 6 + 26px); width: calc(100% / 3 - 52px); height: 1.25px; border-radius: 999px; background: var(--green); opacity: .72; transform: scaleX(0); transform-origin: left center; }
.steps__energy + .steps__energy { left: calc(50% + 26px); }
.steps .node { transition: background-color .32s ease, border-color .32s ease, color .32s ease, box-shadow .32s ease; }
.steps .node.is-reached { background: rgba(24, 179, 122, .78); border-color: rgba(24, 179, 122, .82); color: #fff; box-shadow: 0 0 0 8px #fff, 0 7px 18px rgba(24, 179, 122, .11); }
.steps article.is-reached .kicker { color: #10966a; }
.steps::before { content: ""; grid-column: 1 / -1; grid-row: 1; align-self: center; height: 2px; margin-inline: 16.6%; background: linear-gradient(90deg, rgba(24, 179, 122, .5), rgba(47, 177, 225, .5)); }
.steps .node { grid-row: 1; justify-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1.5px solid rgba(24, 179, 122, .5); color: var(--green-ink); font-size: 14px; font-weight: 750; box-shadow: 0 0 0 8px #fff; position: relative; }
.steps .node:nth-of-type(1) { grid-column: 1; } .steps .node:nth-of-type(2) { grid-column: 2; } .steps .node:nth-of-type(3) { grid-column: 3; }
.steps article { grid-row: 2; padding-inline: clamp(10px, 1.6vw, 20px); }
.steps .kicker { display: block; margin-bottom: 8px; color: var(--green-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.steps h3 { font-size: clamp(21px, 2.2vw, 26px); }
.steps p { max-width: 22em; margin: 10px auto 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); text-align: left; gap: 0; }
  .steps::before, .steps .node, .steps__energy { display: none; }
  .steps article { grid-row: auto; padding: 22px 0; border-top: 1px solid var(--line); }
  .steps p { margin-inline: 0; }
}

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 2; } }

.cols[data-progress] { position: relative; }
.cols[data-progress]::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1.25px; border-radius: 999px; background: var(--green); opacity: .68; transform: scaleX(0); transform-origin: left center; }
.cols[data-progress].is-running::before { animation: grow-x 9s cubic-bezier(.22, .61, .36, 1) forwards; }
.cols[data-progress].is-running > :not(.is-reached) .num, .cols[data-progress].is-running > :not(.is-reached) .icon { opacity: .56; }
.cols[data-progress] .num, .cols[data-progress] .icon { transition: opacity .32s ease, color .32s ease; }
.cols[data-progress] > .is-reached .num { color: #10966a; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* La misma App con dos identidades municipales */
.identity { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); }
.mini-app { width: 220px; overflow: hidden; border-radius: 28px; background: #fff; border: 8px solid #0b2238; box-shadow: var(--shadow); font-size: 11px; }
.mini-app:nth-child(2) { transform: translateY(28px); }
.mini-app__head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px 16px; color: #fff; background: var(--tone, #2563eb); text-align: center; }
.mini-app__head svg { width: 30px; height: 34px; }
.mini-app__head b { font-size: 14px; letter-spacing: -.01em; }
.mini-app__head span { opacity: .85; font-size: 10.5px; }
.mini-app__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 12px; }
.mini-app__grid i { display: grid; place-items: center; gap: 4px; padding: 9px 2px 7px; border: 1px solid #edf1f5; border-radius: 9px; color: #334a5e; font-size: 9px; font-style: normal; font-weight: 600; }
.mini-app__grid i::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--tone, #2563eb) 16%, #fff); }
.mini-app__foot { padding: 0 12px 14px; color: var(--soft); font-size: 9.5px; text-align: center; }
@media (max-width: 520px) { .mini-app { width: 46%; } .mini-app__grid i { font-size: 8px; } }

/* Ecosistema conectado */
.ecosystem { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); grid-template-rows: auto auto; gap: 110px 0; align-items: center; max-width: 1000px; margin: clamp(40px, 6vw, 64px) auto 0; }
.ecosystem .eco-core { grid-column: 2; grid-row: 1 / 3; justify-self: center; width: 168px; height: 168px; text-align: center; }
.ecosystem .eco-core small { display: block; max-width: 112px; margin-inline: auto; white-space: normal; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
@media (max-width: 1000px) { .ecosystem { grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); gap: 72px 0; } }
.ecosystem__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit { position: relative; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.orbit h3 { font-size: 18px; letter-spacing: -.015em; }
.orbit p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.orbit--accent h3 { color: var(--green-ink); }
.orbit .sub { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.orbit .sub b { color: var(--navy); margin-right: 8px; }
@media (max-width: 760px) {
  .ecosystem { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ecosystem__lines { display: none; }
  .ecosystem .eco-core { grid-column: 1; grid-row: auto; order: -1; width: 140px; height: 140px; }
}

/* Soporte: línea temporal */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 30px 40px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 2px; background: linear-gradient(var(--green), rgba(47, 177, 225, .4)); }
.timeline.is-looping li::before { background: linear-gradient(var(--green) calc(var(--fill, 0) * 100%), rgba(13, 59, 102, .12) 0); }
.timeline.is-looping li { opacity: .72; transition: opacity .32s ease, transform .32s ease; }
.timeline.is-looping li.is-active, .timeline.is-looping li:hover { opacity: 1; }
.timeline.is-looping li:hover { transform: translateX(3px); }
.timeline.is-looping li::after { transition: background-color .28s ease, box-shadow .28s ease; }
.timeline.is-looping li.is-active::after { background: var(--green); box-shadow: 0 0 0 5px rgba(24, 179, 122, .08); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--green); }
.timeline .kicker { display: block; color: var(--green-ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.timeline h3 { margin-top: 4px; font-size: 21px; }
.timeline p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* ---------- Precios ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: clamp(40px, 6vw, 56px) auto 0; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px clamp(22px, 3vw, 36px) 32px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.plan--featured { border-color: rgba(24, 179, 122, .5); box-shadow: 0 0 0 1px rgba(24, 179, 122, .25), var(--shadow-lg); }
.plan__badge { position: absolute; top: -13px; right: 24px; padding: 5px 12px; border-radius: 999px; background: var(--green-dark); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.plan__name { color: var(--green-ink); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.plan h3 { margin-top: 10px; font-size: 24px; letter-spacing: -.02em; }
.plan__desc { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
@media (min-width: 761px) { .plan__desc { min-height: 4.8em; } }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; color: var(--ink); }
.plan__price small { color: var(--muted); font-size: 14px; }
.plan__price strong { font-size: 52px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.plan__note { margin-top: 6px; color: var(--soft); font-size: 13px; }
.plan__list { flex: 1; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan__list-title { margin-bottom: 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plan__list li { display: flex; gap: 10px; padding: 6px 0; font-size: 15.5px; }
.plan__list li svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--green); }
.plan .btn { align-self: center; margin-top: 28px; }
.plans-foot { max-width: 920px; margin: 22px auto 0; color: var(--soft); font-size: 13.5px; text-align: center; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 52px); }
.card { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card .icon-badge { width: 46px; height: 46px; border-radius: 12px; }
.card h3 { margin-top: 18px; font-size: 19px; letter-spacing: -.015em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards--4 { grid-template-columns: minmax(0, 1fr); } }

.highlight { margin-top: 18px; color: var(--green-ink); font-weight: 700; }

/* ---------- Textos legales ---------- */
.legal-hero { padding-block: clamp(48px, 7vw, 80px) clamp(32px, 4vw, 48px); background: linear-gradient(180deg, #fff, var(--bg)); }
.legal-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 850; letter-spacing: -.04em; }
.legal-hero h1 .accent { display: block; color: var(--green); }
.legal-hero p { margin-top: 16px; color: var(--muted); }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 9vw, 112px); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.legal-toc strong { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.legal-toc a:hover { color: var(--navy); border-left-color: var(--green); }
.legal-body { max-width: 760px; color: #2f475c; }
.legal-body section + section { margin-top: 44px; }
.legal-body h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 14px; }
.legal-body h3 { margin: 22px 0 8px; font-size: 18px; letter-spacing: -.01em; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--navy); text-underline-offset: 3px; }
.legal-body .data { padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.legal-body .data p { margin-bottom: 4px; }
.pending { background: #fff4d6; border-radius: 4px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal-toc { position: static; } }

/* ---------- Formulario de contacto (diálogo) ---------- */
dialog.contact { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(8, 47, 86, .35); }
dialog.contact::backdrop { background: rgba(8, 35, 60, .52); backdrop-filter: blur(4px); }
.contact__inner { position: relative; padding: clamp(28px, 5vw, 42px); }
.contact__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f1f5f8; color: var(--navy); cursor: pointer; }
.contact__close svg { width: 20px; height: 20px; }
.contact h2 { font-size: 28px; letter-spacing: -.03em; padding-right: 40px; }
.contact__lead { margin: 8px 0 24px; color: var(--muted); font-size: 15.5px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; color: #173d56; font-size: 13.5px; font-weight: 650; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid #d5e1e7; border-radius: 10px; background: #fff; color: #163b54; font: 400 16px/1.4 Inter, system-ui, sans-serif; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 110px; resize: vertical; }
.field select { min-height: 47px; appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23163b54' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center; cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 179, 122, .14); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 22px; color: #4e6575; font-size: 13.5px; line-height: 1.5; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.consent a { color: var(--navy); }
.contact .btn { width: 100%; }
.contact__status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg-tint); color: var(--navy); font-size: 14.5px; }
.contact__status[data-tone="error"] { background: #fdecec; color: #8a1f1f; }
.contact__note { margin-top: 14px; color: var(--soft); font-size: 12.5px; text-align: center; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .big { font-size: clamp(80px, 14vw, 160px); font-weight: 850; letter-spacing: -.06em; color: var(--green); line-height: 1; }

/* ---------- Movimiento continuo ----------
   Solo corre mientras la sección está en pantalla (.is-playing, lo pone site.js)
   y nunca con «reducir movimiento». */
.eco-core { animation: breathe 6.4s cubic-bezier(.42, 0, .3, 1) infinite paused; }
.eco-core::after { animation: breathe-halo 6.4s cubic-bezier(.42, 0, .3, 1) infinite paused; }
.flow__steps .ring-arc { animation: spin 16s linear infinite paused; }
.flow__steps .core { animation: core-breathe 4.8s ease-in-out infinite paused; }
.is-playing .eco-core, .is-playing .eco-core::after, .is-playing .flow__steps .ring-arc, .is-playing .flow__steps .core { animation-play-state: running; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 42%, 50% { transform: scale(1.05); } }
@keyframes breathe-halo { 0%, 100% { transform: scale(1); opacity: .76; } 42%, 50% { transform: scale(1.08); opacity: .43; } }
@keyframes core-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Entrada escalonada: cada hijo de .stagger llega con su retraso. */
.js .stagger > * { opacity: 0; transform: translateY(15px); transition: opacity .7s ease, transform .7s ease; }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.js .stagger.is-in > :nth-child(2) { transition-delay: .15s; }
.js .stagger.is-in > :nth-child(3) { transition-delay: .3s; }
.js .stagger.is-in > :nth-child(4) { transition-delay: .5s; }
.js .stagger.is-in > :nth-child(5) { transition-delay: .65s; }
.js .stagger.is-in > :nth-child(6) { transition-delay: .8s; }

@media (prefers-reduced-motion: reduce) {
  .eco-core, .eco-core::after, .flow__steps .ring-arc, .flow__steps .core, .trust-rail i.is-reached, .journey__node.is-hit::after { animation: none !important; }
  .js .stagger > * { opacity: 1; transform: none; transition: none; }
}
