/* =========================================================
   Overall Technologies S.A.S. — Hoja de estilos principal
   Paleta tomada del logo: azul marino, azul eléctrico y cian
   ========================================================= */

:root {
  --navy: #0a1838;
  --navy-2: #06102a;
  --blue: #0a6cff;
  --blue-2: #1f7bff;
  --cyan: #00c2ff;
  --white: #ffffff;
  --soft: #f5f8fd;
  --line: #e6ecf5;
  --text: #0a1838;
  --muted: #5b6680;

  --grad: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-dark: linear-gradient(135deg, var(--navy-2) 0%, #0b2a6b 55%, var(--blue) 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(10, 24, 56, 0.06);
  --shadow: 0 10px 30px rgba(10, 24, 56, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 70, 200, 0.16);

  --font-brand: "MBF Carbon", "Space Grotesk", system-ui, sans-serif;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Fuente de marca: MBF Carbon Regular (carpeta /fuentes) ---------- */
@font-face {
  font-family: "MBF Carbon";
  src: url("../fuentes/MBF%20Carbon.otf") format("opentype"),
       url("../fuentes/MBF%20Carbon.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
svg .fill { fill: currentColor; stroke: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 200;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.95rem 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; cursor: pointer; position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  overflow: hidden; isolation: isolate;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --pad: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(10, 108, 255, 0.3); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 108, 255, 0.42); }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25); }

.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}
.header.is-scrolled {
  --header-h: 66px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__icon { width: 40px; height: 40px; transition: transform 0.6s var(--ease); }
.brand:hover .brand__icon { transform: rotate(-20deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--font-brand); font-size: 1.25rem; font-weight: 400; letter-spacing: 0.02em; color: var(--navy); }
.brand__text small { font-size: 0.58rem; letter-spacing: 0.42em; color: var(--muted); margin-top: 4px; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 0.3rem; }
.nav__link {
  position: relative; padding: 0.5rem 0.85rem; font-size: 0.94rem; font-weight: 500; color: var(--muted);
  border-radius: 999px; transition: color 0.25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: translateX(-50%) scaleX(0); transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link.is-active::after, .nav__link:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 5rem;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 108, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 108, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; z-index: 0; pointer-events: none; }
.blob--1 { width: 520px; height: 520px; background: #bfe9ff; top: -140px; right: -120px; animation: blob 18s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: #cfe0ff; bottom: -160px; left: -140px; animation: blob 22s ease-in-out infinite reverse; }
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.08); }
  66% { transform: translate(30px, -20px) scale(0.95); }
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem; border-radius: 999px;
  background: rgba(10, 108, 255, 0.07); border: 1px solid rgba(10, 108, 255, 0.15);
  color: var(--blue); font-size: 0.85rem; font-weight: 600;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; color: var(--navy);
  margin: 1.4rem 0 1.2rem;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34rem; }
.typed { color: var(--navy); font-weight: 600; }
.caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -0.15em;
  background: var(--blue); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2.2rem 0 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; color: var(--muted); font-size: 0.9rem; }
.hero__badges li { display: flex; align-items: center; gap: 0.45rem; }
.hero__badges svg { color: var(--blue); width: 1.05em; height: 1.05em; stroke-width: 2.6; }

/* Visual del hero */
.hero__visual { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.hero__logo {
  position: absolute; inset: 22%; width: 56%; height: 56%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(10, 108, 255, 0.28));
  z-index: 2;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
.hero__glow {
  position: absolute; inset: 25%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.35), transparent 70%);
  filter: blur(30px); animation: glow 5s ease-in-out infinite;
}
@keyframes glow { 50% { transform: scale(1.2); opacity: 0.7; } }

.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(10, 108, 255, 0.25); }
.orbit--1 { inset: 12%; animation: spin 26s linear infinite; }
.orbit--2 { inset: 4%; border-style: solid; border-color: rgba(10, 108, 255, 0.1); animation: spin 38s linear infinite reverse; }
.orbit--3 { inset: -4%; border-color: rgba(0, 194, 255, 0.18); animation: spin 50s linear infinite; }
.orbit__dot {
  position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 5px rgba(10, 108, 255, 0.12), 0 0 18px var(--cyan);
}
.orbit--2 .orbit__dot { top: auto; bottom: -5px; width: 9px; height: 9px; background: var(--navy); box-shadow: 0 0 0 4px rgba(10, 24, 56, 0.08); }
.orbit--3 .orbit__dot { top: 50%; left: -5px; margin: -5px 0 0; width: 10px; height: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 0.95rem; color: var(--navy); line-height: 1.2; }
.float-card small { color: var(--muted); font-size: 0.75rem; }
.float-card__icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad); color: #fff;
}
.float-card--1 { top: 8%; left: -4%; animation-delay: -1s; }
.float-card--2 { top: 44%; right: -8%; animation-delay: -3s; }
.float-card--3 { bottom: 6%; left: 6%; animation-delay: -5s; }

