/* MYGESAPP · hoja de estilos
   Concepto: herramienta seria y moderna. Mucho blanco, azul oscuro de confianza,
   un único naranja vivo reservado a las acciones (botones «Pide una demo»). */

:root {
  /* Color */
  --navy: #0b2545;        /* principal: confianza */
  --navy-2: #13365f;      /* variaciones de la banda oscura */
  --accent: #d9530a;      /* acento: solo botones y llamadas a la acción */
  --accent-hover: #b8450a;
  --accent-soft: #fdeee4;
  --ink: #0f1c2e;         /* texto principal */
  --muted: #52617a;       /* texto secundario */
  --line: #dde4ee;        /* bordes */
  --bg: #ffffff;
  --bg-soft: #f4f7fb;     /* gris muy claro con matiz azul */
  --tint: #e7eef8;        /* fondo de iconos */
  --ok: #1f7a4d;
  --ph-bg: #fff4c2;       /* marcador de huecos [ ] por rellenar */
  --ph-ink: #6b4e00;

  /* Tipo */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: clamp(1.875rem, 1.3rem + 2vw, 2.625rem);
  --fs-hero: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);

  /* Espacio y forma */
  --wrap: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .07);
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Huecos por rellenar: [PRECIO], [EMAIL]… */
.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 8px;
  font: 600 var(--fs-sm)/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--tint); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { min-height: 56px; padding: 1rem 1.75rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }

