/* ==========================================================================
   Artea Development Spain — sistema visual
   Colores corporativos tomados de la web actual:
   azul #0177BD · carbón #54595F · tinta #161922 · blanco roto #F9F9F9
   ========================================================================== */

/* ---------- Fuentes alojadas en la propia web (más rápido y sin conexión a Google: RGPD) ---------- */

@font-face {
  font-family: "Barlow";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #0177bd;
  --blue-600: #01649f;
  --blue-700: #014f7e;
  --blue-200: #9fd0ef;
  --blue-100: #d6e9f6;
  --blue-50: #eef6fc;
  --ink: #161922;
  --ink-2: #22262f;
  --charcoal: #54595f;
  --text: #54595f;
  --meta: #6b7078;
  --line: #e3e6ea;
  --field: #d5d9de;
  --paper: #f9f9f9;
  --white: #ffffff;
  --whatsapp: #25d366;

  /* Tipografía: Barlow (texto) y Barlow Semi Condensed (títulos y etiquetas),
     de la misma familia de rótulos técnicos que el «Development Spain» del logotipo */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

  /* Solo cinco tamaños en toda la web */
  --fs-display: clamp(2.6rem, 5.2vw, 4.5rem);
  --fs-h2: clamp(2rem, 3.4vw, 3rem);
  --fs-h3: 1.5rem;
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;

  /* Curvas: ease-out fuerte para entradas, ease-in-out para movimiento en pantalla */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);  /* easeOutCubic: suave y sin cola larga, para el zoom de imágenes */

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(56px, 7vw, 104px);
  --slant: clamp(28px, 5vw, 72px);
  --bar-h: 68px;

  --shadow-sm: 0 1px 2px rgba(22, 25, 34, 0.06), 0 2px 8px rgba(22, 25, 34, 0.05);
  --shadow-lg: 0 30px 60px -24px rgba(22, 25, 34, 0.28), 0 4px 16px rgba(22, 25, 34, 0.06);
}

/* ---------- 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(--bar-h) + 28px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}


:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Tipografía de sección ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  flex: none;
  background: currentColor;
}
.eyebrow--light { color: var(--blue-200); }

.h-display {
  font-family: var(--font-head);
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.h-1 { font-size: var(--fs-display); letter-spacing: -0.015em; line-height: 1.02; }
.h-2 { font-size: var(--fs-h2); }
.h-3 { font-size: var(--fs-h3); line-height: 1.25; }

.lead {
  color: var(--ink-2);
  font-weight: 500;
}

.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn),
.link {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(1, 119, 189, 0.35);
  transition: text-decoration-color 200ms ease, color 200ms ease;
}
.prose a:not(.btn):hover,
.link:hover { color: var(--blue-700); text-decoration-color: currentColor; }

.text-blue { color: var(--blue); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 52px;
  padding: 0 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform 250ms var(--ease-out); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn--primary:hover { background: var(--blue-600); }
  .btn--dark:hover { background: var(--blue); }
  .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
  .btn--light:hover { background: var(--ink); color: var(--white); }
}

/* ==========================================================================
   Cabecera: transparente sobre la foto; al hacer scroll, barra flotante de cristal
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: 12px;
  transition: transform 300ms var(--ease-out);
  /* Sin view-transition-name: crearía una «raíz de fondo» y el desenfoque del cristal dejaría de funcionar */
}
.site-header.is-hidden { transform: translate3d(0, -120%, 0); }

.bar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--bar-h);
  padding: 0 10px 0 18px;
  border-radius: 16px;
}
/* El cristal va en un pseudo-elemento: un backdrop-filter en la propia barra
   la convertiría en el contenedor del panel fijo del menú móvil */
.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 32px -14px rgba(22, 25, 34, 0.3);
  opacity: 0;
  transition: opacity 250ms ease;
}
.site-header.is-solid .bar::before { opacity: 1; }