.scroll-hint { position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); z-index: 2; }
.scroll-hint__mouse {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(10, 24, 56, 0.25); border-radius: 14px; position: relative;
}
.scroll-hint__mouse span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--blue); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); padding: 1.3rem 0; overflow: hidden; background: #fff;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 3rem; padding-right: 3rem; }
.marquee__list li {
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #a3adc2; white-space: nowrap;
  transition: color 0.3s;
}
.marquee__list li::before { content: "◆"; font-size: 0.6rem; color: var(--cyan); margin-right: 3rem; vertical-align: middle; }
.marquee__list li:hover { color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.section--soft { background: var(--soft); }
.section__head { text-align: center; max-width: 820px; margin: 0 auto 3.5rem; }
.section__title, .hero__title, .cta h2 { text-wrap: balance; }
.section__tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--blue); margin-bottom: 0.9rem; position: relative; padding-left: 1.6rem;
}
.section__tag::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1.1rem; height: 2px; background: var(--grad); border-radius: 2px;
}
.section__title { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); margin-bottom: 1rem; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards / Services ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.service {
  --mx: 50%; --my: 50%;
  position: relative; padding: 2.2rem 2rem; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
  transform-style: preserve-3d;
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(0, 194, 255, 0.12), transparent 45%);
}
.service::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.service:hover { box-shadow: var(--shadow-lg); border-color: rgba(10, 108, 255, 0.25); }
.service:hover::before { opacity: 1; }
.service:hover::after { transform: scaleX(1); }

.service__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; margin-bottom: 1.4rem;
  background: rgba(10, 108, 255, 0.08); color: var(--blue); font-size: 1.5rem;
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.service:hover .service__icon { background: var(--grad); color: #fff; transform: rotate(-8deg) scale(1.05); }
.service h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.7rem; }
.service p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.2rem; }
.service__list li {
  position: relative; padding-left: 1.4rem; font-size: 0.9rem; color: var(--navy); font-weight: 500; margin-top: 0.4rem;
}
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 2px;
  background: var(--grad); transform: rotate(45deg);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.timeline__progress {
  position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: var(--line); border-radius: 2px;
}
.timeline__progress span {
  display: block; height: 100%; width: 100%; background: var(--grad); border-radius: 2px;
  transform-origin: left; transform: scaleX(0); transition: transform 0.2s linear;
}
.step { position: relative; text-align: center; padding: 0 0.5rem; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.4rem; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); font-family: var(--font-head); font-weight: 700; color: var(--blue);
  position: relative; z-index: 1; transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
.step.is-visible .step__num { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 0 0 8px rgba(10, 108, 255, 0.1); }
.step:hover .step__num { transform: scale(1.1); }
.step h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4.5rem; align-items: center; }
.about__content > p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.03rem; }
.about__content strong { color: var(--navy); }

.about__visual { position: relative; display: flex; justify-content: center; padding: 2rem 0; }
.overol-card {
  position: relative; width: min(100%, 400px); aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: var(--grad-dark); color: #fff; padding: 2.4rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 40px 80px rgba(10, 40, 120, 0.35);
  transition: transform 0.6s var(--ease);
}
.overol-card::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.overol-card__shine {
  position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(0, 194, 255, 0.35) 80%, transparent 90%);
  animation: spin 8s linear infinite;
}
.overol-card__number {
  position: absolute; top: 0.5rem; right: 1.6rem; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(9rem, 18vw, 13rem); line-height: 1; letter-spacing: -0.06em;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.15));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.overol-card__label { position: relative; font-size: 1.15rem; line-height: 1.5; color: rgba(255,255,255,0.8); }
