/* ============================================================
   CAPACOLOR — styles.css
   Sistema de diseño completo. Un solo archivo para una sola
   petición HTTP. Organizado por capas:
   1. Tokens  2. Base  3. Utilidades  4. Componentes
   5. Secciones  6. Flotantes  7. Motion & accesibilidad
============================================================ */

/* ============ 0. FUENTES (auto-hospedadas) ============ */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
}

/* ============ 1. TOKENS ============ */
:root {
  /* Color de marca (extraído del logo oficial) */
  --azul: #0C1DE1;
  --azul-hover: #0A18B8;
  --navy: #0A0E33;          /* azul profundo para secciones oscuras */
  --navy-2: #070A24;        /* footer */
  --naranja: #FD6301;
  --naranja-hover: #E45500;
  --naranja-oscuro: #A64500; /* errores: derivado del naranja, AA sobre blanco */
  --crema: #F4EFE9;         /* fondo cálido principal */
  --blanco: #FFFFFF;
  --tinta: #16182B;         /* texto principal */
  --gris: #5C5F73;          /* texto secundario */
  --gris-suave: #E7E1D8;    /* hairlines sobre crema */

  /* Tipografía: Poppins Bold en títulos, Poppins Regular en texto */
  --font-titles: "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2.25rem, 6.8vw, 5rem);
  --fs-h2: clamp(1.9rem, 4.2vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 2.2vw, 1.55rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-big: clamp(1.35rem, 2.6vw, 2.1rem);

  /* Ritmo y forma */
  --space-section: clamp(5rem, 12vw, 9rem);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --wide: 1320px;
  --shadow-1: 0 2px 8px rgba(10, 14, 51, .06), 0 12px 32px rgba(10, 14, 51, .08);
  --shadow-2: 0 4px 16px rgba(10, 14, 51, .10), 0 24px 64px rgba(10, 14, 51, .16);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .21, 1);
  --dur: .7s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Ningún elemento puede ensanchar la página en móvil (clip no rompe sticky) */
  overflow-x: clip;
}

[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* fallback Safari 15 */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-titles);
  font-weight: 700; /* Poppins Bold */
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--azul); color: var(--blanco); }

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.final :focus-visible,
.footer :focus-visible { outline-color: var(--blanco); }

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: .8rem 1.2rem;
  background: var(--tinta);
  color: var(--blanco);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top .25s var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; border: 0; color: var(--tinta); }

/* ============ 3. UTILIDADES ============ */
.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 780px; }
.container--mid { max-width: 980px; }

.section { padding-block: var(--space-section); }

.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.section__kicker {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 1rem;
}
.section__kicker::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--naranja);
  vertical-align: middle;
  margin-right: .75rem;
}

.section__title { font-size: var(--fs-h2); }
.section__sub { color: var(--gris); font-size: 1.05em; max-width: 54ch; }
.section__cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ============ 4. COMPONENTES ============ */

/* --- Botones --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
  padding: .9em 1.9em;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--primary {
  background: var(--naranja);
  color: var(--blanco);
  box-shadow: 0 1px 2px rgba(10, 14, 51, .1),
              0 6px 16px rgba(10, 14, 51, .12);
}
.btn--primary:hover {
  background: var(--naranja-hover);
  box-shadow: 0 2px 4px rgba(10, 14, 51, .1),
              0 10px 22px rgba(10, 14, 51, .16);
}

.btn--ghost {
  background: rgba(255, 255, 255, .1);
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, .65);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--blanco);
  border-color: var(--blanco);
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(7, 10, 36, .25);
}

.btn--outline {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
}
.btn--outline:hover { background: var(--azul); color: var(--blanco); }

.btn--sm { font-size: .88rem; padding: .65em 1.4em; }
.btn--lg { font-size: 1.05rem; }
.btn--xl { font-size: 1.12rem; padding: 1.05em 2.2em; width: 100%; }

/* En pantallas angostas los botones largos envuelven en vez de desbordar */
@media (max-width: 480px) {
  .btn--lg, .btn--xl { white-space: normal; text-align: center; }
}

/* ============ 5. SECCIONES ============ */