.brand { position: relative; display: block; flex: none; }
.brand img { width: auto; height: 42px; transition: opacity 250ms ease; }
.brand__dark { position: absolute; top: 0; left: 0; opacity: 0; }
.site-header.is-solid .brand__light { opacity: 0; }
.site-header.is-solid .brand__dark { opacity: 1; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}
.nav__link,
.nav__phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 200ms ease, opacity 200ms ease;
}
.nav__phone { letter-spacing: 0.04em; text-transform: none; }
.nav__phone .icon { width: 15px; height: 15px; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 300ms var(--ease-out);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-header.is-solid .nav__link,
.site-header.is-solid .nav__phone { color: var(--ink); }
.site-header.is-solid .nav__link[aria-current="page"] { color: var(--blue-700); } /* sobre el cristal, 4,5:1 de contraste */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }
  .nav__phone:hover { opacity: 0.75; }
  .site-header.is-solid .nav__link:hover { color: var(--blue); }
}
.nav__cta { min-height: 46px; padding: 0 1.4em; }

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color 200ms ease;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 250ms var(--ease-out), opacity 150ms ease, background-color 200ms ease;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.site-header.is-solid .menu-toggle { border-color: var(--line); }
.site-header.is-solid .menu-toggle span { background: var(--ink); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__contact { display: none; }
@media (max-width: 1180px) { .nav__phone-item { display: none; } }

@media (max-width: 1000px) {
  :root { --bar-h: 64px; }
  .brand img { height: 38px; }
  .menu-toggle { display: block; }

  /* Panel del menú: pantalla completa, oscuro, detrás del logotipo y del botón */
  .nav {
    position: fixed;
    inset: 0;
    z-index: -2;
    padding: calc(var(--bar-h) + 40px) var(--gutter) 40px;
    background: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms var(--ease-out), visibility 0s linear 250ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out);
  }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: 40ms; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: 80ms; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: 120ms; }
  .nav.is-open .nav__list li:nth-child(6) { transition-delay: 160ms; }
  .nav__link {
    display: block;
    padding: 18px 0;
    color: var(--white) !important;
    font-size: var(--fs-h3);
    letter-spacing: 0.04em;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--blue-200) !important; }
  .nav__list li:last-child { border-bottom: 0; padding-top: 28px; }
  .nav__cta { width: 100%; min-height: 54px; }
  .nav__contact {
    display: grid;
    gap: 12px;
    margin-top: 32px;
    color: rgba(255, 255, 255, 0.75);
  }
  .nav__contact a { display: inline-flex; align-items: center; gap: 10px; }
  .nav__contact .icon { color: var(--blue-200); }
  html.menu-open { overflow: hidden; }
}

/* ==========================================================================
   Héroe principal (inicio) y cabeceras de página
   ========================================================================== */

.hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.hero { min-height: max(640px, min(100svh, 920px)); }
.page-hero { min-height: clamp(440px, 60svh, 580px); }
.page-hero--short { min-height: clamp(400px, 50svh, 500px); }
.page-hero--compact { min-height: clamp(340px, 44svh, 420px); }

.hero__slide,
.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  will-change: transform;
  background-color: var(--ink);
}
/* Toda foto que se escala lleva un color de fondo (aquí, en .card img y en el zoom al pasar el ratón).
   Si la capa animada es solo una imagen, Chrome la envía tal cual a la tarjeta gráfica y la reduce sin suavizar:
   sus bordes se pegan al píxel y el zoom avanza a saltitos. Con fondo, la dibuja a su tamaño en pantalla
   y el movimiento es continuo (medido fotograma a fotograma: desvío máximo de 0,13 px a 0,04 px). */

/* Fundido entre fotos y zoom lento tipo Ken Burns, siempre en la GPU.
   La foto saliente (is-leaving) mantiene su zoom mientras se desvanece: si lo perdiera,
   volvería de golpe a su tamaño inicial (unos 40 px por borde) en mitad del fundido. */
.hero__slide {
  opacity: 0;
  transform: scale3d(1, 1, 1);
  transition: opacity 1600ms var(--ease-in-out);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active,
.hero__slide.is-leaving { animation: ken-burns 9s linear forwards; }
.page-hero__img { animation: ken-burns 16s linear forwards; }
@keyframes ken-burns {
  from { transform: scale3d(1, 1, 1); }
  to { transform: scale3d(1.08, 1.08, 1); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 25, 34, 0.65) 0%, rgba(22, 25, 34, 0) 26%),
    linear-gradient(90deg, rgba(22, 25, 34, 0.86) 0%, rgba(22, 25, 34, 0.5) 50%, rgba(22, 25, 34, 0.12) 100%),
    linear-gradient(0deg, rgba(1, 50, 80, 0.7) 0%, rgba(1, 50, 80, 0) 45%);
}
.page-hero--compact::after { display: none; }
.page-hero--compact {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(120deg, var(--blue-700) 0%, var(--ink) 65%);
  background-size: 56px 56px, 56px 56px, auto;
}

