/* ============================================================
   NEXUS IOTECHNOLOGY — HOJA DE ESTILOS
   ------------------------------------------------------------
   Rediseño con patrones inspirados en landonorris.com:
   secciones claras y oscuras, titulares gigantes que mezclan
   una sans pesada con una serif itálica, y un solo color de acento.

   Para cambiar colores o tipografías, edita las variables de :root.
   ============================================================ */

:root {
  /* Colores de la marca, tomados del logo */
  --acento:    #1dbcf2;   /* cian del isotipo: botones, enlaces, palabras clave */
  --violeta:   #8946fc;   /* extremo violeta del degradado */
  --azul:      #4b92df;
  --turquesa:  #1ad1cc;
  --degradado: linear-gradient(120deg, #8946fc 0%, #4b92df 45%, #1dbcf2 72%, #1ad1cc 100%);

  /* Neutros */
  --papel:   #f3f6fc;   /* fondo de las secciones claras */
  --tinta:   #0b0f1e;   /* fondo de las secciones oscuras y texto sobre claro */
  --tinta-2: #131a2e;   /* tarjetas sobre oscuro */
  --tinta-3: #1a2340;   /* hover y campos de formulario */
  --claro:   #c7d6fd;   /* texto sobre oscuro (lavanda del logo) */
  --gris-sobre-oscuro: #8c9bc8;
  --gris-sobre-claro:  #45507a;
  --etiqueta-oscuro:   #7a88b4;
  --etiqueta-claro:    #5a6690;
  --linea-oscura: #2a3554;
  --linea-clara:  #d3dcee;

  /* Tipografías */
  --f-sans:  'Archivo', 'Helvetica Neue', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono:  'IBM Plex Mono', ui-monospace, monospace;

  --margen: 32px;   /* margen lateral de la página */
  --radio: 16px;    /* redondeo de tarjetas */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-sans);
  background: var(--papel);
  color: var(--tinta);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.menu-abierto { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.saltar {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  padding: 12px 18px; border-radius: 10px;
  background: var(--acento); color: var(--tinta);
  font-weight: 700; text-decoration: none;
}
.saltar:focus { top: 16px; }

.contenedor { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--margen); }

.seccion { position: relative; padding: 100px 0; }
.seccion--oscura { background: var(--tinta); color: var(--claro); }

/* ---------- Tipografía ---------- */
.t-sans {
  display: block; font-family: var(--f-sans); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.9;
}
.t-serif { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; line-height: 1; }
.t-acento { color: var(--acento); }

/* Titular de dos líneas: sans pesada + serif itálica */
.titulo-mixto { display: flex; flex-direction: column; font-size: clamp(2.8rem, 7.2vw, 6.5rem); }
.titulo-mixto .t-serif { font-size: 0.85em; }
.titulo-mixto--m { font-size: clamp(2rem, 5.6vw, 5rem); }
.titulo-mixto--m .t-serif { font-size: 0.95em; }
.titulo-mixto--l { font-size: clamp(2.6rem, 6.1vw, 5.5rem); }
.titulo-mixto--l .t-serif { font-size: 1em; }

.etiqueta {
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.etiqueta--literal { text-transform: none; }

.ico { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--f-sans); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--acento { background: var(--acento); color: var(--tinta); }
.btn--borde { border-color: currentColor; }
.btn--borde:hover { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.btn--nav { height: 48px; padding: 0 22px; }
.btn--ancho { width: 100%; height: 56px; font-size: 0.95rem; }
.btn--chico { height: 48px; padding: 0 16px; font-size: 0.75rem; }

.btn-cuadro {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--acento); color: var(--tinta);
  transition: transform 0.2s ease;
}
.btn-cuadro .ico { width: 18px; height: 18px; }
.btn-cuadro:hover { transform: translateY(3px); }

/* ---------- Loader (solo en la primera visita de la sesión) ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--tinta);
  animation: loader-salir 0.5s ease 1.3s forwards;
}
.js.sin-loader .loader { display: none; }
.loader__n { width: 72px; height: 84px; }
.loader__n path {
  fill: none; stroke: var(--acento); stroke-width: 14; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: dibujar 1s ease 0.1s forwards;
}
@keyframes dibujar { to { stroke-dashoffset: 0; } }
@keyframes loader-salir { to { opacity: 0; visibility: hidden; } }

/* ============================================================
   BARRA DE NAVEGACIÓN
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 88px; padding: 0 var(--margen);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--tinta);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.navbar--solida {
  background: rgba(243, 246, 252, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--linea-clara);
}

.marca { display: flex; flex-direction: column; line-height: 0.9; text-decoration: none; }
.marca__nombre { font-weight: 900; font-size: 1.75rem; letter-spacing: -0.01em; }
.marca__sub { font-family: var(--f-serif); font-style: italic; font-size: 1.375rem; }


.navbar__acciones { display: flex; align-items: center; gap: 12px; }
.navbar__menu {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1.5px solid currentColor; border-radius: 12px;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.navbar__menu svg { width: 22px; height: 22px; }
.ico-cerrar { display: none; }

/* Con el menú abierto */
.menu-abierto .navbar {
  background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  color: var(--claro);
}
.menu-abierto .navbar__menu { background: var(--acento); border-color: var(--acento); color: var(--tinta); }
.menu-abierto .ico-menu { display: none; }
.menu-abierto .ico-cerrar { display: block; }

/* ============================================================
   MENÚ A PANTALLA COMPLETA
   ============================================================ */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px;
  padding: 110px var(--margen) 40px; overflow-y: auto;
  background-color: var(--tinta);
  background-image: radial-gradient(#22304f 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  color: var(--claro);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.menu-abierto .menu { opacity: 1; visibility: visible; }

.menu__nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.menu__link {
  position: relative;
  font-weight: 900; font-size: clamp(2.2rem, 4.8vw, 4.25rem); line-height: 1.02;
  letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none;
  transition: color 0.2s ease;
}
.menu__link:hover { color: var(--acento); }

/* Sección actual: tachada con un trazo del color de acento */
.menu__link.es-actual { color: var(--etiqueta-oscuro); }
.menu__link.es-actual::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 50%; height: 0.55em;
  transform: translateY(-45%);
  background: var(--acento);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 40' preserveAspectRatio='none'%3E%3Cpath d='M4 26 C 40 10, 70 30, 110 18 S 180 8, 246 20' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 40' preserveAspectRatio='none'%3E%3Cpath d='M4 26 C 40 10, 70 30, 110 18 S 180 8, 246 20' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.menu__pie { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--gris-sobre-oscuro); text-align: center; }
.menu__iso { width: 22px; height: 26px; color: var(--acento); }
.menu__correo { color: var(--claro); font-weight: 600; }

/* ============================================================
   01 · HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: 112px var(--margen) 40px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--papel);
}
.hero__puntos {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(#c9d5ec 1.2px, transparent 1.2px);
  background-size: 28px 28px;
}
.hero__tag {
  position: relative; z-index: 2;
  padding: 7px 16px; border: 1px solid var(--tinta); border-radius: 999px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em;
}
.hero__titulo {
  position: relative; z-index: 2; margin-top: 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__titulo .t-sans { font-size: clamp(2.9rem, 10.4vw, 9.4rem); line-height: 0.88; }
.hero__titulo .t-serif { font-size: clamp(2.5rem, 7.8vw, 7rem); }

/* Red de nodos (la dibuja y anima script.js) */
.red {
  position: absolute; z-index: 1; left: 50%; top: 360px;
  width: min(560px, 60vw); height: auto; aspect-ratio: 1;
  transform: translateX(-50%); overflow: visible;
}
.red__aro { fill: none; stroke: var(--linea-clara); stroke-width: 1.5; stroke-dasharray: 4 8; }
.red__finas line { stroke: #afbcd8; stroke-width: 1.4; }
.red__borde line { stroke: var(--tinta); stroke-width: 13; stroke-linecap: round; }
.red__letra line { stroke: var(--acento); stroke-width: 8; stroke-linecap: round; }
.red__nodos circle { fill: var(--tinta); }
.red__nodos .red__vertice { fill: var(--acento); stroke: var(--tinta); stroke-width: 2.5; }

.hero__pie {
  position: absolute; z-index: 2; left: var(--margen); bottom: 40px;
  width: min(460px, 36vw); display: flex; flex-direction: column; gap: 22px;
}
.hero__texto { font-size: 1.0625rem; line-height: 1.55; color: var(--gris-sobre-claro); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ticket "Próximo paso" */
.ticket {
  position: absolute; z-index: 2; right: var(--margen); bottom: 32px;
  width: 140px; height: 256px; padding: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1.5px solid var(--tinta); border-radius: 12px; background: var(--papel);
  text-decoration: none;
  transition: translate 0.25s ease;
}
.ticket:hover { translate: 0 -4px; }
.ticket__label { font-family: var(--f-mono); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ticket__pista { width: 112px; height: 66px; align-self: center; }
.ticket__info { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--tinta); }
.ticket__info strong { font-weight: 800; font-size: 0.9375rem; line-height: 1.05; text-transform: uppercase; }
.ticket__info span { font-size: 0.75rem; line-height: 1.35; color: var(--gris-sobre-claro); }
.ticket__flecha {
  align-self: flex-end; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--acento); color: var(--tinta);
}

/* ============================================================
   02 · MANIFIESTO / NOSOTROS
   ============================================================ */
.manifiesto { overflow: hidden; padding: 70px 0 110px; }

/* Marquee: el contenido va duplicado y se desplaza en bucle */
.marquee__fila { overflow: hidden; white-space: nowrap; }
.marquee__pista { display: flex; width: max-content; animation: desplazar 40s linear infinite; }
.marquee__pista > * { flex-shrink: 0; padding-right: 0.3em; }
.marquee__fila--inversa .marquee__pista { animation-direction: reverse; animation-duration: 50s; }
@keyframes desplazar { to { transform: translateX(-50%); } }

.marquee--grande { font-size: clamp(3.2rem, 7.8vw, 7rem); line-height: 1; }
.marquee--grande .marquee__fila:first-child { font-weight: 900; letter-spacing: -0.02em; }
.marquee__fila--serif { font-family: var(--f-serif); font-style: italic; line-height: 1.05; color: var(--acento); }

.manifiesto__cuerpo { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 64px; }
.manifiesto__marca { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--gris-sobre-oscuro); }
.manifiesto__marca svg { width: 26px; height: 30px; color: var(--acento); }
.manifiesto__texto {
  max-width: 1200px; text-align: center;
  font-weight: 800; font-size: clamp(1.75rem, 3.9vw, 3.5rem); line-height: 1.02;
  letter-spacing: -0.015em; text-transform: uppercase; text-wrap: balance;
}
.manifiesto__texto em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  text-transform: none; font-size: 1.14em; color: var(--acento);
}
/* Revelado palabra a palabra (script.js envuelve cada palabra en .p) */
.manifiesto__texto .p { opacity: 0.18; transition: opacity 0.3s ease; }
.manifiesto__texto .p.on { opacity: 1; }

.valores { width: 100%; margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.valores li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--linea-oscura); }
.valores__num { font-family: var(--f-mono); font-size: 0.75rem; color: var(--acento); }
.valores h3 { font-weight: 700; font-size: 1.375rem; }
.valores p { font-size: 0.9375rem; color: var(--gris-sobre-oscuro); }