/* --- Header --- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              transform .4s var(--ease);
}
.header__inner {
  width: min(100% - 3rem, var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
  transition: padding .35s var(--ease);
}
.header__logo { position: relative; z-index: 110; display: flex; }
.header__logo img {
  width: 200px;
  /* blanco + halo suave: legible sobre fotos claras u oscuras */
  filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(7, 10, 36, .5));
  transition: filter .35s var(--ease);
}
.header.is-scrolled .header__logo img { filter: none; }
@media (max-width: 480px) { .header__logo img { width: 180px; } }
.header__nav { display: flex; align-items: center; gap: 1.6rem; }
.header__nav ul { display: flex; gap: .3rem; }
.header__nav ul a:not(.btn) {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(255, 255, 255, .92);
  padding: .55em 1.05em;
  border-radius: 999px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.header__nav ul a:not(.btn):hover {
  color: var(--blanco);
  background: rgba(255, 255, 255, .14);
}
.header__nav ul a:not(.btn).is-current {
  color: var(--blanco);
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.header__nav-extra { display: none; }

/* Estado con scroll: barra clara */
.header.is-scrolled { background: rgba(244, 239, 233, .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--gris-suave); }
.header.is-scrolled .header__inner { padding-block: .7rem; }
.header.is-scrolled .header__logo img { filter: none; }
.header.is-scrolled .header__nav ul a:not(.btn) { color: var(--tinta); }
.header.is-scrolled .header__nav ul a:not(.btn):hover { color: var(--azul); background: rgba(12, 29, 225, .07); }
.header.is-scrolled .header__nav ul a:not(.btn).is-current {
  color: var(--azul);
  background: rgba(12, 29, 225, .08);
  box-shadow: inset 0 0 0 1px rgba(12, 29, 225, .14);
}
.header.is-hidden { transform: translateY(-100%); }

/* Con el menú abierto el header NO debe tener backdrop-filter/transform:
   ambos crean un bloque contenedor que recortaría el overlay fijo (inset:0)
   al tamaño de la barra, dejando ver la página detrás. */
.header.menu-open {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transform: none;
}

.header__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(7, 10, 36, .45);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  z-index: 110;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.header__burger:hover { background: rgba(7, 10, 36, .6); }
.header__burger span {
  width: 22px; height: 2.5px;
  background: var(--blanco);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(7, 10, 36, .35);
  transition: transform .35s var(--ease), background-color .3s var(--ease), opacity .25s var(--ease);
}
/* Barra clara o menú abierto: chip claro y líneas oscuras */
.header.is-scrolled .header__burger,
.header.menu-open .header__burger { background: rgba(12, 29, 225, .06); border-color: var(--gris-suave); }
.header.is-scrolled .header__burger span,
.header.menu-open .header__burger span { background: var(--tinta); }
.header.menu-open .header__burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.header.menu-open .header__burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__burger { display: flex; }
  .header__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2.2rem;
    padding: 6.5rem clamp(1.8rem, 8vw, 4rem) 3rem;
    background: linear-gradient(165deg, var(--crema) 0%, #EFE7DC 60%, #EAE0D2 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s .4s;
    overflow-y: auto;
  }
  .header.menu-open .header__nav { opacity: 1; visibility: visible; transition-delay: 0s; }

  .header__nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    counter-reset: navitem;
  }
  .header__nav li {
    counter-increment: navitem;
    opacity: 0;
    transform: translateY(22px);
  }
  .header.menu-open .header__nav li { animation: navin .55s var(--ease) forwards; }
  .header.menu-open .header__nav li:nth-child(1) { animation-delay: .08s; }
  .header.menu-open .header__nav li:nth-child(2) { animation-delay: .14s; }
  .header.menu-open .header__nav li:nth-child(3) { animation-delay: .2s; }
  .header.menu-open .header__nav li:nth-child(4) { animation-delay: .26s; }
  .header.menu-open .header__nav li:nth-child(5) { animation-delay: .32s; }

  .header__nav ul a:not(.btn) {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    color: var(--tinta) !important;
    background: none !important;
    box-shadow: none !important;
    font-size: clamp(1.7rem, 6.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: .25em 0;
  }
  .header__nav ul a:not(.btn)::before {
    content: "0" counter(navitem);
    font-size: .5em;
    font-weight: 700;
    color: var(--naranja);
  }
  .header__nav ul a:not(.btn).is-current { color: var(--azul) !important; }

  .header__cta {
    opacity: 0;
    transform: translateY(22px);
    font-size: 1.05rem;
    padding: 1em 2.2em;
  }
  .header.menu-open .header__cta { animation: navin .55s var(--ease) .4s forwards; }

  /* Redes y contacto, solo visibles dentro del menú */
  .header__nav-extra {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    opacity: 0;
    transform: translateY(22px);
    border-top: 1px solid var(--gris-suave);
    padding-top: 1.6rem;
    width: 100%;
  }
  .header.menu-open .header__nav-extra { animation: navin .55s var(--ease) .48s forwards; }
  .header__nav-social { display: flex; gap: .8rem; }
  .header__nav-social a {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--gris-suave);
    color: var(--tinta);
    transition: all .3s var(--ease);
  }
  .header__nav-social a:hover { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
  .header__nav-tel {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    color: var(--gris);
    text-decoration: none;
  }
  .header__nav-tel strong { color: var(--tinta); }

  .header.menu-open .header__logo img { filter: none; }
  .header.menu-open .header__burger span { background: var(--tinta); }
}

@keyframes navin { to { opacity: 1; transform: none; } }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh; /* fallback Safari 15 */
  min-height: 100svh;
  display: flex;
  align-items: flex-end; /* el texto abajo: el video respira */
  color: var(--blanco);
  overflow: hidden;      /* fallback Safari 15 */
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide video,
.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Ken Burns sutil en las fotos de la secuencia */
.hero__slide.is-active img { animation: kenburns 8s linear forwards; }
@keyframes kenburns {
  from { transform: scale(1.03); }
  to { transform: scale(1.11) translateY(-1.2%); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7, 10, 36, .78) 0%, rgba(7, 10, 36, .4) 45%, rgba(7, 10, 36, .42) 100%);
}
.hero__content {
  width: min(100% - 3rem, var(--wide));
  margin-inline: auto;
  /* El texto vive en el tercio inferior: el video se aprecia completo */
  padding-block: 10rem clamp(7rem, 14vh, 9.5rem);
}
.hero__kicker {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-size: var(--fs-hero);
  max-width: 17ch;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 24px rgba(7, 10, 36, .35);
}
.hero__rotator {
  font-family: var(--font-display);
  font-size: var(--fs-big);
  font-weight: 600;
  height: 1.5em;
  margin-bottom: 2.4rem;
  overflow: hidden;
}
.hero__rotator-track { position: relative; display: block; height: 100%; }
.hero__rotator-track span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  color: #FFD9BC;
}
.hero__rotator-track span.is-active {
  opacity: 1;
  transform: none;
  transition-duration: .6s;
  transition-delay: .25s;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .75);
}
.hero__scroll-line {
  width: 1.5px; height: 44px;
  background: rgba(255, 255, 255, .4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--naranja);
  animation: scrollhint 2.2s var(--ease) infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* Pausa de la secuencia (WCAG 2.2.2) */
.hero__pause {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .45);
  background: rgba(7, 10, 36, .3);
  color: var(--blanco);
  backdrop-filter: blur(6px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.hero__pause:hover { background: rgba(7, 10, 36, .55); border-color: rgba(255, 255, 255, .8); }
.hero__pause .ico-play { display: none; }
.hero__pause.is-paused .ico-pause { display: none; }
.hero__pause.is-paused .ico-play { display: block; }
@media (max-width: 700px) {
  .hero__pause { left: 1.3rem; width: 38px; height: 38px; }
}

/* Entrada del hero */
[data-hero-item] {
  opacity: 0;
  transform: translateY(28px);
  animation: heroin 1s var(--ease) forwards;
}
[data-hero-item]:nth-child(2) { animation-delay: .15s; }
[data-hero-item]:nth-child(3) { animation-delay: .3s; }
[data-hero-item]:nth-child(4) { animation-delay: .45s; }
@keyframes heroin { to { opacity: 1; transform: none; } }

/* --- Manifiesto --- */
.manifiesto { padding-block: calc(var(--space-section) * 1.35) var(--space-section); }
.manifiesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
}
.manifiesto__text em { font-style: normal; color: var(--naranja); }
.manifiesto__text .w {
  opacity: .14;
  transition: opacity .5s var(--ease);
}
.manifiesto__text .w.is-on { opacity: 1; }

/* --- Espacios --- */
.espacios__panels {
  display: flex;
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  width: min(100% - 3rem, var(--wide));
  margin-inline: auto;
}
.espacios__panel {
  position: relative;
  flex: 1;
  min-height: clamp(420px, 68vh, 620px);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--blanco);
  transition: flex 0.8s var(--ease);
  box-shadow: var(--shadow-1);
}
.espacios__panel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.espacios__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 36, .82) 0%, rgba(7, 10, 36, .12) 55%, transparent 100%);
  transition: background .5s var(--ease);
}
.espacios__panel:hover { flex: 1.55; }
.espacios__panel:hover img { transform: scale(1.05); }
.espacios__panel-body {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.espacios__panel-tag {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #FFC79E;
  margin-bottom: .6rem;
}
.espacios__panel-body h3 { font-size: var(--fs-h3); max-width: 18ch; }
.espacios__panel-body p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .82);
  max-width: 34ch;
  margin-bottom: 1.1rem;
}
.espacios__panel-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--blanco);
  border-bottom: 2px solid var(--naranja);
  padding-bottom: .2em;
  display: inline-block;
}
.espacios__panel-cta span { display: inline-block; transition: transform .35s var(--ease); }
.espacios__panel:hover .espacios__panel-cta span { transform: translateX(6px); }