.hero__inner,
.page-hero__inner { position: relative; z-index: 1; }
.hero__inner {
  display: grid;
  gap: clamp(40px, 6vh, 72px);
  padding-block: calc(var(--bar-h) + 96px) calc(var(--slant) + 32px);
}
.page-hero__inner { padding-block: calc(var(--bar-h) + 72px) calc(var(--slant) + 44px); }

.hero__content { max-width: none; }
.hero__title,
.page-hero__title { color: var(--white); max-width: 920px; }
.hero__title { margin-bottom: 22px; }
.hero__accent { color: var(--blue-200); }
@media (max-width: 560px) { .hero .eyebrow { letter-spacing: 0.06em; } }
.hero__text {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.page-hero__text {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
}
.page-hero__text strong { color: var(--white); font-weight: 600; }
.page-hero__quote {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-h3);
  font-style: italic;
  font-weight: 400;
}

/* Botón de cristal sobre foto */
.btn--glass {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--white);
}
@media (hover: hover) and (pointer: fine) {
  .btn--glass:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
}

/* Miga de pan en una píldora de cristal */
.crumbs {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-small);
}
.crumbs a { color: var(--white); transition: color 200ms ease; }
.crumbs a:hover { color: var(--blue-200); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* Cifras clave en una franja de cristal */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.hero__fact { padding: 22px 26px; }
.hero__fact + .hero__fact { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hero__fact strong {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
}
.hero__fact span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-small);
  line-height: 1.4;
}
@media (max-width: 860px) {
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__fact { padding: 16px 18px; }
  .hero__fact:nth-child(3) { border-left: 0; }
  .hero__fact:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

/* Entrada del título palabra a palabra: el desenfoque une los fotogramas */
.w {
  display: inline-block;
  animation: word-in 800ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 60ms + 100ms);
}
@keyframes word-in {
  from { opacity: 0; transform: translate3d(0, 0.3em, 0); }
  to { opacity: 1; transform: none; }
}
/* El desenfoque solo en escritorio: en móvil cuesta más pintarlo que lo que aporta */
@media (min-width: 861px) and (hover: hover) {
  .w { animation-name: word-in-blur; }
  @keyframes word-in-blur {
    from { opacity: 0; filter: blur(8px); transform: translate3d(0, 0.3em, 0); }
    to { opacity: 1; filter: blur(0); transform: none; }
  }
}

/* Resto del contenido del héroe: entrada escalonada (CSS, fuera del hilo principal) */
.hero-anim > * {
  animation: rise-in 800ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms + 150ms);
}
.hero-anim > [data-words] { animation: none; }
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