/* ============================================================
   03 · DEL SENSOR A LA DECISIÓN
   ============================================================ */
.mundos { overflow: hidden; padding-bottom: 0; }
.mundos__grid {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 120px; padding: 0 60px;
}
.mundo { display: flex; flex-direction: column; gap: 22px; }
.mundo--sensor { align-items: flex-end; text-align: right; }
.mundo--decision { align-items: flex-start; }
.mundo .titulo-mixto { font-size: clamp(3rem, 6.9vw, 6.25rem); }
.mundo .titulo-mixto .t-serif { font-size: 0.88em; line-height: 0.9; }
.mundo--sensor .titulo-mixto { align-items: flex-end; }
.mundo p { max-width: 400px; font-size: 1.125rem; color: var(--gris-sobre-claro); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mundo--sensor .chips { justify-content: flex-end; }
.chips li { padding: 6px 14px; border: 1px solid var(--tinta); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }

/* Línea que une los dos mundos (se dibuja al aparecer) */
.mundos__conector {
  position: absolute; left: 50%; top: 50px; width: 170px; height: auto;
  transform: translateX(-50%); color: var(--acento); overflow: visible;
}
.mundos__conector path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.js .mundos .mundos__conector.revelar { opacity: 1; transform: translateX(-50%); }
.js .mundos__conector path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease 0.3s; }
.js .mundos__conector.visible path { stroke-dashoffset: 0; }