@media (max-width: 860px) {
  .espacios__panels { flex-direction: column; }
  .espacios__panel { min-height: 420px; }
  .espacios__panel:hover { flex: 1; }
}

/* --- Proceso --- */
.proceso { background: var(--blanco); border-radius: calc(var(--radius) * 2); margin-inline: clamp(0px, 2vw, 1.5rem); }
.proceso__layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.proceso__sticky { position: sticky; top: 18vh; }
.proceso__progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--azul);
}
.proceso__progress-total { color: var(--gris); }
.proceso__progress-bar {
  flex: 1;
  height: 3px;
  background: var(--gris-suave);
  border-radius: 99px;
  overflow: hidden;
}
.proceso__progress-bar span {
  display: block;
  height: 100%;
  width: 16.6%;
  background: linear-gradient(90deg, var(--azul), var(--naranja));
  border-radius: 99px;
  transition: width .6s var(--ease);
}
.proceso__steps {
  list-style: none;
  counter-reset: paso;
}
.proceso__step {
  padding-block: clamp(3rem, 9vh, 5.5rem);
  border-bottom: 1px solid var(--gris-suave);
  opacity: .22;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.proceso__step:last-child { border-bottom: 0; }
.proceso__step.is-active { opacity: 1; transform: none; }
.proceso__step-num {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--naranja);
  display: block;
  margin-bottom: .8rem;
}
.proceso__step h3 { font-size: var(--fs-h3); }
.proceso__step p { color: var(--gris); max-width: 46ch; margin: 0; }