/* ---------- Cabecera fija ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255,255,255,.96); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; flex: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.logo b { color: var(--accent); font-weight: 800; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; padding: .5rem .6rem; border-radius: 6px; }
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--navy); }
.nav .btn { margin-left: .5rem; min-height: 42px; padding: .55rem 1rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; color: var(--navy); cursor: pointer; place-items: center; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .75rem var(--gutter-r) 1.25rem var(--gutter);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: .85rem .5rem; font-size: var(--fs-base); border-bottom: 1px solid var(--bg-soft); border-radius: 0; }
  .nav .btn { margin: 1rem 0 0; min-height: 52px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 46rem; display: grid; gap: .9rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: var(--fs-2xl); }
.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.55; }

/* ---------- Portada ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem); background:
  radial-gradient(60rem 30rem at 100% 0%, var(--tint), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .25rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding-top: .75rem; border-top: 1px solid var(--line); margin-top: .5rem; }
.hero-points li { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.hero-points .ico { width: 20px; height: 20px; color: var(--ok); stroke-width: 2.2; }

/* Marcos de dispositivo con hueco de captura */
.devices { position: relative; padding: 0 clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem) 0; min-width: 0; }
.laptop { position: relative; }
.laptop-screen { background: #1b2433; border-radius: 14px 14px 0 0; padding: 10px 10px 12px; box-shadow: 0 30px 60px -20px rgba(11,37,69,.35); }
.laptop-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 8px; }
.laptop-bar span { width: 8px; height: 8px; border-radius: 50%; background: #3a4559; }
.laptop-bar code { margin-left: 10px; font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #9fb0c8; background: #263247; padding: 4px 10px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.laptop-base { height: 14px; background: linear-gradient(#cfd8e4, #b4c0d0); border-radius: 0 0 14px 14px; margin: 0 -4%; position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 18%; height: 5px; background: #a3afc0; border-radius: 0 0 6px 6px; }
.phone { position: absolute; right: 0; bottom: 0; width: clamp(96px, 26%, 170px); background: #1b2433; border-radius: 22px; padding: 8px; box-shadow: 0 24px 48px -16px rgba(11,37,69,.45); }
.phone::before { content: ""; display: block; width: 34%; height: 5px; border-radius: 4px; background: #3a4559; margin: 2px auto 7px; }

.shot {
  display: grid; place-items: center; align-content: center; gap: .35rem; text-align: center;
  background: repeating-linear-gradient(135deg, #f3f6fb 0 12px, #eaf0f8 12px 24px);
  border: 2px dashed #9fb2cc; border-radius: 6px; color: var(--muted);
  padding: 1rem; aspect-ratio: 16 / 10; width: 100%;
}
.phone .shot { aspect-ratio: 9 / 18; border-radius: 14px; padding: .5rem; }
.shot .ico { width: 28px; height: 28px; color: #7d93b2; }
.shot strong { font-size: var(--fs-sm); color: var(--navy); }
.shot small { font-size: var(--fs-xs); }
.phone .shot strong { font-size: .7rem; line-height: 1.25; }
.phone .shot small { font-size: .65rem; line-height: 1.25; }
.phone .shot .ico { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .devices { max-width: 620px; }
}

/* ---------- Problema ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: grid; gap: .9rem; align-content: start; }
.pain .ico-box { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pain blockquote { margin: 0; font-size: var(--fs-lg); line-height: 1.4; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.pain-close { background: var(--navy); border-color: var(--navy); color: #fff; align-content: center; }
.pain-close p { font-size: var(--fs-lg); line-height: 1.45; font-weight: 600; color: #fff; }
.pain-close a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); }
.pain-close a .ico { width: 18px; height: 18px; }
@media (max-width: 900px) { .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pain-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Qué es (tres ideas) ---------- */
.what-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.what-intro { display: grid; gap: 1.1rem; }
.what-intro h2 { font-size: var(--fs-2xl); }
.what-intro p { color: var(--muted); }
.address { display: flex; align-items: center; gap: .6rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; width: fit-content; max-width: 100%; font-size: var(--fs-sm); }
.address .ico { width: 18px; height: 18px; color: var(--ok); }
.address code { font: 600 .95rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); overflow-wrap: anywhere; }
.ideas { list-style: none; display: grid; gap: 1rem; counter-reset: idea; }
.idea { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1.1rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.idea .ico-box { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--navy); }
.idea h3 { font-size: var(--fs-lg); margin-bottom: .35rem; }
.idea p { color: var(--muted); }
@media (max-width: 900px) { .what-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .idea { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Funcionalidades ---------- */
.feat-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.feat-rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: grid; gap: .65rem; align-content: start; }
.feat .ico-box { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--navy); margin-bottom: .25rem; }
.feat h3 { font-size: 1.125rem; }
.feat p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.feat-lg { padding: 1.9rem; gap: .8rem; box-shadow: var(--shadow); border-color: transparent; }
.feat-lg .ico-box { width: 52px; height: 52px; background: var(--navy); color: #fff; }
.feat-lg h3 { font-size: var(--fs-xl); }
.feat-lg p { font-size: var(--fs-base); }
.feat .tag { justify-self: start; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); padding: .2rem .55rem; border-radius: 999px; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 600; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem; margin-top: .25rem; }
.formula span { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .15rem .45rem; }
.formula span.res { background: var(--navy); color: #fff; border-color: var(--navy); }
.formula i { font-style: normal; color: var(--muted); font-weight: 700; }
@media (max-width: 900px) { .feat-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .feat-main, .feat-rest { grid-template-columns: minmax(0, 1fr); } }

.cta-strip { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 1.75rem; border-radius: var(--r-lg); background: var(--navy); color: #fff; }
.cta-strip p { font-size: var(--fs-lg); font-weight: 600; max-width: 38rem; }

/* ---------- Para quién ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sector { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.sector .photo { aspect-ratio: 16 / 7; display: grid; place-items: center; gap: .2rem; align-content: center; text-align: center; background: repeating-linear-gradient(135deg, #f3f6fb 0 12px, #eaf0f8 12px 24px); border-bottom: 2px dashed #b5c4d8; color: var(--muted); font-size: var(--fs-xs); padding: .5rem; }
.sector .photo .ico { width: 22px; height: 22px; color: #7d93b2; }
.sector-body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .55rem; align-content: start; }
.sector h3 { font-size: 1.125rem; display: flex; align-items: center; gap: .55rem; }
.sector h3 .ico { color: var(--accent); }
.sector p { color: var(--muted); font-size: var(--fs-sm); }
.sector-claim { background: var(--accent-soft); border-color: #f6cfb5; padding: 1.75rem; display: grid; align-content: center; gap: 1.1rem; grid-template-rows: none; }
.sector-claim p { font-size: var(--fs-xl); line-height: 1.3; font-weight: 700; color: var(--navy); letter-spacing: -0.015em; }
@media (max-width: 900px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sector-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cómo trabajamos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: step; position: relative; }
.step { position: relative; display: grid; gap: .6rem; align-content: start; padding-top: .25rem; }
.step-num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.1rem; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 56px; right: -8px; height: 2px; background: repeating-linear-gradient(90deg, #b5c4d8 0 6px, transparent 6px 12px); }
.step h3 { font-size: 1.125rem; margin-top: .4rem; }
.step p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 1.1rem; padding-bottom: 1.75rem; }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: .6rem; }
  .step:not(:last-child)::after { top: 52px; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #b5c4d8 0 6px, transparent 6px 12px); }
}

/* ---------- Seguridad ---------- */
.security { background: var(--navy); color: #fff; }
.security h2, .security h3 { color: #fff; }
.security .lead { color: #c3d0e3; }
.security .eyebrow { color: #ffb489; }
.sec-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.sec-list { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.sec-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(255,255,255,.14); align-items: start; }
.sec-list .ico-box { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-2); color: #fff; }
.sec-list strong { display: block; font-size: var(--fs-base); margin-bottom: .15rem; }
.sec-list span { color: #c3d0e3; font-size: var(--fs-sm); }
@media (max-width: 900px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Precios ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.plan h3 { font-size: var(--fs-xl); }
.plan .price { display: flex; align-items: baseline; gap: .35rem; font-size: var(--fs-2xl); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.plan .price .ph { font-size: 1.5rem; }
.plan .price small { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .plan-sub { color: var(--muted); font-size: var(--fs-sm); }
.plan ul { list-style: none; display: grid; gap: .6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .6rem; font-size: var(--fs-sm); }
.plan li .ico { width: 20px; height: 20px; color: var(--ok); stroke-width: 2.2; margin-top: 1px; }
.plan li.inherit { font-weight: 700; color: var(--navy); }
.plan-featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 1.6rem; background: var(--navy); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: .3rem .75rem; border-radius: 999px; letter-spacing: .02em; }
.price-note { margin-top: 1.5rem; padding: 1.1rem 1.35rem; border-radius: var(--r); background: #fff; border: 1px dashed #b5c4d8; color: var(--muted); font-size: var(--fs-sm); display: flex; gap: .75rem; align-items: flex-start; }
.price-note .ico { color: var(--navy); }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; gap: 1.75rem; } }

/* ---------- Preguntas ---------- */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.35rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; color: var(--navy); font-size: var(--fs-base); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--muted); width: 20px; height: 20px; }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 1.35rem 1.25rem; color: var(--muted); max-width: 44rem; }

/* ---------- Llamada final ---------- */
.final { background: var(--navy); color: #fff; text-align: center; padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40rem 20rem at 50% 120%, rgba(217,83,10,.28), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; display: grid; justify-items: center; gap: 1.25rem; }
.final h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }
.final p { color: #c3d0e3; font-size: var(--fs-lg); max-width: 34rem; }
.final .btn { margin-top: .5rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; box-shadow: var(--shadow); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-base); color: var(--ink);
  padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint); }
.field .err { color: #b42318; font-size: var(--fs-xs); display: none; }
.field.invalid input, .field.invalid select { border-color: #b42318; }
.field.invalid .err { display: block; }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .65rem; align-items: start; font-size: var(--fs-sm); color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.check.invalid { color: #b42318; }
.form .btn { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; font-size: var(--fs-sm); padding: .85rem 1rem; border-radius: 8px; background: var(--bg-soft); color: var(--navy); }
.form-status.ok { background: #e6f4ec; color: var(--ok); }
.rgpd-box { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; line-height: 1.55; }
.rgpd-box dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem .75rem; margin: .4rem 0 0; }
.rgpd-box dt { font-weight: 700; color: var(--ink); }
.rgpd-box dd { margin: 0; }
.contact-side { display: grid; gap: 1rem; }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: grid; gap: 1.1rem; background: var(--bg-soft); }
.contact-card h3 { font-size: var(--fs-lg); }
.contact-line { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .8rem; align-items: center; }
.contact-line .ico-box { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.contact-line small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.contact-line span, .contact-line a { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; text-decoration: none; }
.btn-wa { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-wa:hover { border-color: var(--navy); }
.btn-wa .ico { color: var(--ok); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } .rgpd-box dl { grid-template-columns: minmax(0, 1fr); } .rgpd-box dd { margin-bottom: .35rem; } }

/* ---------- Pie ---------- */
.site-footer { background: #081b33; color: #aebbd0; padding-block: 3.5rem 2rem; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { background: #fff; }
.site-footer .logo-mark svg { color: var(--navy); }
.footer-brand { display: grid; gap: .8rem; align-content: start; }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: .8rem; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a { color: #aebbd0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; font-size: var(--fs-xs); }
.site-footer .linklike { background: none; border: 0; padding: 0; font: inherit; color: #aebbd0; cursor: pointer; text-align: left; }
.site-footer .linklike:hover { color: #fff; text-decoration: underline; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 100; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; justify-content: center; pointer-events: none;
}
.cookie-card { pointer-events: auto; width: 100%; max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 50px -12px rgba(11,37,69,.35); padding: 1.35rem 1.5rem; display: grid; gap: 1rem; }
.cookie-card h2 { font-size: var(--fs-lg); }
.cookie-card p { font-size: var(--fs-sm); color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { min-height: 44px; padding: .6rem 1.1rem; flex: 1 1 auto; }
.cookie-prefs { display: grid; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cookie-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; font-size: var(--fs-sm); }
.cookie-row small { display: block; color: var(--muted); }
.cookie-row input { width: 20px; height: 20px; accent-color: var(--navy); }

/* ---------- Páginas legales ---------- */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section); }
.legal .wrap { max-width: calc(48rem + 32px); }
.legal h1 { font-size: var(--fs-2xl); margin-bottom: .75rem; }
.legal .updated { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 2rem; }
.legal h2 { font-size: var(--fs-lg); margin: 2.25rem 0 .75rem; }
.legal h3 { font-size: var(--fs-base); margin: 1.5rem 0 .5rem; }
.legal p, .legal li { color: #2b3a52; margin-bottom: .85rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal .note { background: var(--ph-bg); color: var(--ph-ink); border-radius: var(--r); padding: 1rem 1.2rem; font-size: var(--fs-sm); margin-bottom: 2rem; }
.legal .data-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; margin-bottom: 1.25rem; }
.legal .data-card p { margin-bottom: .35rem; }
.table-scroll { overflow-x: auto; margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: var(--r); }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.legal th, .legal td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--navy); }
.legal tr:last-child td { border-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; }
.back-link .ico { width: 18px; height: 18px; transform: rotate(180deg); }
