/* =========================================================
   Caniggia Football Agency – Estilos
   Identidad: negro #0F0F11 · blanco #FFFFFF · azul CFA #4B5985
   Tipografías: Futura (títulos y menú) · Nexa (textos de lectura)
   ========================================================= */

/* ---------- Fuentes de marca ----------
   Futura y Nexa son tipografías con licencia. Si la agencia tiene los
   archivos, colocarlos en assests/fonts/ con estos nombres y se usarán
   automáticamente. Si no están, se usan Jost (≈ Futura) y Mulish (≈ Nexa). */
@font-face {
  font-family: "Futura CFA";
  src: url("../assests/fonts/Futura-Book.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Futura CFA";
  src: url("../assests/fonts/Futura-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Futura CFA";
  src: url("../assests/fonts/Futura-Demibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Futura CFA";
  src: url("../assests/fonts/Futura-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nexa CFA";
  src: url("../assests/fonts/Nexa-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nexa CFA";
  src: url("../assests/fonts/Nexa-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --black: #0F0F11;
  --black-pure: #000000;
  --black-2: #17171B;
  --white: #FFFFFF;
  --blue: #4B5985;
  --blue-light: #6E7DAD;
  --blue-dark: #39446A;
  --celeste: #75AADB; /* celeste de la camiseta argentina */
  --gray: #A4A8B5;
  --gray-light: #F3F4F7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(15, 15, 17, 0.1);

  /* Mismas letras en todos los equipos: no se usan "Futura" ni "Nexa" instaladas en la computadora
     (Mac, iPhone y iPad traen Futura y la mostraban con otras medidas, por ej. CANIGGIA salía cortada).
     "Futura CFA" y "Nexa CFA" solo se usan si se suben los archivos con licencia a assests/fonts/. */
  --font-title: "Futura CFA", "Jost", "Century Gothic", sans-serif;
  --font-text: "Nexa CFA", "Mulish", "Segoe UI", sans-serif;

  --container: 1240px;
  --header-h: 64px;
  --edge: clamp(12px, 1.6vw, 28px); /* distancia de la hamburguesa y del menú al borde */
  --radius: 0;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--black-pure);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* en iPhone evita que la página se mueva de costado sin romper las partes fijas */
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================================
   ESTILOS DE TEXTO (según maqueta)
   Título: Futura Bold, mayúsculas, centrado en secciones
   Bajada: Nexa Regular, 2 líneas
   Botón: azul CFA, texto blanco en mayúsculas
   ========================================================= */
.title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.title--dark {
  color: var(--black);
}

.subtitle {
  font-family: var(--font-text);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 1.4rem;
}

.subtitle--dark {
  color: #4A4D58;
}

.eyebrow {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-light);
}

.btn--block {
  width: 100%;
}

.br-desktop {
  display: inline;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--black-pure);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* separa la barra de las secciones negras */
  z-index: 100;
  transition: box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* La barra ocupa todo el ancho: hamburguesa a la izquierda, logo justo al medio
   y "Our services / Let's talk" a la derecha, a la misma distancia del borde
   que las rayitas de la hamburguesa (--edge + los 10px de aire del botón). */
.header .header__inner {
  position: relative;
  height: 100%;
  max-width: none;
  padding-left: calc(var(--edge) + 10px);
  padding-right: calc(var(--edge) + 10px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Isotipo centrado */
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand {
  display: block;
  line-height: 0;
  transition: transform 0.3s var(--ease);
}

.brand:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.brand__logo {
  height: 46px;
  width: 46px;
  object-fit: contain;
}

.footer__logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Menú hamburguesa izquierdo + panel de secciones ---------- */
.side-toggle {
  position: absolute;
  left: var(--edge);
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: 0;
  cursor: pointer;
}

.side-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.side-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.side-toggle.is-open span:nth-child(2) { opacity: 0; }
.side-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Lista de secciones: baja debajo del botón, sin panel de fondo.
   mix-blend-mode invierte el color: blanco sobre fondos oscuros, negro sobre claros. */
.side-menu {
  position: fixed;
  top: calc(var(--header-h) + clamp(0.8rem, 2.5vh, 1.6rem));
  left: var(--edge);
  z-index: 99;
  padding-left: 10px; /* alineado con las rayitas del botón */
  mix-blend-mode: difference;
  visibility: hidden;
  transition: visibility 0s linear 0.5s; /* se oculta cuando terminan de irse los nombres */
}

.side-menu.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* los nombres bajan uno detrás de otro */
.side-menu li {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  transition-delay: calc((3 - var(--n)) * 0.04s); /* al cerrar, suben en orden inverso */
}

.side-menu.is-open li {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--n) * 0.06s);
}

.side-menu a {
  display: inline-block;
  padding: 0.12rem 0;
  font-family: var(--font-title);
  font-size: clamp(0.7rem, 0.78vw, 0.8rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.25s;
}

.side-menu a:hover {
  opacity: 0.7;
}

/* solo la sección en la que se está va en bold */
.side-menu a.is-current {
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  background: var(--black-pure);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Foto a ancho completo: la imagen ya trae el espacio negro a la izquierda para el título */
.hero__media {
  position: absolute;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  /* La foto se define en hero.json (main.js la pasa en --hero-img). Esta es la de respaldo. */
  background: var(--hero-img, url("../assests/img/hero este.jpg")) right center / cover no-repeat, var(--black-pure);
  animation: heroIn 1.4s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3rem, 9vh, 6rem);
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.12;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.hero__title span {
  font-weight: 300;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero__title span:nth-child(2) {
  animation-delay: 0.1s;
}

.hero__title span:nth-child(3) {
  animation-delay: 0.2s;
}

/* Última palabra destacada */
.hero__title strong {
  font-weight: 700;
  animation: fadeUp 0.9s 0.3s var(--ease) both;
}

/* Líneas marcadas como "grande" en hero.json (por defecto TALENT y SPEED) */
.hero__title .hero__big {
  font-size: 1.6em;
  line-height: 1;
}

/* Pantallas bajas (celular acostado): título más chico para que no toque la barra */
@media (max-height: 560px) {
  .hero__title {
    font-size: clamp(1.6rem, 7vh, 2.4rem);
    margin-bottom: 1.2rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn {
  animation: fadeUp 0.9s 0.4s var(--ease) both;
}

.hero .btn--ghost {
  animation-delay: 0.5s;
}

/* Botón secundario: transparente con borde blanco */
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Quiénes somos (versión corta) ---------- */
.who {
  position: relative;
  overflow: hidden;
  background: var(--black-pure);
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

/* Fondo: pizarra táctica dibujada en tiza, a la derecha y suave para no competir con el texto */
.who::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assests/img/pizarra-tactica.svg") right center / auto 100% no-repeat;
  opacity: 0.4;
  pointer-events: none;
}

/* en celular el texto ocupa todo el ancho: pizarra más suave */
@media (max-width: 640px) {
  .who::before {
    opacity: 0.25;
  }
}

/* mismo margen izquierdo que "Founder" y CANIGGIA */
.who__inner {
  position: relative;
  z-index: 1;
  padding: 0 6vw;
}

/* Título gigante, a la izquierda, en dos líneas (ref. "THE LEADING / FOOTBALL AGENCY") */
.who__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.who__title span {
  display: block;
}

.who__text {
  max-width: 62ch;
  margin-top: clamp(1.8rem, 4vw, 3rem);
}

.who__text p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.who__text p + p {
  margin-top: 1.2rem;
}

/* ---------- About · How we work ---------- */
.about {
  background: var(--blue);
  padding-top: clamp(4rem, 9vw, 6.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem); /* borde azul debajo de las tarjetas */
}

.about__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 6px;
}

.card {
  position: relative;
  aspect-ratio: 4 / 5; /* igual que las imágenes (1080 × 1350) */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--blue-dark);
}

/* Imagen de la tarjeta (ya viene editada: sin filtros ni capas encima) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
}

.card--1 { --card-img: url("../assests/img/assessment.jpg"); }
.card--2 { --card-img: url("../assests/img/career_plan.jpg"); }
.card--3 { --card-img: url("../assests/img/execution.jpg"); }
.card--4 { --card-img: url("../assests/img/follow-up.jpg"); }

/* Degradé negro debajo del texto para que se lea (la imagen no se modifica) */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

/* Número chico, justo encima del título */
.card__num {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1;
}

.card__body {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.4rem 1.8rem;
}

.card__title {
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.card__text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 30ch;
  min-height: calc(3 * 1.45em); /* títulos alineados aunque la bajada sea más corta */
}

/* ---------- Claudio Caniggia · scroll horizontal ---------- */
.journey {
  /* espacio que se reserva abajo para la palabra CANIGGIA completa (alto de la palabra + aire) */
  --word-space: calc(9.3vw + 2.5rem);
  position: relative;
  background: var(--black-pure);
}

.journey__sticky {
  position: relative;
  overflow: hidden;
}

/* Video de fondo: queda fijo detrás mientras el contenido se desplaza */
.journey__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.journey__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Capa oscura para que el texto blanco se lea sobre el video */
.journey__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.journey__track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  will-change: transform;
}

.journey__panel {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.journey__intro {
  width: 100vw;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 7vh, 6rem) 6vw var(--word-space);
}

.founder {
  flex: 0 0 auto;
}

.founder .eyebrow {
  color: var(--white);
  letter-spacing: 0.25em;
}

.founder__photos {
  position: relative;
  width: clamp(240px, min(34vw, 55vh), 480px); /* se achica en pantallas bajas */
  aspect-ratio: 5 / 4;
  background: linear-gradient(160deg, #26262c, var(--blue-dark));
  overflow: hidden;
}

.founder__photos::before {
  content: "CC";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.12);
}

.founder__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.founder__photo.is-active {
  opacity: 1;
}

.founder__photo--1 { background-image: url("../assests/img/foto byn.jpeg"); }

.founder__text {
  margin-top: 2.2rem;
}

.founder__name {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
  color: var(--white);
  margin: 0 0 0.8rem;
}

.founder__bio {
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Línea de tiempo */
.journey__timeline {
  position: relative;
  padding: 0 8vw var(--word-space) 2vw;
  gap: 5rem;
}

.timeline {
  --crest: 64px;          /* tamaño del escudo */
  --crest-space: 88px;    /* espacio arriba de la línea para el escudo */
  position: relative;
  display: flex;
  gap: 0;
  padding-top: var(--crest-space);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--crest-space);
  height: 2px;
  background: var(--white);
}

.timeline__item {
  position: relative;
  width: 240px;
  flex-shrink: 0;
  padding: 1.6rem 1.8rem 0 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  width: 2px;
  height: 14px;
  background: var(--white);
}

/* Escudo: arriba de la línea, alineado a la izquierda con el año */
.timeline__crest {
  position: absolute;
  left: calc(1px - var(--crest) / 2); /* centrado sobre la marca de la línea (2px de ancho) */
  top: calc(-1 * var(--crest-space) + 4px);
  width: var(--crest);
  height: var(--crest);
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.25); /* marcador mientras falta el escudo */
  border-radius: 50%;
}

.timeline__crest:has(img:not([hidden])) {
  border: 0;
  border-radius: 0;
}

.timeline__crest img,
.national__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  color: transparent; /* no mostrar el texto alternativo si el escudo no carga */
  font-size: 0;
}

.timeline__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.35rem;
}

.timeline__year {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.05;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.timeline__text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

/* Cuadro aparte: Selección Argentina */
.national {
  flex-shrink: 0;
  align-self: center;
  width: 460px;
  padding: 1.6rem 1.8rem;
  background: rgba(15, 15, 17, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 3px solid var(--blue-light);
  backdrop-filter: blur(6px);
}

.national__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.national__crest {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.national__crest:has(img:not([hidden])) {
  border: 0;
  border-radius: 0;
}

.national .timeline__title {
  margin-bottom: 0.1rem;
}

.national__years {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
}

.national__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.1rem;
}

.national__stats {
  display: flex;
  gap: 2.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 0.9rem;
}

.national__stats div {
  display: flex;
  flex-direction: column-reverse;
}

.national__stats dd {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
}

.national__stats dt,
.national__list dt {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.national__list div + div {
  margin-top: 0.6rem;
}

.national__list dd {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.journey__cta {
  flex-shrink: 0;
  align-self: center;
  margin-top: 2.5rem;
}

/* "CANIGGIA" gigante, fijo y alineado a la izquierda. Se ve completo, sin recorte. */
.journey__word {
  position: absolute;
  z-index: 1;
  left: calc(6vw - 0.045em); /* compensa el espacio propio de la "C" para que la tinta empiece justo en 6vw */
  right: 6vw;
  bottom: 0;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 9.3vw;
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
  color: var(--white);
  pointer-events: none;
  white-space: nowrap;
}

/* Modo escritorio: la sección queda fija y el contenido se desplaza en horizontal */
.journey.is-horizontal .journey__sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h)); /* iPad/iPhone: alto real visible, sin contar la barra del navegador */
}

.journey.is-horizontal .journey__track {
  height: 100%;
}

/* ---------- Perfil del fundador (banda azul horizontal) ---------- */
.profile-band {
  background: var(--blue);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.profile-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: 0 6vw; /* mismo margen que Founder / CANIGGIA */
}

.profile-band__title {
  margin-left: 0.023em; /* compensa el espacio propio de la "A": la tinta queda alineada con la "C" de CANIGGIA */
  font-weight: 700;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}

/* 4 ítems en fila, cada uno con tilde en círculo arriba del texto */
.profile-band__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.profile-band__list li {
  position: relative;
  padding-top: 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 0;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.profile-band__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 1.5px solid var(--white);
  border-radius: 50%;
}

.profile-band__list li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1.07rem;
  width: 0.34rem;
  height: 0.62rem;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

@media (max-width: 1340px) {
  .profile-band__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-band__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .profile-band__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Secciones genéricas ---------- */
.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.section--light {
  background: var(--white);
  color: var(--black);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

/* =========================================================
   SERVICES · HOME — intro a la izquierda + rueda de servicios
   ========================================================= */
.svc-home {
  position: relative;
  display: flex;
  --h: clamp(460px, 82vh, 760px); /* alto de la sección (lo usa también la rueda) */
  --intro-title: clamp(2rem, 3.4vw, 3.2rem); /* tamaño de "WHAT WE DO" (lo usa también la línea de la cancha) */
  height: var(--h);
  /* franjas de césped cortado, muy sutiles */
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 clamp(90px, 9vw, 170px), transparent clamp(90px, 9vw, 170px) clamp(180px, 18vw, 340px)),
    var(--black-pure);
  overflow: hidden;
}

.svc-home__intro {
  position: relative;
  z-index: 2;
  flex: 0 0 clamp(320px, 34vw, 560px); /* ancho suficiente para "WHAT WE DO" en una línea */
  /* 3 filas: "SERVICES" arriba, el título justo en el centro (mismo eje que la rueda) y el texto abajo */
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  grid-template-columns: max-content; /* la columna mide lo que "WHAT WE DO"; el texto de abajo se ajusta a ese ancho */
  padding: 3rem 2vw 3rem 6vw;
}

.svc-home__intro .title {
  font-size: var(--intro-title);
  white-space: nowrap; /* "WHAT WE DO" en una sola línea */
}

.svc-home__intro .eyebrow {
  align-self: end; /* pegado al título, desde arriba */
}

.svc-home__lead {
  align-self: start;
  /* mismo ancho que "WHAT WE DO": no empuja la columna, solo la ocupa */
  width: 0;
  min-width: 100%;
  margin: 1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

/* Fondo de cancha: textura de césped y luz en el centro.
   El arco de la rueda es el círculo central. Todo tenue para no competir con el texto. */
.svc-pitch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* bordes más oscuros, como un reflector sobre el centro */
    radial-gradient(ellipse 70% 90% at 25% 50%, transparent 35%, rgba(0, 0, 0, 0.6) 100%),
    /* granulado del césped */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.6 0 0 0 -0.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* Rueda de servicios (ref. "Wove — Wheel Menu").
   Los números están sobre un arco; el activo queda al centro (ángulo 0) y a su derecha
   se muestra el texto. Al hacer clic, main.js cambia --active y la rueda gira. */
.svc-wheel {
  --R: calc(var(--h) * 0.62);       /* radio del arco: más grande que media sección, así la circunferencia llega arriba y abajo */
  --step: 20deg;                    /* separación entre números */
  /* centro del círculo, a la izquierda: el arco arranca cerca del título "What we do" */
  --cx: calc(var(--R) * -0.55 - clamp(60px, 8vw, 160px));
  --title-size: clamp(1.6rem, 2.8vw, 2.8rem); /* tamaño del título del servicio */
  position: relative;
  flex: 1;
  overflow: visible; /* el arco se ve también hacia la izquierda; lo recorta la sección */
}

/* el arco */
.svc-wheel__ring {
  position: absolute;
  left: calc(var(--cx) - var(--R));
  top: calc(50% - var(--R));
  width: calc(var(--R) * 2);
  height: calc(var(--R) * 2);
  border: 2px solid var(--celeste); /* línea gruesa en celeste */
  border-radius: 50%;
  /* luz suave dentro del círculo central */
  background: radial-gradient(circle, rgba(117, 170, 219, 0.1), rgba(117, 170, 219, 0.03) 55%, transparent 72%);
  pointer-events: none;
}

/* Cancha: el arco es el círculo central y esta es la línea de mitad de cancha.
   (El punto central quedaría tapado por "WHAT WE DO", por eso no se dibuja.) */
.svc-wheel__ring::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 400vh; /* la recorta la sección */
  transform: translate(-50%, -50%);
  /* llega hasta arriba de "SERVICES" y vuelve debajo del texto; no pasa por detrás de las letras */
  --gap-top: calc(var(--intro-title) * 0.5 + 3.7rem);
  --gap-bottom: calc(var(--intro-title) * 0.5 + 7.1rem); /* texto de 3 líneas */
  background: linear-gradient(to bottom,
    rgba(117, 170, 219, 0.45) calc(50% - var(--gap-top)),
    transparent calc(50% - var(--gap-top)),
    transparent calc(50% + var(--gap-bottom)),
    rgba(117, 170, 219, 0.45) calc(50% + var(--gap-bottom)));
}

/* en pantallas más angostas el texto ocupa 4 líneas */
@media (max-width: 1310px) {
  .svc-wheel__ring::before {
    --gap-bottom: calc(var(--intro-title) * 0.5 + 8.6rem);
  }
}

/* cada número gira alrededor del centro según su distancia al activo.
   El botón ocupa solo el número: se ubica sobre el arco con rotate + translateX
   tomando como eje el centro del círculo (su borde izquierdo). */
.svc-wheel__num {
  position: absolute;
  left: var(--cx);
  top: 50%;
  /* alto = una línea del número, centrado sobre el eje (igual que la primera línea del título) */
  height: 1.05em;
  line-height: 1.05;
  margin-top: -0.525em;
  padding: 0 0.4rem;
  transform-origin: 0 50%;
  transform: rotate(calc((var(--i) - var(--active)) * var(--step))) translateX(calc(var(--R) + 1.2rem));
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-align: left;
  opacity: 0.35;
  cursor: pointer;
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease), font-size 0.4s var(--ease);
}

/* punto sobre el arco */
.svc-wheel__num::before {
  content: "";
  position: absolute;
  left: calc(-1.2rem - 4px); /* sobre el arco */
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.svc-wheel__num:hover {
  opacity: 0.75;
}

.svc-wheel__num.is-active {
  font-weight: 700;
  font-size: var(--title-size); /* mismo tamaño que el título: así quedan alineados */
  opacity: 1;
  cursor: default;
}

.svc-wheel__num.is-active::before {
  background: var(--blue-light);
  transform: scale(1.6);
}

/* los que quedan lejos del centro se esfuman */
.svc-wheel__num.is-far {
  opacity: 0.12;
}

.svc-wheel__num:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Zona para agarrar la rueda: desde el borde izquierdo hasta el número activo */
.svc-wheel__drag {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--cx) + var(--R) + 1.2rem + clamp(4.5rem, 6vw, 6.5rem));
  cursor: grab;
  touch-action: none; /* en pantallas táctiles el dedo gira la rueda en vez de scrollear */
}

.svc-wheel__num {
  z-index: 2;
  touch-action: none;
}

/* mientras se arrastra, la rueda sigue al cursor sin demora */
.svc-wheel.is-dragging,
.svc-wheel.is-dragging .svc-wheel__drag,
.svc-wheel.is-dragging .svc-wheel__num {
  cursor: grabbing;
  user-select: none;
}

.svc-wheel.is-dragging .svc-wheel__num {
  transition: opacity 0.2s var(--ease), font-size 0.2s var(--ease);
}

/* Flechas sutiles arriba y abajo del número activo (el número queda en el medio) */
.svc-wheel__arrow {
  --num-left: calc(var(--cx) + var(--R) + 1.2rem + 0.4rem); /* donde empieza el número activo */
  position: absolute;
  z-index: 3;
  left: var(--num-left);
  width: calc(var(--title-size) * 1.3); /* ~ ancho del número: la flecha queda centrada sobre él */
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  color: var(--white);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.svc-wheel__arrow--up {
  top: calc(50% - var(--title-size) * 0.525 - 34px);
}

.svc-wheel__arrow--down {
  top: calc(50% + var(--title-size) * 0.525 + 6px);
}

.svc-wheel__arrow:hover,
.svc-wheel__arrow:focus-visible {
  opacity: 1;
}

.svc-wheel__arrow--up:hover {
  transform: translateY(-3px);
}

.svc-wheel__arrow--down:hover {
  transform: translateY(3px);
}

.svc-wheel__arrow:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.svc-wheel__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pantallas bajas (celular acostado): texto más compacto */
@media (max-height: 560px) {
  .svc-wheel__text {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

/* textos: a la derecha del número activo, todos en la misma celda y solo uno visible */
.svc-wheel__panels {
  position: absolute;
  left: calc(var(--cx) + var(--R) + 1.4rem + clamp(4.5rem, 6vw, 6.5rem));
  right: 5vw;
  top: 50%;
  /* la primera línea del título queda a la altura del número activo (centro de la rueda) */
  transform: translateY(calc(var(--title-size) * -0.525));
  display: grid;
}

.svc-wheel__panel {
  grid-area: 1 / 1;
  align-self: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s 0.4s;
}

.svc-wheel__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s 0.2s var(--ease), transform 0.6s 0.2s var(--ease), visibility 0s;
}

.svc-wheel__title {
  font-weight: 700;
  font-size: var(--title-size);
  line-height: 1.05;
  text-transform: uppercase;
}

/* El título es un botón (para el desplegable en celular); en escritorio se ve como texto normal */
.svc-wheel__toggle {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: default;
}

.svc-wheel__text {
  margin-top: 1.1rem;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Services: responsive ---------- */
@media (max-width: 900px) {
  /* Celular / tablet vertical: sin rueda, los 4 servicios apilados */
  .svc-home {
    flex-direction: column;
    height: auto;
  }

  .svc-home__intro {
    flex: none;
    padding: 4rem 24px 1rem;
    grid-template-columns: none; /* en celular el texto usa su ancho normal */
  }

  .svc-home__lead {
    width: auto;
    min-width: 0;
    max-width: 40ch;
  }

  .svc-wheel {
    overflow: visible;
    padding: 0 24px 4rem;
  }

  .svc-wheel__ring,
  .svc-wheel__list,
  .svc-wheel__drag,
  .svc-wheel__arrow {
    display: none;
  }

  .svc-wheel__panels {
    position: static;
    transform: none;
    display: block;
  }

  .svc-wheel__panel,
  .svc-wheel__panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .svc-wheel__title {
    font-size: clamp(1.15rem, 5vw, 1.8rem);
  }

  /* Desplegable: solo se ven los títulos; la flecha de la derecha abre el texto */
  .svc-wheel__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
  }

  .svc-wheel__toggle::after {
    content: "";
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.3rem;
    border-right: 2px solid var(--celeste);
    border-bottom: 2px solid var(--celeste);
    transform: translateY(-25%) rotate(45deg); /* flecha hacia abajo */
    transition: transform 0.3s var(--ease);
  }

  .svc-wheel__panel.is-open .svc-wheel__toggle::after {
    transform: translateY(25%) rotate(-135deg); /* flecha hacia arriba */
  }

  .svc-wheel__text {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease), margin-top 0.4s var(--ease), opacity 0.3s var(--ease);
  }

  .svc-wheel__panel.is-open .svc-wheel__text {
    max-height: 20rem;
    margin-top: 0.9rem;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .svc-home__intro {
    padding-left: 16px;
    padding-right: 16px;
  }

  .svc-wheel {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__info .subtitle {
  margin-bottom: 2rem;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--line-light);
}

.contact__label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact__list a {
  font-weight: 700;
  word-break: break-word;
}

.contact__list a:hover {
  color: var(--blue);
}

.socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  transition: background 0.3s;
}

.social-link:hover .social {
  background: var(--blue);
}

/* Instagram: ícono + usuario */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere; /* en pantallas muy angostas el usuario puede cortar */
}

.social-link .social {
  flex-shrink: 0;
}

.social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social svg .fill {
  fill: var(--white);
  stroke: none;
}

.form {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.field label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  background: var(--black-2);
  border: 1px solid var(--line-dark);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.field select option {
  background: var(--black-2);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-light);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #D9534F;
}

.form__status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5em;
}

.form__status.is-ok { color: #8FD19E; }
.form__status.is-error { color: #F08A86; }

/* ---------- Footer ---------- */
.footer {
  background: var(--black-pure);
  border-top: 1px solid var(--line-dark);
  padding: clamp(3.5rem, 9vh, 6rem) 0 2rem;
  color: var(--white);
}

/* marca a la izquierda y 3 columnas de links */
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem 3rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.footer__name {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}

.footer__name small {
  font-weight: 400;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.footer__tagline {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__social {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__social:hover {
  color: var(--celeste);
}

.footer__heading {
  margin-bottom: 1.3rem;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s;
  overflow-wrap: anywhere;
}

.footer__links a:hover {
  color: var(--white);
}

/* línea divisoria, copyright y firma de EMECA */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(3rem, 7vh, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer__emeca {
  height: 16px;
  width: auto;
  aspect-ratio: 1431 / 320;
  fill: rgba(255, 255, 255, 0.85);
  transition: fill 0.25s;
}

.footer__credit:hover .footer__emeca {
  fill: var(--white);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    gap: 2.2rem 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Formulario: consentimiento ---------- */
.field--check {
  margin-top: 0.4rem;
}

.field .check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  cursor: pointer;
  /* no hereda el estilo de las etiquetas de los campos (mayúsculas y espaciado) */
  font-family: var(--font-text);
  font-size: 0.85rem;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  color: var(--gray);
  margin-bottom: 0;
}

.check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--blue-light);
}

.check a,
.form__legal a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field--check.has-error .check {
  color: #F08A86;
}

.form__legal {
  margin: 0 0 1.2rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(164, 168, 181, 0.85);
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 760px;
  margin: 0 auto;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--line-dark);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  padding: 1.4rem 1.5rem;
}

.cookie-banner__text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__prefs {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.cookie-banner__prefs[hidden] {
  display: none;
}

.cookie-option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.cookie-option input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  accent-color: var(--blue-light);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

/* "Aceptar" y "Rechazar" con el mismo peso visual: así lo piden las normas de consentimiento */
.cookie-btn {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.cookie-btn:hover {
  border-color: var(--white);
}

.cookie-btn--primary {
  background: var(--blue);
  border-color: var(--blue);
}

.cookie-btn--primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.cookie-btn[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .cookie-banner__actions .cookie-btn {
    flex: 1 1 auto;
  }
}

/* ---------- Páginas legales (privacy.html / terms.html) ---------- */
.legal-page {
  background: var(--gray-light);
  color: var(--black);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--black-pure);
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-header__back {
  position: absolute;
  left: clamp(16px, 2vw, 32px);
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.legal-header .brand__logo {
  height: 44px;
  width: auto;
}

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) 24px clamp(3rem, 8vh, 6rem);
  line-height: 1.7;
  font-size: 1rem;
  color: #2B2D35;
}

.legal h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--black);
}

.legal__updated {
  margin: 0.8rem 0 2.5rem;
  font-size: 0.85rem;
  color: #6A6E7A;
}

.legal h2 {
  margin: 2.6rem 0 0.8rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal h3 {
  margin: 1.6rem 0 0.5rem;
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--black);
}

.legal p,
.legal ul,
.legal table {
  margin-bottom: 1rem;
}

.legal ul {
  padding-left: 1.3rem;
  list-style: disc;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line-light);
}

.legal th {
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.legal__table-wrap {
  overflow-x: auto;
}

/* texto oficial en castellano exigido por la Ley 25.326 */
.legal__notice {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  background: var(--white);
  border-left: 3px solid var(--blue);
  font-size: 0.92rem;
}

/* datos que faltan completar */
.legal__todo {
  background: #FFF3C4;
  padding: 0 0.25em;
}

.legal-box {
  margin: 1.2rem 0 2rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line-light);
}

.legal-box .btn {
  margin-top: 0.4rem;
}

.legal-box .field input,
.legal-box .field textarea {
  background: var(--white);
  color: var(--black);
  border: 1px solid #C9CCD6;
}

.legal-box .field label {
  color: #5A5E6A;
}

/* ---------- Aparición al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Notebooks con pantalla baja: cuadro de Argentina más compacto para que entre en el alto */
@media (min-width: 901px) and (max-height: 760px) {
  .national {
    padding: 1.1rem 1.4rem;
  }

  .national__head {
    margin-bottom: 0.6rem;
  }

  .national__text {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 0.7rem;
  }

  .national__stats {
    padding: 0.6rem 0;
    margin-bottom: 0.6rem;
  }

  .national__stats dd {
    font-size: 1.8rem;
  }

  .national__list dd {
    font-size: 0.8rem;
  }
}

/* Celular y tablet: menú hamburguesa y Caniggia en vertical */
@media (max-width: 900px) {
  /* en celular las secciones (incluidas Services y Let's talk) están en el menú
     hamburguesa de la izquierda, así que el de la derecha no se muestra */
  .nav-toggle {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }

  .nav__link {
    font-size: 1.3rem;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* En pantallas angostas el título queda sobre la foto: degradé abajo para que se lea */
  .hero__media {
    background:
      linear-gradient(0deg, var(--black-pure) 5%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 100%),
      var(--hero-img-mobile, var(--hero-img, url("../assests/img/hero este.jpg"))) 72% center / cover no-repeat,
      var(--black-pure);
  }
}

/* Caniggia en vertical: pantallas angostas (celular, tablet vertical) y también
   pantallas anchas pero bajas (celular acostado), donde no entra el scroll horizontal.
   Debe coincidir con la condición "horizontal" de main.js */
@media (max-width: 900px), (max-height: 619px) {
  .journey__track {
    flex-direction: column;
  }

  .journey__intro {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 4.5rem 24px 2rem;
  }

  .founder {
    width: 100%;
  }

  .founder__photos {
    width: 100%;
    max-width: 560px;
  }

  .founder__text {
    margin-top: 0;
  }

  .founder__bio {
    max-width: 60ch;
  }

  .journey__timeline {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 24px 18vw;
    gap: 2.5rem;
  }

  .timeline {
    flex-direction: column;
    padding: 0 0 0 1.8rem;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline__item {
    width: auto;
    padding: 0 0 1.6rem;
  }

  .timeline__item::before {
    left: calc(-1.8rem - 6px);
    top: 1.6rem;
    width: 14px;
    height: 2px;
  }

  /* En vertical el escudo va arriba del título, dentro del ítem */
  .timeline__crest {
    position: static;
    width: 52px;
    height: 52px;
    margin-bottom: 0.8rem;
  }

  .timeline__year {
    font-size: 1.5rem;
  }

  .national {
    width: 100%;
    max-width: 560px;
    align-self: flex-start;
  }

  .journey__cta {
    align-self: flex-start;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 58px;
  }

  /* Solo los costados: no pisar el padding de arriba/abajo de cada bloque */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .br-desktop {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .form__row {
    gap: 0;
  }

  .form {
    padding: 1.6rem;
  }

  .journey__intro,
  .journey__timeline {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