.mundos__fotos {
  margin-top: 70px; display: grid; grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
  align-items: end; gap: 24px;
}
.mundos .foto { height: 320px; }
.foto--izq { border-left: 0; border-bottom: 0; border-top-right-radius: 28px; }
.foto--der { border-right: 0; border-bottom: 0; border-top-left-radius: 28px; }
.mundos__puente { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 110px; text-align: center; }
.mundos__puente .etiqueta { color: var(--etiqueta-claro); }
.mundos__puente strong { font-size: 1.25rem; }

/* Marcador de foto: reemplázalo por <img class="foto ..."> */
.foto {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
  border: 1.5px solid var(--linea-clara);
  background: repeating-linear-gradient(135deg, #d7dff0 0 1px, transparent 1px 14px), #e7ecf7;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gris-sobre-claro);
}
img.foto { width: 100%; padding: 0; object-fit: cover; }
.foto--oscura {
  border-color: var(--linea-oscura); border-radius: 6px;
  background: repeating-linear-gradient(135deg, #1e2842 0 1px, transparent 1px 14px), #121a2c;
  color: var(--gris-sobre-oscuro);
}

/* ============================================================
   CABECERAS DE SECCIÓN (título a la izquierda, texto a la derecha)
   ============================================================ */
.cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 40px; }
.cabecera__lado { width: min(440px, 100%); display: flex; flex-direction: column; gap: 20px; padding-bottom: 10px; font-size: 1.125rem; }
.seccion--oscura .cabecera__lado { color: var(--gris-sobre-oscuro); }
.seccion:not(.seccion--oscura) .cabecera__lado { color: var(--gris-sobre-claro); }

/* ============================================================
   04 · SOLUCIONES
   ============================================================ */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro {
  height: 44px; padding: 0 18px; border: 1px solid #38456b; border-radius: 999px;
  background: transparent; color: var(--claro); font-weight: 600; font-size: 0.875rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.filtro:hover { border-color: var(--acento); }
.filtro[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--tinta); font-weight: 700; }

.tarjetas { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tarjeta {
  position: relative; height: 320px; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--linea-oscura); border-radius: var(--radio); background: var(--tinta-2);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.tarjeta.oculta { display: none; }
.tarjeta__num { font-family: var(--f-mono); font-size: 0.75rem; color: var(--etiqueta-oscuro); }
.tarjeta__icono {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -85px 0 0 -75px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed #38456b; border-radius: 50%;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tarjeta__icono svg { width: 60px; height: 60px; color: var(--claro); }
.tarjeta__desc {
  position: absolute; left: 28px; right: 28px; top: 50%;
  transform: translateY(calc(-50% - 12px)); opacity: 0;
  font-size: 1.25rem; line-height: 1.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tarjeta__titulo {
  align-self: flex-end; display: flex; align-items: baseline; gap: 12px;
  font-weight: 600; font-size: 1.0625rem; text-align: right;
}
.tarjeta__tag { font-family: var(--f-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acento); }
.tarjeta__toggle {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 1px solid #38456b; border-radius: 12px; background: transparent;
  color: var(--claro); font-size: 1.375rem; line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Tarjeta abierta (botón +) y hover en escritorio */
.tarjeta.abierta { border-color: var(--acento); background: var(--tinta-3); }
.tarjeta.abierta .tarjeta__icono { opacity: 0; transform: scale(0.9); }
.tarjeta.abierta .tarjeta__desc { opacity: 1; transform: translateY(-50%); }
.tarjeta.abierta .tarjeta__toggle { background: var(--acento); border-color: var(--acento); color: var(--tinta); }
@media (hover: hover) {
  .tarjeta:hover { border-color: var(--acento); background: var(--tinta-3); }
  .tarjeta:hover .tarjeta__icono { opacity: 0; transform: scale(0.9); }
  .tarjeta:hover .tarjeta__desc { opacity: 1; transform: translateY(-50%); }
}

/* Franja CTA entre secciones */
.franja-cta { margin-top: 80px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.franja-cta__iso { width: 24px; height: 28px; color: var(--acento); }
.franja-cta p { max-width: 760px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.625rem, 2.5vw, 2.25rem); line-height: 1.15; }

/* ============================================================
   05 · CÓMO TRABAJAMOS
   ============================================================ */
.pista { width: 100%; height: auto; margin-top: 56px; overflow: visible; }
.pista__base { fill: none; stroke: var(--tinta); stroke-width: 3; stroke-linecap: round; }
.pista__avance { fill: none; stroke: var(--acento); stroke-width: 9; stroke-linecap: round; }
.pista__punto { fill: var(--papel); stroke: var(--tinta); stroke-width: 3; transition: fill 0.3s ease; }
.pista__punto.on { fill: var(--acento); }

.pasos { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.paso {
  min-height: 250px; padding: 22px; display: flex; flex-direction: column; gap: 12px;
  border: 1.5px solid var(--tinta); border-radius: 14px; background: var(--papel);
}
.paso__etapa { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.paso h3 { font-weight: 800; font-size: clamp(1.25rem, 1.95vw, 1.75rem); line-height: 1; text-transform: uppercase; }
.paso p { font-size: 0.9375rem; color: var(--gris-sobre-claro); }
.proceso__nota {
  margin-top: 36px; text-align: center;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--gris-sobre-claro);
}

/* ============================================================
   06 · RESULTADOS EN CAMPO
   Por defecto la franja se desliza con el dedo o el trackpad.
   En escritorio, script.js añade .es-fijo y la mueve con el scroll.
   ============================================================ */
.resultados { position: relative; background: var(--tinta); color: var(--claro); }
.resultados__pin { display: flex; flex-direction: column; gap: 36px; padding: 96px 0 44px; }
.resultados__ventana {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margen);
  scrollbar-width: thin; scrollbar-color: var(--acento) transparent; padding-bottom: 12px;
}
.resultados__track { display: flex; align-items: flex-start; gap: 28px; width: max-content; padding: 0 var(--margen); }
.resultados__track > li { flex-shrink: 0; scroll-snap-align: start; }

.resultados.es-fijo .resultados__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  padding: 112px 0 36px; gap: 24px;
}
.resultados.es-fijo .resultados__ventana { flex: 1; min-height: 0; display: flex; align-items: center; overflow: visible; padding-bottom: 0; }
.resultados.es-fijo .resultados__track { will-change: transform; }

.r-foto { width: clamp(240px, 24vw, 340px); display: flex; flex-direction: column; gap: 10px; }
.r-foto .foto { height: clamp(260px, 44vh, 420px); }
.r-foto .foto--chica { height: clamp(220px, 36vh, 340px); }
.r-foto--baja { margin-top: 8vh; }
.r-pie { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris-sobre-oscuro); }
.r-cifra { width: 250px; margin-top: 14vh; display: flex; flex-direction: column; gap: 6px; }
.r-cifra--alta { margin-top: 2vh; }
.r-cifra__num { font-weight: 900; font-size: clamp(4rem, 8.3vw, 7.5rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--acento); }
.r-cifra__txt { font-size: 1.125rem; }
.r-cita { width: min(420px, 80vw); margin-top: 4vh; padding: 28px; border: 1px solid var(--linea-oscura); border-radius: 16px; }
.r-cita figure { display: flex; flex-direction: column; gap: 18px; }
.r-cita blockquote p { font-family: var(--f-serif); font-style: italic; font-size: 1.875rem; line-height: 1.2; }
.r-cita figcaption { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris-sobre-oscuro); }
.resultados__barra { display: flex; align-items: center; gap: 16px; color: var(--gris-sobre-oscuro); }
.barra { position: relative; flex: 1; height: 2px; background: var(--linea-oscura); }
.barra__relleno { position: absolute; left: 0; top: -1px; width: 0; height: 4px; background: var(--acento); }

/* ============================================================
   07 · TECNOLOGÍAS
   ============================================================ */
.tecnologias { overflow: hidden; padding-bottom: 120px; }
.logos { position: relative; margin-top: 90px; }
.logos__trazo { position: absolute; left: 0; top: 50%; width: 100%; height: 300px; transform: translateY(-50%); pointer-events: none; }
.logos__trazo path { fill: none; stroke: var(--acento); stroke-width: 26; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.logos .marquee__fila { position: relative; }
.logos .marquee__pista { animation-duration: 45s; }
.logos:hover .marquee__pista { animation-play-state: paused; }
.logos__lista { display: flex; gap: 20px; padding-right: 20px; }
.logos__lista li {
  height: 76px; padding: 0 34px; display: flex; align-items: center;
  border: 1px solid var(--linea-clara); border-radius: 12px; background: var(--papel);
  font-weight: 700; font-size: 1.375rem; white-space: nowrap;
}

/* ============================================================
   08 · PREGUNTAS FRECUENTES
   ============================================================ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.faq__lado { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 28px; }
.faq__lado p { font-size: 1.125rem; color: var(--gris-sobre-oscuro); }
.faq__lado a { color: var(--acento); text-underline-offset: 4px; }
.faq__item { padding: 26px 0; border-bottom: 1px solid var(--linea-oscura); }
.faq__item:first-child { border-top: 1px solid var(--linea-oscura); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  list-style: none; cursor: pointer;
  font-weight: 600; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.3;
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; flex-shrink: 0; font-size: 1.75rem; font-weight: 300; line-height: 1;
  color: var(--acento); transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--acento); }
.faq__item p { max-width: 640px; margin-top: 14px; font-size: 1rem; line-height: 1.6; color: var(--gris-sobre-oscuro); }

/* ============================================================
   09 · CONTACTO
   ============================================================ */
.contacto { overflow: hidden; padding: 160px 0 120px; }
.contacto__curva { position: absolute; top: 0; left: 0; width: 100%; height: 90px; fill: var(--tinta); }
.contacto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 628px); gap: 48px; align-items: start; }
.contacto__intro { max-width: 520px; margin-top: 28px; font-size: 1.25rem; color: var(--gris-sobre-claro); }
.contacto__datos { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; font-size: 1.0625rem; }
.contacto__datos li { display: flex; align-items: center; gap: 12px; }
.contacto__datos svg { width: 22px; height: 22px; flex-shrink: 0; }

.formulario { display: flex; flex-direction: column; gap: 18px; padding: 40px; border-radius: 20px; background: var(--tinta); color: var(--claro); }
.formulario__fila { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 0.875rem; font-weight: 600; }
.opcional { font-weight: 400; color: var(--gris-sobre-oscuro); }
.campo input, .campo textarea {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--linea-oscura); border-radius: 10px;
  background: var(--tinta-3); color: var(--claro);
  font: inherit; font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}