.overol-card__label strong { color: #fff; font-family: var(--font-head); font-size: 1.5rem; }
.overol-card__logo {
  position: absolute; top: 2rem; left: 2rem; width: 64px; height: 64px;
  background: #fff; border-radius: 18px; padding: 8px;
}

.about__chip {
  position: absolute; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 0.9rem; color: var(--navy); animation: float 6s ease-in-out infinite;
}
.about__chip svg { color: var(--blue); }
.about__chip--1 { top: 34%; left: -2%; }
.about__chip--2 { top: 56%; right: -2%; animation-delay: -3s; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 1.6rem; }
.pillar {
  padding: 1.4rem; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: 0.4rem; }
.pillar p { font-size: 0.92rem; color: var(--muted); }

.values { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.values li {
  padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500;
  color: var(--navy); transition: all 0.3s;
}
.values li:hover { border-color: var(--blue); color: var(--blue); background: rgba(10, 108, 255, 0.05); }

/* ---------- Stats / features ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.stat {
  text-align: center; padding: 2rem 1rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
}
.stat__value {
  display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1;
}
.stat__label { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature {
  display: flex; gap: 1.2rem; padding: 1.8rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 1.25rem;
}
.feature h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.3rem; }
.feature p { font-size: 0.94rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 2rem; background: linear-gradient(var(--soft) 50%, #fff 50%); }
.cta__box {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--grad-dark); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  box-shadow: 0 30px 70px rgba(10, 40, 120, 0.3);
}
.cta__lines {
  position: absolute; inset: 0; opacity: 0.5;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 194, 255, 0.5), transparent 40%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px);
}
.cta__content { position: relative; max-width: 680px; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 0.6rem; }
.cta p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }
.cta .btn { position: relative; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
.contact__info > p { color: var(--muted); margin-bottom: 2rem; }
.contact__list { display: grid; gap: 1rem; margin-bottom: 2.2rem; }
.contact__item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.contact__item:hover { border-color: rgba(10, 108, 255, 0.3); transform: translateX(6px); box-shadow: var(--shadow); }
.contact__item small { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact__item a, .contact__item span, .contact__item address { font-weight: 600; font-style: normal; color: var(--navy); word-break: break-word; }
.contact__item a:hover { color: var(--blue); }
.contact__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: rgba(10, 108, 255, 0.08); color: var(--blue); font-size: 1.2rem;
}

.social small { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.social__list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.social__link {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); color: var(--navy); background: #fff; font-size: 1.1rem;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.social__link:hover { transform: translateY(-4px); background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(10, 108, 255, 0.3); }

.form { padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow); position: relative; }
.form__title { font-size: 1.4rem; color: var(--navy); margin-bottom: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--soft);
  font-size: 0.96rem; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6680' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.6rem;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa4b8; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(10, 108, 255, 0.12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e5484d; background: #fff7f7; }
.field__error { font-size: 0.8rem; color: #d13438; min-height: 0; margin-top: 0.3rem; }
.field__error:empty { display: none; }

.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.7rem; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; padding: 0; }
.field--check label { flex: 1; font-weight: 400; font-size: 0.84rem; color: var(--muted); margin: 0; }
.field--check .field__error { width: 100%; }
.field--check label a, .form__privacy a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.form__privacy {
  font-size: 0.78rem; line-height: 1.55; color: var(--muted); background: var(--soft);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1.2rem;
}
.form__privacy strong { color: var(--navy); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin-top: 1rem; font-size: 0.92rem; text-align: center; min-height: 1.4em; }
.form__status.is-ok { color: #12805c; }
.form__status.is-error { color: #d13438; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; }

/* ---------- Footer ---------- */
.footer { background: var(--soft); border-top: 1px solid var(--line); padding-top: 4rem; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 0.9fr 1fr 1.1fr 1.3fr; gap: 2.2rem; padding-bottom: 3rem; }
.footer__brand img { width: 170px; height: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); font-style: italic; }
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.5rem; }
.footer__col a, .footer__col span { color: var(--muted); font-size: 0.92rem; transition: color 0.25s; word-break: break-word; }
.footer__col a:hover { color: var(--blue); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted);
}
.to-top {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  color: var(--navy); transition: all 0.3s var(--ease);
}
.to-top:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.6rem; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.4s var(--ease);
  animation: wa-in 0.6s var(--ease) 1.2s both;
}
.wa-float svg path { fill: currentColor; stroke: none; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { from { transform: scale(1); opacity: 0.5; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip {
  position: absolute; right: calc(100% + 12px); white-space: nowrap; padding: 0.45rem 0.8rem; border-radius: 8px;
  background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 500;
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: all 0.3s var(--ease);
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }
@keyframes wa-in { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 300; transform: translate(-50%, 150%);
  opacity: 0; visibility: hidden; transition: transform 0.45s var(--ease), opacity 0.3s, visibility 0.45s;
  padding: 0.85rem 1.3rem; border-radius: 12px; background: var(--navy); color: #fff; font-size: 0.92rem;
  box-shadow: var(--shadow-lg); max-width: calc(100% - 2rem); text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .float-card--2 { right: -2%; }
}

@media (max-width: 920px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.5rem; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.35s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__link { display: block; padding: 0.8rem 1rem; border-radius: 10px; }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: rgba(10, 108, 255, 0.07); color: var(--blue); }
  .nav-toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__visual { width: min(88%, 420px); order: -1; }
  .scroll-hint { display: none; }

  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin-inline: auto; }
  .timeline__progress { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; }
  .timeline__progress span { transform-origin: top; transform: scaleY(0); width: 100%; height: 100%; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.2rem; text-align: left; padding: 0 0 2rem; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; margin-top: 0.4rem; }

  .about, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta__box { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { width: min(1200px, 100% - 2rem); }
  .services, .features, .pillars, .form__row { grid-template-columns: 1fr; }
  .hero__visual { width: min(78%, 330px); }
  .eyebrow { font-size: 0.76rem; padding: 0.4rem 0.85rem; }
  .float-card { padding: 0.55rem 0.75rem; }
  .float-card small { display: none; }
  .float-card__icon { width: 32px; height: 32px; }
  .float-card--1 { left: -6%; }
  .float-card--2 { right: -6%; }
  .about__chip { font-size: 0.8rem; padding: 0.55rem 0.9rem; }
  .about__chip--1 { left: 0; }
  .about__chip--2 { right: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column-reverse; text-align: center; }
  .wa-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .wa-float__tip { display: none; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
}

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 150; max-width: 440px;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: 16px; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-show { opacity: 1; transform: none; }
.cookie-banner p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.cookie-banner a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner .btn { flex-shrink: 0; }

/* =========================================================
   Páginas legales
   ========================================================= */
.legal-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 3.5rem) 0 3rem; background: var(--soft); border-bottom: 1px solid var(--line);
}
.legal-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 108, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 108, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 65%);
}
.legal-hero .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.legal-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--navy); margin-bottom: 0.8rem; text-wrap: balance; }
.legal-hero p { color: var(--muted); max-width: 720px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.legal-meta span {
  font-size: 0.8rem; font-weight: 500; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
}

.legal-docs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.legal-docs a {
  font-size: 0.86rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--muted); transition: all 0.25s;
}
.legal-docs a:hover { color: var(--blue); border-color: var(--blue); }
.legal-docs a[aria-current="page"] { background: var(--grad); color: #fff; border-color: transparent; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; padding: 3.5rem 0 6rem; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; max-height: calc(100vh - var(--header-h) - 3rem); overflow: auto; }
.legal-toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.8rem; font-family: var(--font-body); }
.legal-toc ol { border-left: 2px solid var(--line); }
.legal-toc a {
  display: block; padding: 0.38rem 0 0.38rem 1rem; margin-left: -2px; border-left: 2px solid transparent;
  font-size: 0.86rem; color: var(--muted); line-height: 1.4; transition: color 0.2s, border-color 0.2s;
}
.legal-toc a:hover { color: var(--navy); }
.legal-toc a.is-active { color: var(--blue); border-left-color: var(--blue); font-weight: 500; }