/* Móvil: lista vertical numerada — los pasos se leen en orden, sin deslizar */
@media (max-width: 860px) {
  .proceso__layout { grid-template-columns: 1fr; }
  .proceso__sticky { position: static; }
  .proceso__progress { display: none; }
  .proceso__step {
    opacity: 1;
    transform: none;
    padding-block: 1.4rem;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 1rem;
    align-items: start;
  }
  .proceso__step-num {
    grid-row: 1 / span 2;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--azul);
    color: var(--blanco);
    font-size: .85rem;
    margin: 0;
  }
  .proceso__step h3 {
    font-size: 1.1rem;
    margin: 0 0 .2em;
    align-self: center;
  }
  .proceso__step p { font-size: .92rem; max-width: none; }
}

/* --- Historias --- */
.historias { overflow: hidden; overflow: clip; }
.historias__track {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
  overflow-y: hidden;                  /* el swipe vertical pasa a la página */
  scroll-snap-type: x proximity;
  padding-inline: max(1.5rem, calc((100vw - var(--container)) / 2));
  padding-bottom: 1.5rem;
  scrollbar-width: none;
  cursor: grab;
}
.historias__track::-webkit-scrollbar { display: none; }
.historias__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.historia {
  flex: 0 0 min(88%, 900px);
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 5fr 6fr;
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.historia__media { position: relative; min-height: 320px; }
.historia__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.historia__body {
  padding: clamp(1.6rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.historia__quote {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
/* Comilla editorial que abre cada historia */
.historia__body::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: .55;
  color: var(--naranja);
  display: block;
  margin-bottom: 1.1rem;
}
.historia__author { font-weight: 600; margin: 0; }
.historia__author span { color: var(--gris); font-weight: 400; }
.historias__hint {
  text-align: center;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gris);
  margin-top: .5rem;
}
@media (max-width: 700px) {
  .historia { grid-template-columns: 1fr; flex-basis: 92%; }
  .historia__media { min-height: 240px; }
}

/* --- Números --- */
.numeros {
  background: var(--azul);
  color: var(--blanco);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.numeros__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem 2rem;
  text-align: center;
}
.numeros__value {
  font-family: var(--font-titles);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.numeros__label {
  display: block;
  margin-top: .6rem;
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
}

/* --- La diferencia: banda azul de marca, encabezado centrado --- */
.porque {
  background: var(--azul);
  border-radius: calc(var(--radius) * 2);
  margin-inline: clamp(0px, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.porque .section__head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.porque .section__kicker { color: #FFC79E; }
.porque .section__title { color: var(--blanco); }
.porque .section__sub {
  color: rgba(255, 255, 255, .82);
  margin-inline: auto;
}
.porque .section__sub strong { color: var(--blanco); font-weight: 700; }

/* --- Versus --- */
.versus {
  background: var(--blanco);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.versus__head, .versus__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.2fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 3vw, 2.2rem);
}
.versus__head {
  background: var(--naranja);
  color: var(--blanco);
  font-family: var(--font-display);
  font-weight: 700;
  padding-block: 1.4rem;
}
/* Encabezado: Capacolor en chip blanco (columna destacada) vs. muted */
.versus__col-capa {
  display: flex;
  justify-content: center;
}
.versus__col-capa img {
  width: 130px;
  filter: none;
  background: var(--blanco);
  padding: .5rem .9rem;
  border-radius: 999px;
}
.versus__col-otro { color: rgba(255, 255, 255, .9); font-size: .95rem; }
.versus__row { border-top: 1px solid var(--gris-suave); transition: background-color .25s var(--ease); }
.versus__row:nth-child(even) { background: #FBF9F6; }
.versus__row:hover { background: rgba(12, 29, 225, .04); }
.versus__row [role="rowheader"] {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
/* Respuesta de Capacolor: caja azul tenue con check — se lee como "la buena" */
.versus__row .si {
  font-weight: 600;
  color: var(--tinta);
  background: rgba(12, 29, 225, .06);
  border-radius: 10px;
  padding: .55em .8em;
}
.versus__row .si::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.5em; height: 1.5em;
  margin-right: .55em;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-size: .75em;
  font-weight: 700;
  vertical-align: -.15em;
}
/* Respuesta del pintor tradicional: gris, apagada */
.versus__row .no { color: var(--gris); font-size: .95rem; padding: .55em .8em; }
.versus__row .no::before {
  content: "✕";
  display: inline-grid;
  place-items: center;
  width: 1.5em; height: 1.5em;
  margin-right: .55em;
  border-radius: 50%;
  background: var(--gris-suave);
  color: var(--gris);
  font-size: .75em;
  vertical-align: -.15em;
}
@media (max-width: 700px) {
  .versus__head { display: none; }              /* en móvil las etiquetas van por fila */
  .versus__row { grid-template-columns: 1fr; gap: .6rem; padding-block: 1.3rem; }
  .versus__row [role="rowheader"] {
    color: var(--azul);
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .1em;
    margin-bottom: .1rem;
  }
  /* Cada celda muestra a quién pertenece */
  .versus__row .si, .versus__row .no {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }
  .versus__row .si::before {
    content: "✓ Capacolor";
    width: auto; height: auto;
    border-radius: 999px;
    padding: .25em .7em;
    margin: 0;
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .versus__row .no::before {
    content: "✕ Pintor tradicional";
    width: auto; height: auto;
    border-radius: 999px;
    padding: .25em .7em;
    margin: 0;
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
}

/* Filas colapsables: solo 3 visibles hasta pulsar "Ver más" */
.versus__row--extra { display: none; }
.versus.is-expanded .versus__row--extra { display: grid; }
.versus__more-wrap { text-align: center; margin-top: 1.25rem; }
.versus__more {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--blanco);
  background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: .7em 1.7em;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.versus__more:hover { background: rgba(255, 255, 255, .24); border-color: var(--blanco); transform: translateY(-1px); }

/* --- Servicios --- */
.servicios {
  /* Fotografía cálida con velo beige: sección clara y hogareña */
  background:
    linear-gradient(165deg, rgba(244, 239, 233, .94) 0%, rgba(236, 226, 213, .96) 100%),
    url("../img/antes-despues/1-despues.jpg") center / cover no-repeat;
  color: var(--tinta);
  border-radius: calc(var(--radius) * 2);
  margin-inline: clamp(0px, 2vw, 1.5rem);
}
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.25rem;
}
.servicio {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius);
  background: var(--blanco);
  border: 1px solid var(--gris-suave);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: transform .4s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.servicio:hover {
  transform: translateY(-5px);
  border-color: rgba(253, 99, 1, .55);
  box-shadow: var(--shadow-2);
}
.servicio__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--crema);
  margin-bottom: 1.2rem;
  transition: transform .4s var(--ease);
}
.servicio:hover .servicio__icon { transform: scale(1.06) rotate(-2deg); }
.servicio h3 { font-size: 1.2rem; color: var(--tinta); margin-bottom: .25em; }
.servicio p {
  font-size: .92rem;
  color: var(--gris);
  line-height: 1.55;
  margin: 0 0 1.3rem;
}
.servicio__cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--naranja);
  transition: color .3s var(--ease);
}
.servicio:hover .servicio__cta { color: var(--naranja-hover); }

/* Móvil: lista vertical compacta — todo visible sin deslizar */
@media (max-width: 700px) {
  .servicios__grid { gap: .8rem; }
  .servicio {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 1rem;
    align-items: start;
    padding: 1.1rem 1.2rem;
  }
  .servicio__icon {
    grid-row: 1 / span 3;
    width: 52px; height: 52px;
    border-radius: 12px;
    margin-bottom: 0;
  }
  .servicio__icon img { width: 34px; height: 34px; }
  .servicio h3, .servicio p, .servicio .servicio__cta { grid-column: 2; }
  .servicio h3 { font-size: 1.05rem; margin-bottom: .15em; }
  .servicio p { font-size: .88rem; margin-bottom: .5rem; }
  .servicio__cta { font-size: .85rem; }
}

/* --- FAQ --- */
.faq__search { margin-bottom: 2rem; }
.faq__search input {
  width: 100%;
  font: inherit;
  color: var(--tinta);
  padding: 1rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--gris-suave);
  background: var(--blanco);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq__search input:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(12, 29, 225, .12);
}
.faq__item {
  border-bottom: 1px solid var(--gris-suave);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.4rem 3rem 1.4rem 0;
  position: relative;
  transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: 50%;
  translate: 0 -50%;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--azul);
  border: 1.5px solid var(--gris-suave);
  border-radius: 50%;
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.faq__item summary:hover { color: var(--azul); }
.faq__item[open] summary { color: var(--azul); }
.faq__item[open] summary::after {
  transform: rotate(45deg);
  background: var(--azul);
  color: var(--blanco);
  border-color: var(--azul);
}
.faq__item p { color: var(--gris); padding-bottom: 1.4rem; max-width: 62ch; margin: 0; }
.faq__item[open] p { animation: faqin .4s var(--ease); }
@keyframes faqin {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.faq__empty { color: var(--gris); padding-block: 2rem; text-align: center; }

/* --- CTA final + formulario --- */
.final {
  position: relative;
  padding-block: var(--space-section);
  color: var(--blanco);
  overflow: hidden;
  overflow: clip;
}
.final__media { position: absolute; inset: 0; z-index: -1; }
.final__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.final__overlay {
  position: absolute;
  inset: 0;
  /* Azul de marca luminoso en lugar del navy oscuro */
  background: linear-gradient(112deg, rgba(12, 29, 225, .84) 0%, rgba(12, 29, 225, .62) 60%, rgba(10, 14, 51, .55) 100%);
}
.final__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.final__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.final__sub { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 42ch; }
.final__bullets li {
  padding: .45rem 0 .45rem 2rem;
  position: relative;
  color: rgba(255, 255, 255, .9);
  font-weight: 500;
}
.final__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .45rem;
  width: 1.35em; height: 1.35em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--naranja);
  color: var(--blanco);
  font-size: .8em;
  font-weight: 700;
}
.final__form {
  background: var(--blanco);
  color: var(--tinta);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-2);
}
.final__form-title { font-size: 1.45rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .45rem;
}
.field__opt { color: var(--gris); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--tinta);
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gris-suave);
  background: #FBF9F6;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(12, 29, 225, .12);
  background: var(--blanco);
}
.field input[aria-invalid="true"] { border-color: var(--naranja-oscuro); }
.field__err {
  display: block;
  color: var(--naranja-oscuro);
  font-size: .8rem;
  font-weight: 500;
  margin-top: .4rem;
}
/* El atributo hidden debe ganar al display:block del autor */
.field__err[hidden] { display: none; }
.final__form-note { font-size: .8rem; color: var(--gris); margin: .9rem 0 0; text-align: center; }
.final__form-success { text-align: center; padding-block: 1.5rem .5rem; }
.final__form-success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.final__form-success h3 { font-size: 1.55rem; }
.final__form-success p { color: var(--gris); max-width: 40ch; margin-inline: auto; }
.final__form-success .btn { margin-top: .8rem; }
.final__form-note a { color: var(--azul); }
@media (max-width: 860px) {
  .final__content { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
  background: var(--navy-2);
  color: rgba(255, 255, 255, .75);
  padding-top: clamp(4rem, 8vw, 6rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 3.5rem;
}
.footer__brand img { width: 180px; margin-bottom: 1.2rem; }
.footer__brand p { font-size: .95rem; max-width: 38ch; line-height: 1.7; }
.footer__social { display: flex; gap: .8rem; margin-top: 1.4rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--blanco);
  transition: all .3s var(--ease);
}
.footer__social a:hover {
  background: var(--naranja);
  border-color: var(--naranja);
  color: #21130A;
  transform: translateY(-3px);
}
.footer__col h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 1.2rem;
}
.footer__col h3 + ul + h3 { margin-top: 2rem; }
.footer__col li { margin-bottom: .7rem; font-size: .95rem; }
.footer__col a {
  text-decoration: none;
  transition: color .25s var(--ease);
}
.footer__col a:hover { color: var(--naranja); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}
.footer__bottom p { margin: 0; }
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Móvil: pie de página mínimo — logo, redes, contacto y copy */
@media (max-width: 560px) {
  .footer { padding-top: 3rem; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-bottom: 2rem;
    text-align: center;
  }
  .footer__grid > nav { display: none; }          /* enlaces y servicios fuera */
  .footer__brand img { margin-inline: auto; }
  .footer__brand p { display: none; }             /* la descripción larga fuera */
  .footer__social { justify-content: center; margin-top: 0; }
  .footer__col h3 { display: none; }
  .footer__col ul:last-of-type { display: none; } /* horario fuera */
  .footer__col li { margin-bottom: .5rem; }
  .footer__bottom {
    justify-content: center;
    text-align: center;
    padding-block: 1.2rem;
  }
}

