/* ==========================================================================
   Lanzes Automotive: hoja de estilos
   Mobile-first. Sin dependencias. Compatible con CSP estricta.
   ========================================================================== */

/* ---------- 1. Variables de marca ---------- */
:root {
  /* Colores extraídos del logo */
  --navy: #01234A;
  --navy-800: #0B2F59;
  --navy-700: #163D6B;
  --teal: #0291A6;          /* turquesa del logo: decoración y elementos grandes */
  --teal-deep: #026C84;     /* turquesa profundo: botones, enlaces, texto de acento */
  --teal-light: #7FD3DF;    /* acento sobre fondo azul marino */

  /* Neutros: paleta "marfil técnico" */
  --bg: #F5F1E8;            /* fondo general, cálido tipo papel */
  --surface: #FBF8F2;       /* tarjetas, cabecera, menús */
  --field: #FFFDF8;         /* campos del formulario */
  --tint: #ECE5D6;          /* secciones alternas */
  --tint-soft: #F2ECE0;     /* estados al pasar el ratón */
  --line: #DDD4C2;
  --line-hover: #CBBFA8;
  --line-strong: #7A8B95;   /* bordes de campos (contraste 3:1) */
  --ink: #202B33;
  --muted: #56616A;
  --white: #FFFFFF;
  --error: #B42318;

  /* Tipografía (pila del sistema; sustituible por woff2 propias) */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Medidas */
  --container: 1200px;
  --gutter: 20px;
  --radius: 8px;
  --radius-sm: 6px;
  --header-h: 68px;
  --shadow-sm: 0 1px 2px rgba(1, 35, 74, .06), 0 1px 3px rgba(1, 35, 74, .08);
  --shadow-md: 0 10px 30px -12px rgba(1, 35, 74, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.45rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus { outline: none; }

[hidden] { display: none !important; }

::selection { background: var(--teal); color: var(--white); }

/* ---------- 3. Utilidades ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25rem; height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; stroke-width: 1.5; }
.icon-xl { width: 2.5rem; height: 2.5rem; stroke-width: 1.35; }

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .7rem 1.2rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: .975rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon[aria-hidden="true"]:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal-deep);
  color: var(--white);
  box-shadow: 0 6px 16px -8px rgba(2, 108, 132, .8);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--navy); color: var(--white); }

.btn-secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--navy); color: var(--white); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--navy);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--navy); background: var(--tint-soft); color: var(--navy); }

.btn-lg { min-height: 52px; padding: .85rem 1.5rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- 5. Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(251, 248, 242, .86); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
}
.brand-logo { width: 50px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.brand-name span { color: var(--teal-deep); }
@media (max-width: 479px) {
  .brand { gap: .5rem; }
  .brand-logo { width: 46px; }
  .brand-name { font-size: 1rem; }
  .brand-name span { display: block; }
  .eyebrow { font-size: .75rem; letter-spacing: .02em; }
}

.site-nav { order: 3; }
.header-actions { display: flex; align-items: center; gap: .5rem; order: 2; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-list { list-style: none; }
.nav-list a:not(.btn) {
  display: block;
  padding: .75rem 0;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:not(.btn):hover, .nav-list a.is-active { color: var(--teal-deep); }

.btn-header { display: none; }

/* Sin JavaScript: el menú se muestra como lista horizontal desplazable */
html:not(.js) .site-nav { order: 4; width: 100%; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .nav-list { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .5rem; }
html:not(.js) .nav-list a:not(.btn) { white-space: nowrap; padding: .25rem 0; }
html:not(.js) .nav-cta-mobile { display: none; }

/* Con JavaScript, en móvil: menú desplegable */
.js .nav-toggle { display: inline-flex; }
.js .nav-list {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  display: none;
  padding: .5rem var(--gutter) 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.js .nav-list li + li { border-top: 1px solid var(--line); }
.js .nav-list .nav-cta-mobile { border-top: 0; padding-top: 1rem; }
.js .site-header.nav-open .nav-list { display: block; animation: drop .25s var(--ease); }

@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 640px) {
  .btn-header { display: inline-flex; min-height: 42px; padding: .55rem 1rem; font-size: .925rem; white-space: nowrap; }
  .brand-logo { width: 56px; }
}

@media (min-width: 1180px) {
  .site-nav { order: 2; }
  .header-actions { order: 3; }
  .brand { margin-right: 0; }
  .site-nav { margin-left: auto; }
  .js .nav-toggle { display: none; }
  .js .nav-list, html:not(.js) .nav-list {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
    max-height: none;
    overflow: visible;
  }
  html:not(.js) .site-nav { order: 2; width: auto; }
  html:not(.js) .header-inner { flex-wrap: nowrap; }
  .js .nav-list li + li { border: 0; }
  .nav-list a:not(.btn) {
    position: relative;
    padding: .5rem 0;
    font-size: .95rem;
    white-space: nowrap;
  }
  .nav-list a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav-list a:not(.btn):hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
  .js .nav-list .nav-cta-mobile { display: none; }
  .header-actions { margin-left: 1rem; }
}

/* ---------- 6. Selector de idioma ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 42px;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--line-strong); background: var(--tint-soft); }
.lang-switch summary .icon { transition: transform .2s var(--ease); }
.lang-switch[open] summary .icon { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 160px;
  padding: .35rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: drop .2s var(--ease);
}
.lang-menu a {
  display: block;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
}
.lang-menu a:hover { background: var(--tint-soft); color: var(--navy); }
.lang-menu a[aria-current="true"] { color: var(--teal-deep); font-weight: 600; }

.lang-switch-footer .lang-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.lang-switch-footer summary { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.lang-switch-footer summary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }

/* ---------- 7. Secciones ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #DCE7EE; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.075rem; }

.kicker {
  display: block;
  margin-bottom: 1.1rem;
  padding-left: .8rem;
  border-left: 3px solid var(--teal);
  color: var(--navy);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
}
.section-dark .kicker { color: #DCE7EE; border-left-color: var(--teal-light); }

/* ---------- 8. Portada ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
  background:
    radial-gradient(ellipse 60% 70% at 85% 35%, rgba(2, 145, 166, .07), transparent 70%),
    linear-gradient(180deg, rgba(245, 241, 232, 0) 60%, var(--bg) 100%),
    repeating-linear-gradient(0deg, rgba(1, 35, 74, .045) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(1, 35, 74, .045) 0 1px, transparent 1px 48px),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .35rem .75rem;
  border: 1px solid rgba(2, 108, 132, .35);
  border-radius: 999px;
  background: rgba(2, 145, 166, .07);
  color: var(--teal-deep);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.hero h1 { max-width: 20ch; }

.motto {
  margin: 1.25rem 0 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
}

.lead {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.075rem;
}

.hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }

.key-facts {
  display: grid;
  gap: 0;
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0;
  border-top: 1px solid var(--line);
}
.fact {
  position: relative;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}
.fact dd { margin: .2rem 0 0; color: var(--muted); }

@media (min-width: 768px) {
  .key-facts { grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--teal); border-bottom: 1px solid var(--line); }
  .fact { border-bottom: 0; padding: 1.75rem 1.5rem 1.75rem 1.5rem; }
  .fact + .fact { border-left: 1px solid var(--line); }
}

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}


/* Portada fotográfica a pantalla completa */
.hero-photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(92vh, 860px);
  padding-top: clamp(3rem, 2rem + 5vw, 6rem);
  padding-bottom: 0;
  color: #DCE7EE;
  background:
    linear-gradient(90deg, rgba(1, 26, 56, .94) 0%, rgba(1, 35, 74, .82) 45%, rgba(1, 35, 74, .45) 100%),
    url("/assets/images/motor-seccion-800.v1.jpg") center / cover no-repeat,
    var(--navy);
}
@media (min-width: 900px) {
  .hero-photo {
    background:
      linear-gradient(90deg, rgba(1, 26, 56, .94) 0%, rgba(1, 35, 74, .8) 45%, rgba(1, 35, 74, .35) 100%),
      url("/assets/images/motor-seccion-1600.v1.jpg") center / cover no-repeat,
      var(--navy);
  }
}
.hero-photo .hero-grid { flex: 1; padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero-photo .eyebrow {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--teal-light);
  font-size: .95rem;
  letter-spacing: 0;
}
.hero-photo h1 {
  max-width: 17ch;
  padding-left: 1.25rem;
  border-left: 4px solid var(--teal);
  color: var(--white);
}
.hero-photo .motto { border-left: 0; padding-left: 0; color: var(--white); }
.hero-photo .lead { color: #C9D7E1; }
.hero-photo .btn-secondary { border-color: rgba(255, 255, 255, .75); color: var(--white); }
.hero-photo .btn-secondary:hover, .hero-photo .btn-secondary:focus-visible { background: var(--white); border-color: var(--white); color: var(--navy); }
.hero-photo .btn-primary { background: var(--teal); color: var(--navy); box-shadow: none; }
.hero-photo .btn-primary:hover, .hero-photo .btn-primary:focus-visible { background: var(--white); color: var(--navy); }

/* Motivo de red sobre fondo oscuro */
.hero-photo .net-orbits circle, .hero-photo .net-orbits ellipse { stroke: rgba(255, 255, 255, .5); stroke-width: 1.4; }
.hero-photo .net-orbits circle { fill: rgba(1, 26, 56, .55); stroke: rgba(255, 255, 255, .75); stroke-width: 2; }
.hero-photo .net-mesh path { stroke: rgba(127, 211, 223, .55); }
.hero-photo .net-flow { stroke: var(--teal-light); }
.hero-photo .node { fill: var(--navy); stroke: var(--teal-light); }
.hero-photo .net-tags rect { fill: rgba(1, 35, 74, .85); stroke: rgba(127, 211, 223, .45); }
.hero-photo .net-tags text { fill: var(--white); }
.hero-photo .core-shield { fill: var(--white); }
.hero-photo .core-dot { fill: var(--teal); }

/* Barra de datos al pie de la portada */
.hero-facts { background: rgba(1, 26, 56, .92); border-top: 1px solid rgba(127, 211, 223, .25); }
.hero-facts .key-facts { margin: 0; border: 0; }
.hero-facts .fact { border-bottom-color: rgba(255, 255, 255, .12); }
.hero-facts .fact dt { color: var(--white); }
.hero-facts .fact dd { color: #A9BCCB; }
@media (min-width: 768px) {
  .hero-facts .key-facts { border: 0; }
  .hero-facts .fact + .fact { border-left-color: rgba(255, 255, 255, .12); }
}

/* Motivo gráfico: red global */
.network { width: 100%; height: auto; overflow: visible; }
.net-orbits circle, .net-orbits ellipse { fill: none; stroke: #D6CCB8; stroke-width: 1; }
.net-mesh path { fill: none; stroke: #C4B8A0; stroke-width: 1; stroke-dasharray: 2 6; }
.net-flow {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 5 9;
  animation: flow 7s linear infinite;
}
.net-flow.f2 { animation-duration: 9s; }
.net-flow.f3 { animation-duration: 6s; animation-direction: reverse; }
.net-flow.f4 { animation-duration: 11s; }
.node {
  fill: var(--surface);
  stroke: var(--teal);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 4s ease-in-out infinite;
}
.node.n2 { animation-delay: -1s; }
.node.n3 { animation-delay: -2s; }
.node.n4 { animation-delay: -3s; }
.net-tags rect { fill: var(--surface); stroke: #C4B8A0; stroke-width: 1; }
.net-tags text {
  fill: var(--navy);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-anchor: middle;
}
.core-pulse {
  fill: var(--teal);
  opacity: .14;
  transform-box: fill-box;
  transform-origin: center;
  animation: core-pulse 3.2s ease-out infinite;
}
.core-shield { fill: var(--navy); }
.core-dot { fill: var(--teal); }

@keyframes flow { to { stroke-dashoffset: -168; } }
@keyframes node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
@keyframes core-pulse {
  0% { transform: scale(.8); opacity: .28; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- 9. Qué resolvemos ---------- */
.solve-grid { display: grid; gap: 1.25rem; }
.solve-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.solve-card::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px; right: -1px;
  height: 3px;
  background: var(--teal);
  border-radius: var(--radius) var(--radius) 0 0;
}
.solve-card:hover { border-color: var(--line-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.solve-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; color: var(--teal-deep); }
.solve-num {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}
.solve-card h3 { margin-bottom: .6rem; font-size: 1.4rem; }
.solve-card p { color: var(--muted); }

.on-demand {
  display: grid;
  margin-top: 1.25rem;
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius);
  color: #DCE7EE;
}
.on-demand-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.on-demand-body {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
}
.on-demand .icon { color: var(--teal-light); margin-top: .15rem; }
.on-demand h3 { margin-bottom: .35rem; color: var(--white); font-size: 1.2rem; }

/* Variante con foto: la imagen ocupa toda la caja y el texto va sobre un velo azul translúcido */
.on-demand-photo { position: relative; isolation: isolate; }
.on-demand-photo .on-demand-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  aspect-ratio: auto;
  object-position: 50% 15%;
}
.on-demand-photo .on-demand-body {
  margin-top: 15rem;
  padding-top: 3rem;
  background: linear-gradient(180deg, rgba(1, 35, 74, 0) 0%, rgba(1, 35, 74, .55) 32%, rgba(1, 35, 74, .72) 100%);
}

@media (min-width: 768px) {
  .solve-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .solve-card { padding: 2.5rem 2.25rem; }
  .on-demand-body { padding: 2.25rem 2.5rem; }
  .on-demand-photo .on-demand-body { margin-top: 19rem; padding-top: 3.5rem; }
}

/* ---------- 10. Cómo trabajamos (pasos) ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: none; }
.step {
  position: relative;
  padding: 0 0 2.25rem 4rem;
}
.step:last-child { padding-bottom: 0; }
.step::before, .step::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.step::after {
  background: var(--teal);
  transform-origin: top;
  transition: transform .6s var(--ease);
}
.step:last-child::before, .step:last-child::after { display: none; }
.js .step:not(.is-reached)::after { transform: scaleY(0); }

.step-num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.js .step:not(.is-reached) .step-num { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }
.js .step.is-reached .step-num { transform: scale(1.04); }
.step h3 { margin: .45rem 0 .4rem; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .975rem; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .step { padding: 4.25rem 0 0; }
  .step::before, .step::after {
    left: 56px;
    right: -1.25rem;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .step::after { transform-origin: left; }
  .js .step:not(.is-reached)::after { transform: scaleX(0); }
  .step h3 { margin-top: 0; }
}


/* ---------- 11. Qué suministramos (mosaico) ---------- */
.tiles { display: grid; gap: 1rem; }
.tile-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  background: var(--navy);
  border-radius: var(--radius);
  color: #DCE7EE;
}
.tile-intro .icon { color: var(--teal-light); }
.tile-intro p { font-size: 1.05rem; line-height: 1.55; }
.tile-intro strong { color: var(--white); }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy) 100%);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}
.tile-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.tile-img-left { object-position: 38% 50%; }
.tile-img-low { object-position: 30% 68%; }
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 26, 56, .05) 25%, rgba(1, 26, 56, .88) 100%);
}
.tile-icon {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  stroke-width: 1.2;
  color: var(--teal-light);
  opacity: .9;
}
.tile-body { display: block; padding: 1.5rem 4.5rem 1.5rem 1.5rem; }
.tile h3 { color: var(--white); font-size: 1.3rem; margin-bottom: .35rem; }
.tile-desc {
  display: block;
  color: #C9D7E1;
  font-size: .9rem;
  line-height: 1.45;
}
.tile-arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--navy);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.tile:hover .tile-img, .tile:focus-visible .tile-img { transform: scale(1.05); }
.tile:hover .tile-arrow, .tile:focus-visible .tile-arrow { background: var(--white); transform: translateX(3px); }
.tile:focus-visible { outline-offset: 4px; }