.legal-doc { max-width: 780px; color: #34405a; font-size: 1rem; }
.legal-doc section { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal-doc section + section { margin-top: 2.6rem; }
.legal-doc h2 { font-size: 1.35rem; color: var(--navy); margin-bottom: 0.9rem; display: flex; gap: 0.6rem; align-items: baseline; }
.legal-doc h2 .num { font-size: 0.9rem; color: var(--blue); font-weight: 700; min-width: 1.6rem; }
.legal-doc h3 { font-size: 1.05rem; color: var(--navy); margin: 1.4rem 0 0.5rem; }
.legal-doc p { margin-bottom: 0.9rem; }
.legal-doc ul, .legal-doc ol.list { margin: 0 0 1rem 1.3rem; }
.legal-doc ul { list-style: disc; }
.legal-doc ol.list { list-style: lower-alpha; }
.legal-doc li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.legal-doc li::marker { color: var(--blue); }
.legal-doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc strong { color: var(--navy); }

.legal-id {
  display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.4rem;
  padding: 1.4rem 1.6rem; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); margin-bottom: 1rem;
}
.legal-id dt { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.legal-id dd { font-size: 0.95rem; word-break: break-word; }

/* Dato pendiente por completar antes de publicar */
.todo { background: #fff3bf; color: #7a5b00; padding: 0 0.3rem; border-radius: 4px; font-weight: 600; }

.legal-note {
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin: 1rem 0;
  background: rgba(10, 108, 255, 0.06); border-left: 3px solid var(--blue); font-size: 0.95rem;
}

.legal-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.92rem; }
.legal-table th, .legal-table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--soft); color: var(--navy); font-weight: 600; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1rem; }
.legal-table-wrap .legal-table { margin: 0; }