/* Controles del pase de imágenes */
.hero__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.hero__dot {
  position: relative;
  width: 44px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
}
.hero__dot::before,
.hero__dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 2px;
  border-radius: 2px;
}
.hero__dot::before { background: rgba(255, 255, 255, 0.3); }
.hero__dot::after {
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero__dot.is-active::after { animation: dot-progress var(--slide-ms, 6500ms) linear forwards; }
.hero__controls.is-paused .hero__dot.is-active::after { animation: none; transform: scaleX(1); }
@keyframes dot-progress { to { transform: scaleX(1); } }
.hero__pause {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: none;
  color: var(--white);
  transition: background-color 200ms ease, border-color 200ms ease;
}
.hero__pause:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.hero__pause .icon { width: 14px; height: 14px; }
.hero__pause .i-play { display: none; }
.hero__controls.is-paused .i-play { display: block; }
.hero__controls.is-paused .i-pause { display: none; }
@media (max-width: 560px) {
  .hero__controls { width: 100%; margin: 8px 0 0; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */

.section { position: relative; padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--tight-top { padding-top: calc(var(--section) * 0.5); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .h-2 + p { margin-top: 20px; }

/* Bloque texto + imagen */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__text .h-2 { margin-bottom: 24px; }
.split__text .btn { margin-top: 32px; }
.split + .split { margin-top: var(--section); }

.split__num {
  display: block;
  margin-bottom: 8px;
  color: transparent;
  font-family: var(--font-head);
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--blue-100);
}

/* Editorial: título a la izquierda, texto a la derecha */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 860px) {
  .split,
  .editorial { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Imagen con marco y zoom ---------- */

.media { position: relative; }
.media__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--line);
  aspect-ratio: var(--ratio, 4 / 3);
}
.media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__badge {
  position: absolute;
  left: -20px;
  bottom: 32px;
  z-index: 2;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  line-height: 1.1;
}
.media__badge small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.media__badge strong { font-family: var(--font-head); font-size: var(--fs-h2); font-weight: 600; }

.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.media-pair .media:nth-child(2) { margin-top: 56px; }

@media (max-width: 560px) {
  .media__badge { left: 16px; bottom: 16px; padding: 16px 20px; }
}

/* ---------- Cita en cristal sobre una imagen ---------- */

.quote-card {
  position: absolute;
  left: clamp(14px, 2.5vw, 28px);
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  z-index: 2;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(22, 25, 34, 0.58);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  color: rgba(255, 255, 255, 0.9);
}
.quote-card p { font-weight: 500; line-height: 1.5; }
.quote-card strong { color: var(--blue-200); font-weight: 600; }
.quote-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.quote-card a .icon { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .quote-card a:hover .icon { transform: translateX(3px); } }
@media (max-width: 560px) {
  .quote-card { position: relative; inset: auto; margin-top: 12px; background: var(--ink); }
}

/* ---------- Banda azul con frase destacada ---------- */

.band {
  position: relative;
  z-index: 1;
  margin-block: calc(-1 * var(--slant));
  padding-block: calc(var(--section) * 0.85 + var(--slant));
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(120deg, var(--blue) 0%, var(--blue-700) 100%);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--white);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.band--ink {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(120deg, var(--ink-2) 0%, var(--ink) 100%);
}
.band__text {
  max-width: 1040px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.band__text strong { color: var(--blue-100); font-weight: 600; }
.band--ink .band__text strong { color: var(--blue-200); }
.band .eyebrow { color: rgba(255, 255, 255, 0.85); }
.band--ink .eyebrow { color: var(--blue-200); }
.band__body {
  max-width: 820px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.88);
}
.band__body > * + * { margin-top: 1em; }
.band__body strong { color: var(--white); font-weight: 600; }
.band .btn { margin-top: 40px; }

/* ---------- Cinta de sectores ---------- */

.marquee {
  margin-top: clamp(36px, 5vw, 56px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__list {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}
.marquee__list li {
  display: flex;
  align-items: center;
  gap: 36px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 500;
  white-space: nowrap;
}
.marquee__list li::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--blue-200);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

/* ---------- Tarjetas de servicio ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}
.card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--ink); /* evita los saltitos del zoom (ver .page-hero__img) */
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 25, 34, 0) 20%, rgba(22, 25, 34, 0.55) 55%, rgba(22, 25, 34, 0.94) 100%);
  transition: opacity 300ms ease;
}
.card__body { padding: 30px; }
.card__index {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-200);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
}
.card__title {
  color: var(--white);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card__more .icon { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__more .icon { transform: translateX(4px); }
}
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 340px; }
}

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  gap: 20px;
}
.bento .card { min-height: 0; }
.bento .card:first-child { grid-row: span 2; }
.bento .card:first-child .card__title { font-size: var(--fs-h2); }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento .card { min-height: 300px; }
  .bento .card:first-child { grid-row: auto; min-height: 380px; }
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  max-width: none;
}
.section-head--row .h-2 { margin: 0; }

/* ---------- Valores: interlocutor único / escucha / RSE ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.value {
  position: relative;
  display: block;
  padding: 40px 34px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition:
    transform 300ms var(--ease-out),
    box-shadow 300ms ease,
    border-color 200ms ease;
}
.value__num {
  position: absolute;
  top: 26px;
  right: 30px;
  color: var(--meta);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.value__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  transition: background-color 200ms ease, color 200ms ease;
}
.value__icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.value__title {
  color: var(--ink);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.value__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.value__more .icon { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .value:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
  }
  .value:hover .value__icon { background: var(--blue); color: var(--white); }
  .value:hover .value__more .icon { transform: translateX(4px); }
}
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
}

/* ---------- Listas ---------- */

