/* =========================================================
   Crota Systems · Tecnología & Logística — estilos compartidos
   ========================================================= */

@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Plus Jakarta Sans: tipografía de la marca Crota Systems (Poppins solo se usa en la página Bleecker) */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/plus-jakarta-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/plus-jakarta-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/plus-jakarta-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/plus-jakarta-sans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* marca Crota Systems: marino, azul Lorca y oro sol */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --blue: #1F3A93;
  --blue-dark: #172C73;
  --blue-soft: rgba(31, 58, 147, .10);
  --blue-glow: rgba(31, 58, 147, .35);
  --gold: #E2AC16;
  --gold-light: #F2C24B;
  --gold-dark: #C9960F;
  --on-dark-accent: #F2C24B;   /* kickers, acentos e iconos sobre fondo oscuro */
  /* claro (sin blanco puro, para no deslumbrar) */
  --bg: #E9EDF5;
  --bg-soft: #DFE5F0;
  --surface: #F2F5FB;
  --ink: #0F1A3D;
  --text: #22304A;
  --muted: #5B6B82;
  --line: #D3DAE8;
  /* oscuro */
  --navy: #0F1A3D;
  --navy-2: #16234D;
  --navy-line: #27346A;
  --header-scrolled: rgba(15, 26, 61, .92);
  --on-dark: #F2F5FB;
  --on-dark-muted: #AEB9D6;
  /* Bleecker */
  --mint: #3DDC97;
  --mint-soft: rgba(61, 220, 151, .12);
  --red: #FF5A5F;
  --signal-blue: #4C9AFF;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 92px;
  --shadow: 0 18px 50px rgba(15, 26, 61, .10);
  --shadow-dark: 0 24px 60px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.65rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; color: var(--ink); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.accent { color: var(--blue); }