/* Texto justificado en los documentos legales */
.legal-doc p, .legal-doc li, .legal-hero p {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
}
.legal-doc .legal-id dd, .legal-doc .browser-list li, .legal-doc .third-card p, .legal-doc .cookie-card dd { text-align: left; hyphens: manual; }

/* Política de cookies: tarjetas */
.cookie-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
  overflow: hidden; margin: 1.2rem 0 0.5rem;
}
.cookie-card__head {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
  background: linear-gradient(120deg, rgba(10, 108, 255, 0.07), rgba(0, 194, 255, 0.05)); border-bottom: 1px solid var(--line);
}
.cookie-card__icon, .third-card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 1.25rem;
}
.cookie-card__name {
  display: inline-block; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.95rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.4rem; word-break: break-all;
}
.cookie-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: #eef1f6; color: var(--muted); letter-spacing: 0.02em;
}
.tag--blue { background: rgba(10, 108, 255, 0.1); color: var(--blue); }
.tag--green { background: rgba(18, 128, 92, 0.1); color: #12805c; }
.cookie-card__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cookie-card__body > div { padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.cookie-card__body > div:nth-child(odd) { border-right: 1px solid var(--line); }
.cookie-card__body > div:nth-last-child(-n + 2) { border-bottom: 0; }
.cookie-card__body dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.25rem; }
.cookie-card__body dd { font-size: 0.94rem; color: var(--navy); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.third-card {
  display: flex; flex-direction: column; padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.third-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(10, 108, 255, 0.25); }
.third-card__icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; margin-bottom: 1rem; }
.legal-doc .third-card h3 { margin: 0 0 0.15rem; font-size: 1.02rem; }
.third-card__owner { font-size: 0.78rem !important; color: var(--blue); font-weight: 600; margin-bottom: 0.6rem !important; }
.third-card p { font-size: 0.9rem; margin-bottom: 0.8rem; }
.legal-doc .third-card a { margin-top: auto; font-size: 0.86rem; font-weight: 500; }

.legal-doc ul.browser-list {
  list-style: none; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem;
}
.legal-doc .browser-list li { margin: 0; padding: 0; }
.legal-doc .browser-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; height: 100%;
  padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--soft);
  color: var(--navy); font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: all 0.3s var(--ease);
}
.legal-doc .browser-list a svg { color: var(--blue); transition: transform 0.3s var(--ease); }
.legal-doc .browser-list a:hover { background: #fff; border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }
.legal-doc .browser-list a:hover svg { transform: translate(2px, -2px); }

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-doc ul.browser-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2.5rem; }
  .legal-toc { position: static; max-height: none; padding: 1.2rem; background: var(--soft); border-radius: var(--radius-sm); border: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .cookie-banner { left: 1rem; right: 5rem; bottom: 1rem; flex-direction: column; align-items: stretch; }
  .legal-id { grid-template-columns: 1fr; gap: 0.2rem; }
  .cookie-card__body { grid-template-columns: minmax(0, 1fr); }
  .cookie-card__body > div:nth-child(odd) { border-right: 0; }
  .cookie-card__body > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .legal-doc ul.browser-list { grid-template-columns: minmax(0, 1fr); }
  .legal-id dd { margin-bottom: 0.6rem; }
}

@media print {
  .header, .footer, .wa-float, .cookie-banner, .legal-toc, .legal-docs, .scroll-progress, .toast { display: none !important; }
  .legal-hero { padding-top: 1rem; background: none; }
  .legal-layout { display: block; padding: 0; }
}