.checks { margin-top: 28px; border-top: 1px solid var(--line); }
.checks li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.checks__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
}
.checks__icon .icon { width: 15px; height: 15px; stroke-width: 2.5; }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}
.tile__num { color: var(--blue); font-family: var(--font-head); font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.06em; }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Galería ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(130px, 17vw, 230px);
  gap: 16px;
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--line);
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 79, 126, 0.35);
  opacity: 0;
  transition: opacity 300ms ease;
}
.gallery__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gallery__item:hover::after { opacity: 1; }
  .gallery__item:hover .gallery__zoom { opacity: 1; transform: none; }
}
.g-1 { grid-column: 1 / 8; grid-row: span 2; }
.g-2 { grid-column: 8 / 13; }
.g-3 { grid-column: 8 / 13; }
.g-4 { grid-column: 1 / 5; grid-row: span 2; }
.g-5 { grid-column: 5 / 9; grid-row: span 2; }
.g-6 { grid-column: 9 / 13; grid-row: span 2; }
.g-7 { grid-column: 1 / 13; grid-row: span 2; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; gap: 10px; }
  .gallery > * { grid-column: auto !important; grid-row: auto !important; }
  .g-1 { grid-column: 1 / 3 !important; }
}

/* ---------- Visor (lightbox) ---------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 14, 20, 0.94);
  color: var(--white);
  opacity: 1;
  transition: opacity 250ms var(--ease-out);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 16px;
  transition: transform 250ms var(--ease-out), opacity 200ms ease;
}
.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 80dvh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  transition: opacity 200ms ease;
}
.lightbox__count { color: rgba(255, 255, 255, 0.7); font-size: var(--fs-small); letter-spacing: 0.1em; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: background-color 200ms ease, border-color 200ms ease, transform 140ms var(--ease-out);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }
.lightbox__btn:active { transform: scale(0.95); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -26px; }
.lightbox__prev:active,
.lightbox__next:active { transform: scale(0.95); }
@starting-style {
  .lightbox[open] { opacity: 0; }
  .lightbox[open] .lightbox__figure { transform: scale(0.96); }
}
.lightbox[data-closing] { opacity: 0; }
.lightbox[data-closing] .lightbox__figure { transform: scale(0.97); }
@media (max-width: 720px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact__intro .h-2 { margin-bottom: 18px; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line); }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
}
.contact-list__icon .icon { width: 18px; height: 18px; }
.contact-list a,
.contact-list span { color: var(--ink-2); overflow-wrap: anywhere; }
.contact-list a { transition: color 200ms ease; }
.contact-list a:hover { color: var(--blue); }
.contact-list__group { display: grid; gap: 2px; }
.contact-list small {
  display: block;
  color: var(--meta);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Formulario: mismo diseño que el de la web actual (panel azul claro, campos blancos, botón centrado) */
.cf__title {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: var(--fs-h3);
  text-align: center;
}
.cf__panel {
  position: relative;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  background: #cfe0ef;
}
.cf__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}
.cf__grid input,
.cf__grid textarea {
  width: 100%;
  height: 51px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-body);
  transition: box-shadow 200ms ease;
}
.cf__grid textarea {
  grid-column: 1 / -1;
  height: 230px;
  padding: 14px 18px;
  resize: vertical;
  line-height: 1.5;
}
.cf__grid input::placeholder,
.cf__grid textarea::placeholder { color: #a9a4ab; }
.cf__grid input:focus,
.cf__grid textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(1, 119, 189, 0.45); }
.cf__grid input:user-invalid,
.cf__grid textarea:user-invalid { box-shadow: 0 0 0 2px #c62828; }
.cf__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.cf__check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
}
.cf__submit {
  display: flex;
  width: 75%;
  min-height: 46px;
  margin: 16px auto 0;
}
.form-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--blue-700);
  font-size: var(--fs-small);
  font-weight: 500;
  text-align: center;
}
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cf__panel { padding: 24px 16px; }
  .cf__grid { grid-template-columns: 1fr; }
  .cf__submit { width: 100%; }
}

.map {
  margin-top: clamp(48px, 6vw, 80px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--line);
  aspect-ratio: 21 / 8;
  min-height: 320px;
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.25); }

/* ---------- Páginas legales ---------- */

.legal { max-width: 800px; }
.legal h2 { margin: 2em 0 0.6em; font-size: var(--fs-h3); }
.legal h2:first-child { margin-top: 0; }
.legal ul { display: grid; gap: 8px; margin-top: 1em; padding-left: 0; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 8px;
  height: 2px;
  background: var(--blue);
}
.legal a { overflow-wrap: anywhere; }