.kicker { margin: 0 0 18px; font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.kicker--bad { color: #E0454A; }
.kicker--mint { color: var(--mint); }

/* ---------- zonas oscuras ---------- */
.dark { background: var(--navy); color: var(--on-dark-muted); }
.dark h1, .dark h2, .dark h3, .dark strong { color: #fff; }
.dark .kicker { color: var(--on-dark-accent); }
.dark .kicker--mint { color: var(--mint); }
.dark .kicker--bad { color: var(--red); }
.dark h2 + p { margin-top: 20px; }
.dark p { color: var(--on-dark-muted); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid var(--blue); background: var(--blue); color: #fff;
  font-weight: 700; font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 30px var(--blue-glow); background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-soft); color: var(--blue); }
.dark .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.dark .btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.btn--mint { background: var(--mint); border-color: var(--mint); color: #06231A; }
.btn--mint:hover { background: #2FC985; border-color: #2FC985; box-shadow: 0 12px 30px rgba(61, 220, 151, .3); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); box-shadow: 0 12px 30px rgba(226, 172, 22, .3); }
.btn--small { padding: 9px 20px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- cabecera ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background .3s, box-shadow .3s; }
.header.is-scrolled { background: var(--header-scrolled); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--navy-line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: #fff; font-size: .95rem; font-weight: 500; opacity: .82; }
.nav a:not(.btn):hover, .nav a.is-current { opacity: 1; color: #fff; text-decoration: none; }
.nav a.is-current { box-shadow: inset 0 -2px 0 var(--blue); }
.nav .nav__bleecker { display: inline-flex; align-items: center; gap: 8px; }
.nav .nav__bleecker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 70px) 0 110px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 74% 45%, rgba(46, 84, 200, .38), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(226, 172, 22, .10), transparent 70%);
}
/* fondo tecnológico: circuitos, códigos detectados y suelo en perspectiva */
.hero__bg { position: absolute; inset: 0; background: url("../assets/img/fondo-hero.svg") center / cover no-repeat; opacity: .8; }
/* línea de escaneo */
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(242, 194, 75, .04) 85%, rgba(242, 194, 75, .18) 99%, transparent);
  animation: scan 7s linear infinite; will-change: transform;
}
@keyframes scan { from { transform: translateY(-120px); } to { transform: translateY(1100px); } }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
/* símbolo de la marca en grande, al lado del texto */
.hero__mark { position: relative; display: grid; place-items: center; width: clamp(170px, 18vw, 250px); aspect-ratio: 1; }
.hero__mark::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgba(46, 84, 200, .45), rgba(226, 172, 22, .10) 45%, transparent 70%); }
.hero__mark img { position: relative; width: 82%; height: auto; filter: drop-shadow(0 0 30px rgba(46, 84, 200, .6)); }
.hero h1 { margin-bottom: 22px; }
.hero .accent { color: var(--gold-light); }
.lead { font-size: 1.2rem; max-width: 42ch; }
.lead strong { font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- secciones ---------- */
.section { padding: 100px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 52px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p:not(.kicker) { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.dark .section__head p:not(.kicker) { color: var(--on-dark-muted); }

/* ---------- banda integrador ---------- */
.partner { padding: 0; margin-top: -48px; position: relative; z-index: 2; }
.partner__card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center;
  padding: 30px 36px; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid var(--navy-line); box-shadow: var(--shadow-dark);
}
.partner__logo { padding-right: 34px; border-right: 1px solid var(--navy-line); }
.partner__logo img { height: 40px; width: auto; }
.partner__card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.partner__card p { margin: 0; color: var(--on-dark-muted); font-size: .98rem; }

/* ---------- tarjetas / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
/* 3 por fila con la última fila centrada (p. ej. 5 tarjetas: 3 + 2) */
.grid--center { display: flex; flex-wrap: wrap; justify-content: center; }
.grid--center > * { flex: 0 1 calc((100% - 48px) / 3); }
.card { position: relative; padding: 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15, 26, 61, .04); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9D2E4; }
.card h3 { margin: 18px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card--featured { border-color: rgba(61, 220, 151, .7); box-shadow: 0 0 0 3px rgba(61, 220, 151, .12); }
.card__tag { position: absolute; top: 20px; right: 20px; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: #149A63; font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.card__link { display: inline-flex; margin-top: 16px; font-weight: 700; font-size: .95rem; color: #149A63; }

.ico { flex: none; width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--mint { background: var(--mint-soft); }
.ico--mint svg { stroke: #18B377; }
.dark .ico { background: rgba(242, 194, 75, .12); }
.dark .ico svg { stroke: var(--on-dark-accent); }
.dark .ico--mint { background: var(--mint-soft); }
.dark .ico--mint svg { stroke: var(--mint); }

/* ---------- proceso ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: p; position: relative; }
.process::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--gold)); opacity: .45; }
.process li { position: relative; text-align: center; padding: 0 8px; }
.process__num { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 1.2rem; box-shadow: 0 0 0 8px var(--bg); }
.section--soft .process__num { box-shadow: 0 0 0 8px var(--bg-soft); }
.process h3 { margin-bottom: 8px; }
.process p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- por qué ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why li { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.why p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- bloque Bleecker (teaser) ---------- */
.teaser { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.framed { position: relative; }
.framed video, .framed img { width: 100%; height: auto; border-radius: 14px; }
.br { position: absolute; width: 46px; aspect-ratio: 1; border: 4px solid var(--mint); filter: drop-shadow(0 0 8px rgba(61, 220, 151, .55)); pointer-events: none; }
.br--tl { left: -14px; top: -14px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.br--tr { right: -14px; top: -14px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.br--bl { left: -14px; bottom: -14px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.br--br { right: -14px; bottom: -14px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DDC97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dark .checks li { color: var(--on-dark); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: 90px 0; text-align: center; background: radial-gradient(ellipse at center, rgba(46, 84, 200, .4), transparent 70%), var(--navy); }
/* símbolo de la marca de fondo, en transparencia (solo en la portada) */
.cta--marca::before { content: ""; position: absolute; right: -60px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); background: url("../assets/img/simbolo-crota.svg") center / contain no-repeat; opacity: .06; pointer-events: none; }
.cta .container { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 640px; margin: 18px auto 30px; }


/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }
.contact__text p:not(.kicker) { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }
.contact__card { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact__row { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.contact__label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact__row strong, .contact__row a { font-size: 1.06rem; word-break: break-word; }

/* ---------- pie ---------- */
.footer { padding: 48px 0 40px; background: var(--navy); color: var(--on-dark-muted); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 38px; width: auto; }
.footer p { margin: 0; font-size: .9rem; }

/* =========================================================
   Página Bleecker (oscura)
   Va aparte de la marca: conserva su tipografía (Poppins) y sus
   colores originales; solo el logo de cabecera y pie es de Crota Systems.
   ========================================================= */
.page-bleecker {
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --blue: #2F6BFF; --blue-dark: #1E4FD6; --blue-soft: rgba(47, 107, 255, .10); --blue-glow: rgba(47, 107, 255, .35);
  --navy: #0E1726; --navy-2: #13203A; --navy-line: #24324D;
  --header-scrolled: rgba(14, 23, 38, .92);
  --on-dark: #F2F5FA; --on-dark-muted: #A9B6C8; --on-dark-accent: #7FA4FF;
  background: #0B0F14; color: #A7B1BC;
}
.page-bleecker h1, .page-bleecker h2 { font-weight: 700; letter-spacing: -.01em; }
.page-bleecker .dark .ico { background: rgba(127, 164, 255, .12); }
.page-bleecker .section--dark2 { background: #0F151C; border-block: 1px solid #151D27; }
.bk-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 70px) 0 90px; }
.bk-hero__bg { position: absolute; inset: 0; background: linear-gradient(90deg, #0B0F14 30%, rgba(11,15,20,.6) 65%, rgba(11,15,20,.85)), linear-gradient(0deg, #0B0F14, rgba(11,15,20,0) 40%), url("../assets/img/fondo-codigos.jpg") right top / 70% auto no-repeat; }
.bk-hero .container { position: relative; }
.bk-hero__inner { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: center; }
.bk-hero .accent { color: var(--mint); }
.breadcrumb { font-size: .9rem; margin-bottom: 26px; color: #8A96A3; }
.breadcrumb a { color: #8A96A3; }
.breadcrumb a:hover { color: #fff; }
.code-card { position: relative; width: min(100%, 300px); margin: 0 auto; padding: 20px; background: #fff; border-radius: 24px; box-shadow: 0 30px 70px rgba(61, 220, 151, .18); }
.code-card img { width: 100%; height: auto; }
.code-card .br { width: 22%; }
.code-caption { margin-top: 30px; text-align: center; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); font-size: .9rem; }

.bk-card { background: #121A23; border: 1px solid #243041; border-radius: var(--radius); overflow: hidden; }
.bk-card video { width: 100%; height: auto; background: #0B0F14; border-bottom: 1px solid #243041; }
.bk-card__body { padding: 26px 28px 30px; }
.bk-card__body h3 { margin-bottom: 12px; color: #fff; }
.bk-card__body p { margin: 0; }
.xlist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.xlist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 90, 95, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23FF5A5F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.consequence { margin: 32px 0 0; padding: 18px 24px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 90, 95, .4); background: rgba(255, 90, 95, .08); }
.consequence strong { color: #FF8A8E; }

.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.features li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid #243041; }
.features li:last-child { border-bottom: 0; }
.features strong { display: block; font-size: 1.05rem; color: #fff; }
.features .ico { border-radius: 50%; width: 48px; height: 48px; }
.outcomes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.outcomes li { flex: 1 1 200px; text-align: center; padding: 14px 20px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font-weight: 700; }

.flow-video { margin: 0 auto 40px; max-width: 1100px; background: #0B0F14; border: 1px solid #243041; border-radius: var(--radius); overflow: hidden; padding: 10px 0; }
.flow-video video { width: 100%; height: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; padding: 32px 28px; background: #121A23; border: 1px solid #243041; border-radius: var(--radius); }
.step__num { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: #06231A; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 20px 0 10px; color: #fff; font-size: 1.3rem; }
.step p { margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -22px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DDC97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; }


.benefits__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 28px; border-radius: var(--radius); background: #121A23; border: 1px solid #243041; display: flex; flex-direction: column; gap: 10px; }
.stat__value { --big: clamp(2.8rem, 5vw, 4rem); min-height: var(--big); display: flex; align-items: flex-end; font-size: var(--big); font-weight: 700; line-height: 1; color: var(--mint); }
.stat__value--sm { font-size: 1.5rem; line-height: 1.15; }
.note { margin: 34px 0 0; text-align: center; color: var(--mint); font-weight: 700; }

.page-bleecker .cta { background: radial-gradient(ellipse at center, rgba(61, 220, 151, .16), transparent 70%), #0B0F14; }

/* ---------- aparición ---------- */
/* solo se ocultan si hay JavaScript (clase .js puesta en el <head>) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero__bg::after { display: none; } html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }
.no-io.js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Página legal (aviso legal, privacidad, cookies)
   ========================================================= */
.legal-hero { padding: calc(var(--header-h) + 56px) 0 56px; background: radial-gradient(ellipse 60% 120% at 80% 0%, rgba(46, 84, 200, .35), transparent 70%), var(--navy); }
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.legal-toc a { padding: 8px 16px; border: 1px solid var(--navy-line); border-radius: 999px; color: #fff; font-size: .92rem; }
.legal-toc a:hover { border-color: var(--blue); text-decoration: none; }
.legal { max-width: 820px; }
.legal article { padding: 40px; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.legal h3 { font-size: 1.08rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal__updated { font-size: .9rem; color: var(--muted); }
/* datos pendientes de rellenar: se ven resaltados hasta quitar el <span class="ph"> */
.ph { padding: 0 .3em; border-radius: 4px; background: #FBE7A1; color: #5A4300; font-weight: 500; }

/* enlaces legales del pie (las tres páginas) */
.footer__legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 20px; border-top: 1px solid var(--navy-line); font-size: .85rem; }
.footer__legal a { color: var(--on-dark-muted); }
.footer__legal a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .benefits__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 78px; }
  .header, .header.is-scrolled { background: var(--header-scrolled); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header__logo img { height: 38px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 24px; background: var(--navy); border-bottom: 1px solid var(--navy-line); box-shadow: 0 20px 40px rgba(0,0,0,.4); transform: translateY(-130%); transition: transform .3s ease; }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--navy-line); }
  .nav a.is-current { box-shadow: none; color: var(--on-dark-accent); }
  .nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero, .bk-hero { padding: calc(var(--header-h) + 40px) 0 80px; }
  .hero__inner, .teaser, .contact, .bk-hero__inner, .split { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
  .partner__card { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .partner__logo { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--navy-line); }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .grid--center > * { flex-basis: 100%; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .why { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { right: 50%; top: auto; bottom: -24px; transform: translateX(50%) rotate(90deg); }
  .bk-hero__bg { background-size: 140% auto; opacity: .5; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .benefits__stats { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .contact__card { padding: 24px; }
  .contact__row strong, .contact__row a { font-size: .98rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }
  .legal article { padding: 26px 22px; }
}