.campo textarea { height: 140px; padding: 14px 16px; resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--etiqueta-oscuro); }
.campo input:focus, .campo textarea:focus { border-color: var(--acento); }
.formulario__legal { font-size: 0.8125rem; text-align: center; color: var(--gris-sobre-oscuro); }
.formulario__legal a { color: var(--claro); }
.formulario__estado { min-height: 1.2em; font-size: 0.875rem; text-align: center; }
.formulario__estado.ok { color: var(--acento); }
.formulario__estado.error { color: #ff8ba0; }

/* ============================================================
   10 · PIE DE PÁGINA
   ============================================================ */
.pie { position: relative; padding: 96px var(--margen) 36px; background: var(--acento); color: var(--claro); }
.pie__tarjeta {
  position: relative; min-height: 620px; padding: 110px 48px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 32px;
  border-radius: 28px; background: var(--tinta);
}
.pie__pestana {
  position: absolute; top: -28px; left: 50%; width: 180px; height: 60px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px 20px 0 0; background: var(--tinta);
}
.pie__pestana svg { width: 26px; height: 30px; color: var(--acento); }
.pie__centro { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.pie__tagline { align-items: center; font-size: clamp(2.75rem, 8.3vw, 7.5rem); }
.pie__tagline .t-serif { font-size: 0.93em; }
.pie__desc { max-width: 520px; font-size: 1rem; color: var(--gris-sobre-oscuro); }
.pie__nav { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pie__contacto { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.pie__nav a, .pie__contacto a, .pie__contacto span { font-weight: 800; font-size: 1.125rem; text-transform: uppercase; text-decoration: none; }
.pie__nav a:hover, .pie__contacto a:hover { color: var(--acento); }
.pie .etiqueta { margin-bottom: 6px; color: var(--etiqueta-oscuro); }
.pie__correo { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
.pie__legal { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 0.8125rem; color: var(--tinta); }

/* Barra fija con CTA: solo se muestra en móvil (ver más abajo) */
.barra-cta { display: none; }

/* ============================================================
   APARICIÓN AL HACER SCROLL (script.js añade .visible)
   ============================================================ */
.js .revelar { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .revelar.visible { opacity: 1; transform: none; }

/* ============================================================
   MARCA — logo y degradado del isotipo
   ============================================================ */
.marca { flex-direction: row; align-items: center; }
.marca img { height: 46px; width: auto; }
.marca .logo-claro { display: none; }
.menu-abierto .marca .logo-oscuro { display: none; }
.menu-abierto .marca .logo-claro { display: block; }
.pie__pestana img { width: 36px; height: 36px; object-fit: contain; }

/* Los trazos decorativos usan el degradado del logo */
.red__letra line { stroke: url(#gradN); }
.red__nodos .red__vertice { fill: var(--violeta); }
.mundos__conector path { stroke: url(#gradConector); }
.logos__trazo path { stroke: url(#gradTrazo); }

/* Pie de página sobre la franja del degradado */
.pie { background: var(--degradado); }
.pie__tagline .t-serif {
  background: var(--degradado);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   RESPONSIVE — Tablets (hasta 1100 px)
   ============================================================ */
@media (max-width: 1100px) {
  :root { --margen: 24px; }

  .hero { padding-top: 104px; }
  .red { position: relative; left: auto; top: auto; transform: none; width: min(420px, 70vw); margin: 12px auto 0; }
  .hero__pie { position: relative; left: auto; bottom: auto; width: 100%; max-width: 560px; margin-top: 8px; align-items: center; text-align: center; }
  .hero__ctas { justify-content: center; }
  .ticket {
    position: relative; right: auto; bottom: auto; width: 100%; max-width: 560px; height: auto; margin-top: 20px;
    display: grid; grid-template-columns: 56px 1fr 32px; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center;
  }
  .ticket__pista { grid-column: 1; grid-row: 1 / span 2; width: 56px; height: 34px; }
  .ticket__label { grid-column: 2; grid-row: 1; }
  .ticket__info { grid-column: 2; grid-row: 2; padding-top: 0; border-top: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .ticket__flecha { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

  .mundos__grid { column-gap: 60px; padding: 0 var(--margen); }
  .mundos__conector { display: none; }

  .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Proceso en vertical */
  .pista { display: none; }
  .pasos { position: relative; max-width: 720px; grid-template-columns: 1fr; gap: 16px; padding-left: 48px; margin-top: 48px; }
  .pasos::before { content: ''; position: absolute; left: 17px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--tinta); }
  .pasos::after {
    content: ''; position: absolute; left: 14px; top: 12px; width: 9px;
    height: calc((100% - 24px) * var(--avance, 0)); border-radius: 9px; background: var(--acento);
  }
  .paso { position: relative; min-height: 0; }
  .paso::before {
    content: ''; position: absolute; z-index: 1; left: -41px; top: 24px; width: 22px; height: 22px;
    border: 2.5px solid var(--tinta); border-radius: 50%; background: var(--papel);
    transition: background-color 0.3s ease;
  }
  .paso.on::before { background: var(--acento); }
  .proceso__nota { text-align: left; }

  .faq__grid { grid-template-columns: 1fr; }
  .faq__lado { position: static; }

  .contacto__grid { grid-template-columns: 1fr; }
  .formulario { max-width: 680px; }

  .pie__tarjeta { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; min-height: 0; padding: 90px 32px 40px; }
  .pie__centro { grid-column: 1 / -1; grid-row: 1; }
  .pie__nav { grid-column: 1; grid-row: 2; }
  .pie__contacto { grid-column: 2; grid-row: 2; }
  .pie__correo { grid-row: 3; }
}

/* ============================================================
   RESPONSIVE — Móviles (hasta 760 px)
   ============================================================ */
@media (max-width: 760px) {
  :root { --margen: 20px; }
  .seccion { padding: 72px 0; }

  .navbar { height: 64px; }
  .btn--nav { display: none; }
  .marca img { height: 34px; }
  .marca__nombre { font-size: 1.25rem; }
  .marca__sub { font-size: 1rem; }
  .navbar__menu { width: 44px; height: 44px; }

  .hero { padding-top: 84px; align-items: stretch; }
  .hero__tag { align-self: flex-start; padding: 6px 12px; font-size: 0.625rem; letter-spacing: 0.04em; }
  .hero__titulo { align-items: flex-start; text-align: left; }
  .red { width: min(260px, 70vw); }
  .hero__pie { align-items: stretch; text-align: left; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }

  .manifiesto { padding: 48px 0 72px; }
  .marquee--grande { font-size: 3.25rem; }
  .manifiesto__cuerpo { margin-top: 40px; }
  .valores { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .valores li { padding-top: 14px; }
  .valores h3 { font-size: 1.1875rem; }

  .mundos__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .mundo--sensor { align-items: flex-start; text-align: left; }
  .mundo--sensor .titulo-mixto { align-items: flex-start; }
  .mundo--sensor .chips { justify-content: flex-start; }
  .mundo .titulo-mixto { font-size: 3.5rem; }
  .mundo p { font-size: 1rem; }
  .mundos__fotos { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; padding: 0 var(--margen) 72px; }
  .mundos__puente { grid-column: 1 / -1; grid-row: 1; align-items: flex-start; padding-bottom: 8px; text-align: left; }
  .mundos .foto { height: 150px; padding: 12px; border: 1.5px solid var(--linea-clara); border-radius: 14px; font-size: 0.65rem; }

  /* Soluciones como lista desplegable */
  .filtros { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--margen) * -1); padding-right: var(--margen); scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex-shrink: 0; padding: 0 16px; font-size: 0.8125rem; }
  .tarjetas { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .tarjeta { height: auto; min-height: 88px; padding: 18px 12px 18px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
  .tarjeta__num { display: none; }
  .tarjeta__icono { position: static; order: 1; width: 48px; height: 48px; margin: 0; flex-shrink: 0; }
  .tarjeta__icono svg { width: 26px; height: 26px; }
  .tarjeta__titulo { order: 2; flex: 1; align-self: center; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 1rem; text-align: left; }
  .tarjeta__toggle { position: static; order: 3; flex-shrink: 0; }
  .tarjeta__desc { position: static; order: 4; flex-basis: 100%; display: none; transform: none; opacity: 1; font-size: 0.9375rem; line-height: 1.5; }
  .tarjeta.abierta .tarjeta__icono { opacity: 1; transform: none; }
  .tarjeta.abierta .tarjeta__desc { display: block; transform: none; }
  .franja-cta { margin-top: 48px; }
  .franja-cta .btn { width: 100%; }

  .resultados__pin { padding: 72px 0 36px; gap: 24px; }
  .r-foto { width: 270px; }
  .r-foto .foto, .r-foto .foto--chica { height: 330px; }
  .r-foto--baja { margin-top: 0; }
  .r-cifra, .r-cifra--alta, .r-cita { margin-top: 24px; }
  .r-cifra { width: 220px; min-height: 330px; padding: 20px; justify-content: flex-end; border: 1px solid var(--linea-oscura); border-radius: 14px; }
  .r-cifra__num { font-size: 4.5rem; }
  .r-cita blockquote p { font-size: 1.5rem; }

  .logos { margin-top: 48px; }
  .logos__lista li { height: 56px; padding: 0 20px; border-radius: 10px; font-size: 1.0625rem; }
  .logos__trazo { height: 200px; }
  .logos__trazo path { stroke-width: 16; }

  .faq__item summary { font-size: 1.125rem; }

  .contacto { padding: 100px 0 80px; }
  .contacto__curva { height: 50px; }
  .contacto__intro { font-size: 1.0625rem; }
  .formulario { padding: 24px; gap: 14px; }
  .formulario__fila { grid-template-columns: 1fr; gap: 14px; }

  .pie { padding: 70px 12px 36px; }
  .pie__tarjeta { padding: 60px 24px 28px; gap: 26px 16px; border-radius: 24px; }
  .pie__pestana { top: -22px; width: 120px; height: 44px; border-radius: 16px 16px 0 0; }
  .pie__pestana svg { width: 20px; height: 24px; }
  .pie__tagline { font-size: 2.75rem; }
  .pie__desc { font-size: 0.875rem; }
  .pie__nav a, .pie__contacto a, .pie__contacto span { font-size: 0.9375rem; }
  .pie__correo { width: 100%; padding: 0 12px; font-size: 0.72rem; white-space: normal; text-align: center; }

  .barra-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
    height: 68px; padding: 0 10px 0 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border: 1px solid var(--linea-clara); border-radius: 16px; background: var(--papel); color: var(--tinta);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(160%); transition: transform 0.35s ease;
  }
  .barra-cta span { font-size: 0.8125rem; color: var(--gris-sobre-claro); }
  .barra-cta.visible { transform: none; }
}

@media (max-width: 360px) {
  .barra-cta { justify-content: center; }
  .barra-cta span { display: none; }
}

/* ============================================================
   MOVIMIENTO REDUCIDO — respeta la preferencia del sistema
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__pista { animation: none !important; }
  .js .revelar { opacity: 1; transform: none; }
  .js .mundos__conector path { stroke-dashoffset: 0; }
}