/* ==========================================================================
   Pie de página
   ========================================================================== */

.footer {
  position: relative;
  margin-top: calc(-1 * var(--slant));
  padding-top: calc(var(--slant) + clamp(64px, 8vw, 96px));
  background: var(--ink);
  color: #aeb3ba;
  font-size: var(--fs-small);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.footer__logo { width: auto; height: 50px; margin-bottom: 24px; }
.footer__tagline { max-width: 340px; margin-bottom: 24px; line-height: 1.6; }
.footer__address { font-style: normal; line-height: 1.8; }
.footer__address a { color: var(--white); transition: color 200ms ease; }
.footer__address a:hover { color: var(--blue-200); }
.footer__title {
  margin-bottom: 20px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__links { display: grid; gap: 12px; }
.footer__links a { line-height: 1.45; transition: color 200ms ease; }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #aeb3ba;
  font-size: var(--fs-small);
  transition: color 200ms ease;
}
.to-top:hover { color: var(--white); }
.to-top .icon { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .to-top:hover .icon { transform: translateY(-3px); } }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp ---------- */

.wa {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45;
}
.wa__btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 140ms var(--ease-out);
}
.wa__btn:active { transform: scale(0.95); }
.wa__btn svg { width: 30px; height: 30px; fill: currentColor; }
.wa__card {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(300px, calc(100vw - 36px));
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    visibility 0s linear 200ms;
}
.wa.is-open .wa__card {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.wa__head { padding: 18px 20px; background: #075e54; color: var(--white); }
.wa__hello { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 600; }
.wa__body { padding: 18px 20px 20px; color: var(--ink-2); }
.wa__body .btn { width: 100%; margin-top: 16px; background: var(--whatsapp); color: var(--white); min-height: 46px; }
.wa__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.wa__close .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Animaciones al hacer scroll
   Solo se ocultan los elementos si hay JS (clase .js en <html>).
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Zoom in: la imagen se acerca (92 % → 100 %) mientras aparece. Solo transform y opacity.
   Sin will-change: con él, Chrome dibuja el marco a la escala inicial y su borde oscila hasta 0,18 px. */
.js [data-reveal="zoom"] {
  opacity: 0;
  transform: scale3d(0.92, 0.92, 1);
  transition:
    opacity 900ms var(--ease-out-cubic),
    transform 1300ms var(--ease-out-cubic);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal="zoom"].is-visible { opacity: 1; transform: none; }

/* Después, zoom suave al pasar el ratón */
@media (hover: hover) and (pointer: fine) {
  /* Sin will-change: estas capas fijas harían oscilar el borde de los marcos que entran después */
  .js [data-reveal="zoom"].is-done img {
    transition: transform 700ms var(--ease-out-cubic);
    background-color: var(--line); /* evita los saltitos (ver .page-hero__img) */
  }
  .js [data-reveal="zoom"].is-done:hover img,
  .js .card:hover img { transform: scale3d(1.05, 1.05, 1); }
}

/* Frases grandes: palabra a palabra */
.split-word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  vertical-align: top;
}
.split-word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 800ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.is-visible .split-word > span { transform: none; }
.js [data-split] { opacity: 1; transform: none; }

/* ---------- Transición entre páginas (navegadores compatibles) ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: var(--ease-out);
}

/* ---------- Movimiento reducido: menos y más suave, no cero ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide.is-active,
  .hero__slide.is-leaving,
  .page-hero__img { animation: none; }
  .hero-anim > *,
  .w { animation: fade-in 400ms ease both; filter: none; }
  .site-header { transition: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; animation: none; }
  .marquee__list { flex-wrap: wrap; row-gap: 12px; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .js [data-reveal],
  .js [data-reveal="zoom"] {
    transform: none;
    transition: opacity 400ms ease;
  }
  .split-word > span { transform: none; transition: none; }
  .hero__dot.is-active::after { animation: none; transform: scaleX(1); }
  .nav__list li { transform: none !important; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* Con el menú móvil abierto, el botón de WhatsApp no tapa el panel */
html.menu-open .wa { visibility: hidden; }

/* ---------- Transparencia reducida: superficies sólidas ---------- */

@media (prefers-reduced-transparency: reduce) {
  .bar::before { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__facts, .crumbs, .btn--glass, .quote-card {
    background: rgba(22, 25, 34, 0.92);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