@media (min-width: 640px) {
  .tile { min-height: 280px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile-intro { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(300px, auto); }
  .tile-intro { grid-column: 1; grid-row: 1 / span 2; padding: 2.5rem 2rem; }
  .tile-intro p { font-size: 1.15rem; }
}

.callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--teal);
  background: var(--tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}
.callout strong { color: var(--navy); }

/* ---------- 12. Alternativas (tabla) ---------- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.options-table { width: 100%; border-collapse: collapse; }
.options-table th, .options-table td { padding: 1.25rem 1.5rem; text-align: left; vertical-align: top; }
.options-table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
}
.options-table tbody tr { border-top: 1px solid var(--line); transition: background-color .2s var(--ease); }
.options-table tbody tr:hover { background: var(--tint-soft); }
.options-table tbody th { width: 34%; }
.options-table td { color: var(--muted); }

.badge {
  display: inline-block;
  padding: .35rem .7rem;
  border: 1px solid rgba(2, 108, 132, .35);
  border-radius: var(--radius-sm);
  background: rgba(2, 145, 166, .08);
  color: var(--navy);
  font-size: .95rem;
  font-weight: 700;
}
.badge-special { background: var(--navy); border-color: var(--navy); color: var(--white); }

@media (max-width: 639px) {
  .table-wrap { background: none; border: 0; border-radius: 0; overflow: visible; }
  .options-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .options-table, .options-table tbody, .options-table tr, .options-table th, .options-table td { display: block; width: 100%; }
  .options-table tbody tr {
    margin-bottom: .875rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .options-table tbody th { width: 100%; padding: 1.1rem 1.25rem 0; }
  .options-table td { padding: .6rem 1.25rem 1.2rem; }
}

/* ---------- 13. Capacidad técnica y trazabilidad ---------- */
.tech-grid { display: grid; gap: 2.5rem; }
.tech-photo {
  margin: 0 0 2rem;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: var(--tint);
}
.tech-photo img { width: 100%; height: 100%; object-fit: cover; }
.h-icon { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.h-icon .icon { color: var(--teal-deep); }
.h-icon-spaced { margin-top: 2.5rem; }
.tech-text { color: var(--muted); }

.check-list { list-style: none; display: grid; gap: .8rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--teal-deep);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.check-list li { transition: color .35s var(--ease); }

/* Checks dinámicos: se marcan al desplazarse (solo con JavaScript) */
.js .check-list li:not(.is-checked)::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transform: scale(.82);
}
.js .check-list-light li:not(.is-checked)::before { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.js .check-list li:not(.is-checked) { color: var(--muted); }
.js .check-list-light li:not(.is-checked) { color: #9FB3C3; }
.check-list-light li::before { background: var(--teal); }

.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: var(--teal-light);
}
.sheet-head h3 { color: var(--white); font-size: 1.15rem; }
.sheet-list { list-style: none; counter-reset: sheet; padding: .5rem 1.5rem 1rem; }
.sheet-list li {
  counter-increment: sheet;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: .8rem 0;
  border-bottom: 1px dashed var(--line);
}
.sheet-list li:last-child { border-bottom: 0; }
.sheet-list li::before {
  content: counter(sheet, decimal-leading-zero);
  flex: none;
  color: var(--teal-deep);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem;
  font-weight: 600;
}

@media (min-width: 900px) {
  .tech-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

/* ---------- 14. Seguros y prueba comparativa ---------- */
.section-dark-photo {
  background:
    linear-gradient(90deg, rgba(1, 35, 74, .96) 0%, rgba(1, 35, 74, .9) 55%, rgba(1, 35, 74, .78) 100%),
    url("/assets/images/peritacion-600.v1.jpg") 70% 30% / cover no-repeat,
    var(--navy);
}
@media (min-width: 900px) {
  .section-dark-photo {
    background:
      linear-gradient(90deg, rgba(1, 35, 74, .97) 0%, rgba(1, 35, 74, .9) 45%, rgba(1, 35, 74, .7) 100%),
      url("/assets/images/peritacion-1000.v1.jpg") right 30% / 55% auto no-repeat,
      var(--navy);
  }
}

.insurance-grid { display: grid; gap: 2.5rem; }
.insurance-copy h2 { margin-bottom: 1.25rem; }
.insurance-copy > p { color: #C9D7E1; font-size: 1.075rem; }
.insurance-copy .check-list { margin: 1.75rem 0; }
.note-light {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #C9D7E1;
}

.trial-card {
  align-self: start;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.trial-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; color: var(--teal-deep); }
.trial-card h3 { color: var(--navy); font-size: 1.4rem; }
.trial-card p { color: var(--muted); }
.trial-sub {
  margin-top: 1.25rem;
  color: var(--navy) !important;
  font-size: .95rem;
  font-weight: 600;
}
.trial-vars { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.25rem; }
.trial-vars li {
  padding: .85rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--tint-soft);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
}
.trial-vars span {
  display: block;
  margin-bottom: .2rem;
  color: var(--teal-deep);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .78rem;
}
.trial-foot { color: var(--navy) !important; font-weight: 600; }

@media (min-width: 1000px) {
  .insurance-grid { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; align-items: center; }
  .trial-card { padding: 2.5rem 2.25rem; }
}

/* ---------- 15. Solicitud de cotización ---------- */
.quote-grid { display: grid; gap: 2.5rem; }
.quote-intro h2 { margin-bottom: 1rem; }
.quote-intro > p { color: var(--muted); font-size: 1.05rem; }

.photo-note {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(2, 108, 132, .35);
  border-radius: var(--radius-sm);
  background: rgba(2, 145, 166, .07);
  color: var(--navy);
  font-weight: 600;
}
.photo-note .icon { color: var(--teal-deep); }

.mail-fallback { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.mail-fallback-label { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.mail-address {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-all;
}
.mail-address .icon { color: var(--teal-deep); }

.quote-form {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.field-group { margin: 0 0 1.5rem; padding: 0; border: 0; }
.field-group legend, .field label {
  display: block;
  margin-bottom: .4rem;
  color: var(--navy);
  font-size: .925rem;
  font-weight: 600;
}
.radio-row { display: grid; gap: .5rem; }
.radio {
  display: flex !important;
  align-items: center;
  gap: .65rem;
  margin: 0 !important;
  padding: .75rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500 !important;
  color: var(--ink) !important;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.radio:hover { background: var(--tint-soft); }
.radio input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--teal-deep); }
.radio:has(input:checked) { border-color: var(--teal-deep); background: rgba(2, 145, 166, .07); box-shadow: inset 0 0 0 1px var(--teal-deep); }

.form-grid { display: grid; gap: 1.1rem; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-700); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(2, 108, 132, .3);
}
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

.req, .opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field-hint { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; }
.field-error { display: none; margin: .35rem 0 0; color: var(--error); font-size: .875rem; font-weight: 600; }
.field.has-error .field-error { display: block; }

.status { margin: .75rem 0 0; font-size: .95rem; }
.status:empty { display: none; }
.status-error { color: var(--error); font-weight: 600; }
[data-form-status] { padding: .85rem 1rem; border-radius: var(--radius-sm); background: rgba(2, 145, 166, .08); color: var(--navy); }
[data-copy-status] { color: var(--teal-deep); font-weight: 600; }

.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.form-actions .btn-lg { flex: 1 1 auto; }
.privacy-line { margin-top: 1rem; color: var(--muted); font-size: .875rem; }
.noscript-note { margin-top: 1rem; padding: .85rem 1rem; background: var(--tint); border-radius: var(--radius-sm); }

@media (min-width: 640px) {
  .quote-form { padding: 2rem; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
  .field-full { grid-column: 1 / -1; }
  .radio-row { grid-template-columns: 1fr 1fr; }
  .form-actions .btn-lg { flex: 0 0 auto; }
}

@media (min-width: 1000px) {
  .quote-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
  .quote-form { padding: 2.5rem; }
}

/* ---------- 16. Por qué Lanzes ---------- */
.why-grid { list-style: none; display: grid; gap: 1rem; }
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.why-item:hover { border-color: var(--line-hover); transform: translateY(-2px); }
.why-item .icon { color: var(--teal-deep); }

.commitment {
  margin-top: 2.5rem;
  padding: 2rem 1.75rem;
  background: var(--navy);
  border-radius: var(--radius);
  color: #DCE7EE;
}
.commitment h3 { margin-bottom: .6rem; color: var(--white); }
.commitment-motto {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .commitment { display: grid; grid-template-columns: 220px 1fr; gap: 1rem 3rem; padding: 2.5rem 3rem; }
  .commitment h3 { grid-row: span 2; }
  .commitment-motto { margin-top: .5rem; }
}

/* ---------- 17. Preguntas frecuentes (acordeón) ---------- */
.faq-wrap { max-width: 860px; }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-heading { font-family: var(--font-sans); font-size: 1.075rem; font-weight: 600; letter-spacing: 0; }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.acc-trigger:hover { color: var(--teal-deep); }
.acc-trigger .icon {
  width: 2rem; height: 2rem;
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal-deep);
  transition: transform .3s var(--ease), background-color .2s var(--ease);
}
.acc-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); background: var(--tint); }
.acc-inner { padding: 0 0 1.4rem; color: var(--muted); max-width: 46rem; }

/* Sin JavaScript todo el contenido está visible; con JavaScript se pliega */
html:not(.js) .acc-trigger { cursor: default; }
html:not(.js) .acc-trigger .icon { display: none; }
.js .acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .35s var(--ease), visibility 0s linear .35s;
}
.js .acc-panel > .acc-inner { overflow: hidden; min-height: 0; }
.js .acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .35s var(--ease), visibility 0s;
}