/* ============ 6. FLOTANTES ============ */
.wa-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 90;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #073B1C;
  box-shadow: 0 2px 6px rgba(10, 14, 51, .16), 0 8px 20px rgba(10, 14, 51, .18);
  opacity: 0;
  transform: translateY(20px) scale(.8);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; }
.wa-float:hover { transform: scale(1.08); }
/* Anillo de pulso sutil para atraer la mirada */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
}
.wa-float.is-visible::before { animation: wapulse 2.6s var(--ease) infinite; }
@keyframes wapulse {
  0% { transform: scale(1); opacity: .4; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

/* Burbuja de invitación junto al botón de WhatsApp */
.wa-bubble {
  position: fixed;
  right: 1.3rem;
  bottom: calc(1.3rem + 58px + 14px);
  z-index: 90;
  max-width: 250px;
  background: var(--blanco);
  color: var(--tinta);
  border-radius: 14px 14px 4px 14px;
  box-shadow: var(--shadow-2);
  padding: .85rem 2.4rem .85rem 1.1rem;
  font-size: .88rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px) scale(.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.wa-bubble.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble p { margin: 0; }
.wa-bubble strong { font-family: var(--font-display); }
.wa-bubble__close {
  position: absolute;
  top: .35rem;
  right: .45rem;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gris);
  font-size: .75rem;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.wa-bubble__close:hover { background: var(--crema); color: var(--tinta); }

/* Pastilla flotante de cotización (solo móvil, al pasar el hero) */
.sticky-cta {
  position: fixed;
  inset: auto 1rem calc(1rem + env(safe-area-inset-bottom));
  z-index: 85;
  transform: translateY(150%);
  transition: transform .45s var(--ease);
  display: none;
}
.sticky-cta .btn {
  width: 100%;
  padding-block: 1.05em;
  font-size: 1.08rem;
  box-shadow: 0 4px 12px rgba(10, 14, 51, .2),
              0 18px 44px rgba(10, 14, 51, .3);
}
.sticky-cta.is-visible { transform: none; }

/* Cuando la pastilla está activa, el botón flotante de WhatsApp se retira */
.wa-float.is-oculto,
.wa-bubble.is-oculto {
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
}

@media (max-width: 700px) {
  .sticky-cta { display: block; }
}

/* ============ 6.5 RENDIMIENTO ============ */
/* El navegador no pinta las secciones lejanas hasta acercarse a ellas */
.espacios, .servicios, .proceso, .historias, .numeros, .porque, .faq, .final {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ============ 7. MOTION & ACCESIBILIDAD ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Sin JS: todo visible */
.no-js [data-reveal],
.no-js [data-hero-item] { opacity: 1; transform: none; animation: none; }
.no-js .proceso__step { opacity: 1; }
.no-js .manifiesto__text .w { opacity: 1; }
.no-js .sticky-cta, .no-js .wa-float { transform: none; opacity: 1; }

/* ============ 8. PÁGINAS SECUNDARIAS (privacidad / 404) ============ */
.legal__header { border-bottom: 1px solid var(--gris-suave); }
.legal__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.2rem;
}
.legal__header img { width: 170px; }
.legal__back {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  color: var(--azul);
}
.legal__back:hover { text-decoration: underline; }
.legal__main { padding-block: clamp(3rem, 7vw, 5rem); }
.legal__main h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal__updated { color: var(--gris); font-size: .9rem; margin-bottom: 2.5rem; }
.legal__main h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal__main p, .legal__main li { color: var(--gris); max-width: 65ch; }
.legal__main ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.legal__main a { color: var(--azul); }
.legal__cta { margin-top: 3rem; }
.legal__footer {
  border-top: 1px solid var(--gris-suave);
  padding-block: 1.6rem;
  font-size: .85rem;
  color: var(--gris);
}
.legal__footer p { margin: 0; }
.legal__footer a { color: var(--azul); text-decoration: none; }

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 4rem;
}
.notfound__code {
  font-family: var(--font-titles);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  color: var(--azul);
  line-height: 1;
  margin: 2rem 0 .5rem;
  letter-spacing: -0.02em;
}
.notfound h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.notfound__sub { color: var(--gris); margin-bottom: 2rem; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Pantallas grandes: el layout respira y aprovecha el ancho */
@media (min-width: 1900px) {
  :root {
    --container: 1400px;
    --wide: 1560px;
    --space-section: clamp(7rem, 9vw, 11rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], [data-hero-item] { opacity: 1; transform: none; }
  .proceso__step { opacity: 1; transform: none; }
  .manifiesto__text .w { opacity: 1; }
  .hero__rotator-track span { transform: none; }
}