/* ---------- 18. Pie ---------- */
.site-footer {
  padding-top: 4rem;
  background: #011A38;
  color: #C9D7E1;
  font-size: .95rem;
}
.site-footer a:not(.btn) { color: var(--white); }
.site-footer a:not(.btn):hover { color: var(--teal-light); }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: 3rem; }
.footer-logo {
  width: 110px;
  padding: .6rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-sizing: content-box;
}
.footer-motto { margin-top: 1.25rem; max-width: 22rem; font-weight: 500; color: #DCE7EE; }
.footer-title {
  margin-bottom: .9rem;
  color: var(--teal-light);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-links { list-style: none; display: grid; gap: .5rem; }
.footer-cta { margin-top: 1rem; }
.footer-bottom {
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #A9BCCB;
  font-size: .875rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
}

/* ---------- 19. Páginas legales y 404 ---------- */
.page-hero {
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.page-hero p { margin-top: .75rem; color: var(--muted); }
.breadcrumb { margin-bottom: 1rem; font-size: .9rem; }
.breadcrumb a { font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.legal {
  max-width: 760px;
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.legal h2 {
  margin: 2.5rem 0 .9rem;
  font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .4rem; }
.legal dl { display: grid; gap: .5rem 1.5rem; margin: 0 0 1rem; }
.legal dt { font-weight: 600; color: var(--navy); }
.legal dd { margin: 0 0 .5rem; }
@media (min-width: 640px) {
  .legal dl { grid-template-columns: max-content 1fr; }
  .legal dd { margin: 0; }
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: 4rem;
  text-align: center;
}
.error-code {
  margin-bottom: .5rem;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 5vw, 7rem);
  font-weight: 600;
  line-height: 1;
}
.error-page h1 { margin-bottom: 1rem; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.error-page p { max-width: 34rem; margin-inline: auto; color: var(--muted); }
.error-page .btn-row { justify-content: center; margin-top: 2rem; }
.error-alt { margin-top: 2rem; font-size: .925rem; }

/* ---------- 20. Animaciones de aparición ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 21. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .net-flow, .node, .core-pulse { animation: none !important; }
  .core-pulse { opacity: .14; }
  .js .reveal { opacity: 1; transform: none; }
  .js .check-list li:not(.is-checked)::before { background: var(--teal-deep); box-shadow: none; transform: none; }
  .js .check-list-light li:not(.is-checked)::before { background: var(--teal); }
  .js .check-list li:not(.is-checked) { color: inherit; }
  .js .step:not(.is-reached)::after { transform: none; }
  .js .step:not(.is-reached) .step-num { background: var(--teal-deep); color: var(--white); border-color: var(--teal); }
}

/* ---------- 22. Impresión ---------- */
@media print {
  .site-header, .hero-visual, .quote-form, .lang-switch, .btn { display: none !important; }
  .section-dark, .on-demand, .commitment, .site-footer { background: none !important; color: #000 !important; }
  .section-dark h2, .section-dark h3, .on-demand h3, .commitment h3 { color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

.legal-updated {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: .9rem;
}
