/*
 * Datalive TV · Estilos de la página principal del sitio público (index.html).
 *
 * Variables de marca y base tipográfica, barra de navegación, portada con la maqueta de la TV,
 * carrusel de clientes, funcionalidades, pasos, tarjetas de sucursales (flujo de precios, videowall,
 * dispositivos y editor), cifras, preguntas frecuentes, formulario de contacto y pie. Solo depende
 * de la fuente Inter.
 */

:root {
  --fuente: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tinta: #0a1f3d;
  --tinta-2: #12315e;
  --texto: #0f172a;
  --texto-2: #425466;
  --texto-3: #6b7c93;
  --borde: #e6ebf1;
  --fondo: #ffffff;
  --fondo-suave: #f6f9fc;
  --marca: #2f7cf6;
  --marca-oscura: #1f5fd0;
  --violeta: #8b5cf6;
  --verde-agua: #3ec9c1;
  --celeste: #7cc4ff;
  --verde: #12b76a;
  --ok: #067647;
  --peligro: #c4320a;
  --degradado-marca: linear-gradient(90deg, #3ec9c1 0%, #2f7cf6 50%, #8b5cf6 100%);
  --radio: 12px;
  --radio-lg: 20px;
  --sombra-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --sombra-md: 0 12px 24px -8px rgba(16, 24, 40, 0.12), 0 2px 6px -2px rgba(16, 24, 40, 0.05);
  --sombra-lg: 0 30px 60px -20px rgba(10, 31, 61, 0.35), 0 8px 16px -8px rgba(10, 31, 61, 0.1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ancho: 1140px;
  --nav-alto: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-abierto {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.container {
  width: min(var(--ancho), 100% - 40px);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--tinta);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, box-shadow 0.18s, color 0.18s, border-color 0.18s;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  transition: transform 0.18s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--tinta);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--primary:hover {
  background: var(--tinta-2);
  transform: translateY(-1px);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn--ghost {
  background: transparent;
  color: var(--texto);
  border-color: var(--borde);
}

.btn--ghost:hover {
  background: var(--fondo-suave);
  border-color: #d5dce5;
}

.btn--link {
  background: transparent;
  color: var(--marca);
  padding: 0;
}

.btn--link:hover {
  color: var(--marca-oscura);
}

.btn--lg {
  height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

.btn--link.btn--lg {
  padding: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--marca);
}

/* Barra de navegación */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-alto);
  transition: background 0.25s, box-shadow 0.25s;
}

.nav.is-scrolled,
.nav.is-open {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--borde);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__brand img {
  height: 30px;
  width: auto;
}

.nav__word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--tinta);
}

.nav__word small {
  margin-left: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--texto-3);
  vertical-align: 2px;
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--texto-2);
  transition: color 0.15s, background 0.15s;
}

.nav__links a:hover {
  color: var(--texto);
  background: rgba(15, 23, 42, 0.05);
}

.nav__mobile-actions {
  display: none;
}

.nav__actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--tinta);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Portada */

.hero {
  position: relative;
  padding: calc(var(--nav-alto) + 72px) 0 150px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fc 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 110px), 0 100%);
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.hero__blob--1 {
  width: 560px;
  height: 560px;
  left: -120px;
  top: -160px;
  background: #b9f1ee;
  animation: derivar 18s ease-in-out infinite alternate;
}

.hero__blob--2 {
  width: 620px;
  height: 620px;
  right: -140px;
  top: -80px;
  background: #cfe0ff;
  animation: derivar 22s ease-in-out infinite alternate-reverse;
}

.hero__blob--3 {
  width: 520px;
  height: 520px;
  right: 18%;
  bottom: -220px;
  background: #e4d9ff;
  animation: derivar 26s ease-in-out infinite alternate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 31, 61, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 31, 61, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 100%);
}

@keyframes derivar {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(60px, 40px) scale(1.12);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  margin: 18px 0 22px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--tinta);
}

.rotator {
  display: inline-grid;
  vertical-align: top;
  text-align: left;
  transition: width 0.45s var(--ease);
}

.rotator__word {
  grid-area: 1 / 1;
  justify-self: start;
  white-space: nowrap;
  background: var(--degradado-marca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.rotator__word.is-active {
  opacity: 1;
  transform: none;
}

.rotator__word.is-leaving {
  opacity: 0;
  transform: translateY(-0.35em);
}

.hero__lead {
  max-width: 540px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--texto-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--texto-3);
}

.hero__proof strong {
  color: var(--texto);
  font-weight: 600;
}

.hero__proof a {
  color: var(--marca);
  font-weight: 500;
}

.hero__proof a:hover {
  text-decoration: underline;
}

/* Maqueta de la TV */

.hero__visual {
  position: relative;
  padding: 24px 0;
}

.tv {
  position: relative;
  padding: 10px;
  border-radius: 18px;
  background: #0b1220;
  box-shadow: var(--sombra-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(1400px) rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.5s var(--ease);
}

.tv::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -40px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(47, 124, 246, 0.35), transparent 70%);
  filter: blur(14px);
  z-index: -1;
}

.tv__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  container-type: inline-size;
}

.menu {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 3cqw 3.6cqw 0;
  color: #e2e8f0;
  background: radial-gradient(120% 80% at 85% 0%, #1e293b 0%, #0f172a 55%);
}

.menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 2.1cqw;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.menu__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5cqw;
  padding-top: 2.4cqw;
}

.menu__list li {
  display: flex;
  align-items: baseline;
  gap: 1cqw;
  padding: 1.55cqw 0;
  font-size: 2.9cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu__list li:last-child {
  border-bottom: 0;
}

.menu__list i {
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.22);
  transform: translateY(-0.5cqw);
}

.menu__list b {
  padding: 0 0.7cqw;
  border-radius: 0.8cqw;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.menu__list b.is-updated {
  animation: precioFlash 1.4s var(--ease);
}

@keyframes precioFlash {
  0% {
    background: transparent;
  }
  18% {
    background: #7dd3fc;
    color: #0f172a;
  }
  100% {
    background: transparent;
  }
}

.menu__promo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  padding: 3cqw;
  border-radius: 2cqw;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #3ec9c1 0%, #2f7cf6 55%, #8b5cf6 100%);
}

.menu__promo::before,
.menu__promo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  animation: flotar 7s ease-in-out infinite;
}

.menu__promo::before {
  width: 22cqw;
  height: 22cqw;
  right: -8cqw;
  top: -8cqw;
}

.menu__promo::after {
  width: 14cqw;
  height: 14cqw;
  left: -5cqw;
  bottom: -6cqw;
  animation-delay: -3s;
}

.menu__promo-tag {
  font-size: 1.9cqw;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.menu__promo strong {
  font-size: 3.3cqw;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.menu__promo em {
  margin-top: auto;
  font-style: normal;
  font-size: 5.2cqw;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.menu__ticker {
  margin-top: auto;
  padding: 1.8cqw 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 2.1cqw;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
}

.menu__ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: desplazarTexto 18s linear infinite;
}

@keyframes desplazarTexto {
  to {
    transform: translateX(-100%);
  }
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sombra-md);
  font-size: 13px;
  line-height: 1.3;
}

.float strong {
  display: block;
  font-weight: 600;
  color: var(--texto);
}

.float small {
  display: block;
  font-size: 12px;
  color: var(--texto-3);
}

.float__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eff5ff;
  color: var(--marca);
}

.float__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.float__icon--ok {
  background: #ecfdf3;
  color: var(--ok);
}

.float--publish {
  left: -26px;
  bottom: 44px;
  animation: flotar 6s ease-in-out infinite;
}

.float--schedule {
  right: -18px;
  top: 0;
  animation: flotar 7s ease-in-out infinite reverse;
}

.float--price {
  right: -10px;
  bottom: -6px;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

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

.float__cambio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.float__cambio s {
  color: var(--texto-3);
}

.float__cambio b {
  color: var(--marca);
  font-weight: 700;
}

.float__cambio svg {
  width: 14px;
  height: 14px;
  color: var(--texto-3);
}

@keyframes flotar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Carrusel de clientes */

.logos {
  padding: 24px 0 48px;
}

.logos__title {
  margin-bottom: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto-3);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__inner {
  display: flex;
  width: max-content;
}

.marquee__track {
  display: flex;
  align-items: center;
}

.marquee__track img {
  height: 40px;
  width: auto;
  max-width: 130px;
  margin: 0 36px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s, opacity 0.3s;
}

.marquee__track img:hover {
  filter: none;
  opacity: 1;
}

.marquee.is-ready .marquee__inner {
  animation: desplazarLogos 48s linear infinite;
}

.marquee:hover .marquee__inner {
  animation-play-state: paused;
}

@keyframes desplazarLogos {
  to {
    transform: translateX(-50%);
  }
}

/* Secciones */

.section {
  padding: 104px 0;
}

.section--alt {
  background: var(--fondo-suave);
}

.section__head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section__head h2 {
  margin: 14px 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
  color: var(--tinta);
}

.section__head p {
  font-size: 18px;
  color: var(--texto-2);
}

.section__head--light h2 {
  color: #fff;
}

.section__head--light p {
  color: rgba(255, 255, 255, 0.72);
}

.section__head--light .eyebrow {
  color: var(--celeste);
}

/* Funcionalidades */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(62, 201, 193, 0.18), rgba(47, 124, 246, 0.18));
  color: var(--marca);
  transition: transform 0.3s var(--ease);
}

.feature:hover .feature__icon {
  transform: translateY(-3px);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--tinta);
}

.feature p {
  font-size: 15.5px;
  color: var(--texto-2);
}

/* Cómo funciona */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.split__copy h2 {
  margin: 14px 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  color: var(--tinta);
}

.split__copy > p {
  font-size: 18px;
  color: var(--texto-2);
}

.steps {
  display: grid;
  gap: 22px;
  margin: 32px 0 36px;
}

.steps li {
  display: flex;
  gap: 16px;
}

.steps__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--borde);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sombra-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--marca);
}

.steps h3 {
  margin: 6px 0 4px;
  font-size: 17px;
  color: var(--tinta);
}

.steps p {
  font-size: 15.5px;
  color: var(--texto-2);
}

.steps a {
  color: var(--marca);
  font-weight: 500;
}

.steps a:hover {
  text-decoration: underline;
}

.split__media {
  margin: 0;
}

.split__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
}

.split__media figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--texto-3);
}

/* Tarjetas de sucursales y cadenas */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento__card {
  padding: 26px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  background: #fff;
  box-shadow: var(--sombra-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.bento__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-md);
}

.bento__card--wide {
  grid-column: span 2;
}

.bento__card h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  color: var(--tinta);
}

.bento__card p {
  font-size: 15.5px;
  color: var(--texto-2);
}

.flow {
  display: flex;
  align-items: center;
  min-height: 190px;
  padding: 8px 0;
}

.flow__node {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--fondo-suave);
  font-size: 13px;
  line-height: 1.35;
}

.flow__node small {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.flow__node strong {
  display: block;
  font-size: 14px;
  color: var(--tinta);
}

.flow__node span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--texto-3);
}

.flow__node--hub {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 118px;
  border-color: transparent;
  background: var(--tinta);
  color: #fff;
  text-align: center;
}

.flow__node--hub img {
  height: 26px;
  width: auto;
  margin-bottom: 4px;
}

.flow__node--hub strong {
  color: #fff;
}

.flow__node--hub span {
  color: rgba(255, 255, 255, 0.65);
}

.flow__node--tv {
  display: flex;
  flex-direction: column;
  padding-left: 26px;
  position: relative;
}

.flow__node--tv::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.2);
}

.flow__link {
  position: relative;
  flex: 1;
  min-width: 40px;
  height: 2px;
  background-image: linear-gradient(90deg, #c7d7f5 0 50%, transparent 50% 100%);
  background-size: 10px 2px;
}

.flow__link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--marca);
  box-shadow: 0 0 0 4px rgba(47, 124, 246, 0.18);
  animation: viajar 2.4s var(--ease) infinite;
}

.flow__fork {
  flex: 1.3;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 0;
}

.flow__fork .flow__link:nth-child(3)::after {
  animation-delay: -1.2s;
}

@keyframes viajar {
  0% {
    left: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

.wall {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  aspect-ratio: 16 / 10;
  padding: 6px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  animation: girarTono 12s linear infinite;
}

.wall i {
  border-radius: 4px;
  background-image: linear-gradient(120deg, #3ec9c1, #2f7cf6, #8b5cf6, #f472b6);
  background-size: 200% 200%;
}

.wall i:nth-child(1) {
  background-position: 0 0;
}

.wall i:nth-child(2) {
  background-position: 100% 0;
}

.wall i:nth-child(3) {
  background-position: 0 100%;
}

.wall i:nth-child(4) {
  background-position: 100% 100%;
}

.wall::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.35) 50%, transparent 58%);
  animation: barrer 4s linear infinite;
  pointer-events: none;
}

@keyframes barrer {
  from {
    transform: translateX(-60%);
  }
  to {
    transform: translateX(60%);
  }
}

@keyframes girarTono {
  to {
    filter: hue-rotate(360deg);
  }
}

.devices {
  display: grid;
  gap: 8px;
}

.devices li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: var(--fondo-suave);
  font-size: 13px;
  line-height: 1.3;
}

.devices li div {
  flex: 1;
}

.devices strong {
  display: block;
  font-weight: 600;
  color: var(--tinta);
}

.devices small {
  display: block;
  font-size: 12px;
  color: var(--texto-3);
}

.devices span {
  font-size: 12px;
  color: var(--texto-3);
}

.dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c1c9d4;
}

.dot--ok {
  background: var(--verde);
}

.dot--ok::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--verde);
  opacity: 0;
  animation: latir 2.4s ease-out infinite;
}

.devices li:nth-child(2) .dot--ok::after {
  animation-delay: -0.8s;
}

.devices li:nth-child(3) .dot--ok::after {
  animation-delay: -1.6s;
}

@keyframes latir {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.canvas {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
}

.canvas__art {
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 90% at 75% 20%, rgba(245, 158, 11, 0.45), transparent 70%), radial-gradient(40% 60% at 20% 90%, rgba(239, 68, 68, 0.35), transparent 70%), linear-gradient(160deg, #1e293b, #0f172a);
}

.canvas__layer {
  position: absolute;
  padding: 6px 10px;
  border: 1.5px dashed rgba(125, 211, 252, 0.9);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.canvas__layer::before,
.canvas__layer::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1.5px solid #7dd3fc;
  background: #0b1220;
}

.canvas__layer::before {
  left: -4px;
  top: -4px;
}

.canvas__layer::after {
  right: -4px;
  bottom: -4px;
}

.canvas__layer--text {
  left: 8%;
  top: 16%;
  font-size: clamp(16px, 2.4vw, 26px);
  animation: entrarTexto 5s var(--ease) infinite;
}

.canvas__layer--price {
  right: 8%;
  bottom: 30%;
  font-size: clamp(20px, 3vw, 34px);
  color: #fde68a;
  animation: latidoPrecio 2s ease-in-out infinite;
}

.canvas__layer--price small {
  font-size: 11px;
  font-weight: 500;
  color: #7dd3fc;
  vertical-align: middle;
}

@keyframes entrarTexto {
  0% {
    transform: translateX(-40px);
    opacity: 0;
  }
  15%,
  85% {
    transform: none;
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 0;
  }
}

@keyframes latidoPrecio {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.canvas__toolbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.canvas__toolbar span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 500;
  color: #e2e8f0;
}

/* Cifras */

.stats {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
  background: var(--tinta);
  color: #fff;
}

.stats::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 60%;
  height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(47, 124, 246, 0.35), transparent 70%);
  pointer-events: none;
}

.stats .container {
  position: relative;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 0 64px;
}

.stats__grid > div {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.stats dt {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.stats dd {
  margin: 8px 0 4px;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #7cc4ff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats__grid p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.stats__strip {
  margin: 0;
}

.stats__strip img {
  width: 100%;
  height: auto;
  border-radius: var(--radio-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.stats__strip figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Preguntas frecuentes */

.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.faq__head h2 {
  margin: 14px 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  color: var(--tinta);
}

.faq__head p {
  font-size: 17px;
  color: var(--texto-2);
}

.faq__head a {
  color: var(--marca);
  font-weight: 500;
}

.faq__head a:hover {
  text-decoration: underline;
}

.faq__item {
  border-top: 1px solid var(--borde);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--borde);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--tinta);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--texto-3);
  transition: transform 0.3s var(--ease);
}

.faq__item[open] summary svg {
  transform: rotate(45deg);
}

.faq__body {
  max-width: 62ch;
  padding: 0 0 22px;
  font-size: 15.5px;
  color: var(--texto-2);
  animation: aparecer 0.35s var(--ease);
}

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

/* Contacto */

.split--contact {
  grid-template-columns: 1fr 1.25fr;
  align-items: start;
}

.contact__list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.contact__list svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--marca);
}

.contact__list a:hover {
  text-decoration: underline;
}

.form {
  padding: 32px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  background: #fff;
  box-shadow: var(--sombra-md);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto-2);
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--texto);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--marca);
  box-shadow: 0 0 0 4px rgba(47, 124, 246, 0.16);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3aebe;
}

.g-recaptcha {
  margin: 20px 0 8px;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.form__status {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  color: var(--texto-2);
}

.form__status.is-ok {
  color: var(--ok);
}

.form__status.is-error {
  color: var(--peligro);
}

/* Pie */

.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--borde);
  background: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand p {
  max-width: 320px;
  margin: 18px 0 22px;
  font-size: 14.5px;
  color: var(--texto-2);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}

.store:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-1px);
}

.store svg {
  width: 26px;
  height: 26px;
  stroke: none;
}

.store span {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--tinta);
}

.store small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.footer__col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer__col h4 {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--tinta);
}

.footer__col a {
  font-size: 14.5px;
  color: var(--texto-2);
  transition: color 0.15s;
}

.footer__col a:hover {
  color: var(--marca);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--borde);
  font-size: 13px;
  color: var(--texto-3);
}

.footer__bottom a {
  color: var(--texto-2);
  font-weight: 500;
}

.footer__bottom a:hover {
  color: var(--marca);
}

/* Aparición al hacer scroll (solo con JavaScript activo) */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Pantallas medianas y celulares */

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: calc(var(--nav-alto) + 48px);
    padding-bottom: 120px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    width: 100%;
    max-width: 640px;
    justify-self: center;
    padding: 24px 12px;
  }

  .tv {
    --ry: -5deg;
    --rx: 2deg;
  }

  .float--publish {
    left: -4px;
  }

  .float--schedule {
    right: -4px;
  }

  .float--price {
    right: 4px;
  }

  .split,
  .faq {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--contact {
    grid-template-columns: 1fr;
  }

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

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

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: calc(var(--nav-alto) + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--borde);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--sombra-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

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

  .nav__links a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav__mobile-actions {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--borde);
  }

  .nav__mobile-actions .btn {
    justify-content: center;
    height: 46px;
  }

  .nav__actions {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--ancho), 100% - 32px);
  }

  body {
    font-size: 16px;
  }

  .section,
  .stats {
    padding: 72px 0;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__actions .btn--link {
    width: auto;
  }

  .float {
    padding: 8px 12px;
    font-size: 12px;
  }

  .features,
  .bento {
    grid-template-columns: 1fr;
  }

  .bento__card--wide {
    grid-column: span 1;
  }

  .flow {
    flex-direction: column;
    align-items: stretch;
  }

  .flow__node {
    min-width: 0;
  }

  .flow__link {
    width: 2px;
    min-width: 0;
    height: 36px;
    margin-inline: auto;
    background-image: linear-gradient(180deg, #c7d7f5 0 50%, transparent 50% 100%);
    background-size: 2px 10px;
  }

  .flow__link::after {
    left: 50%;
    top: 0;
    margin: 0 0 0 -4px;
    animation-name: viajarVertical;
  }

  .flow__fork {
    grid-template-columns: 1fr;
    gap: 0;
  }

  @keyframes viajarVertical {
    0% {
      top: 0;
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    88% {
      opacity: 1;
    }
    100% {
      top: calc(100% - 8px);
      opacity: 0;
    }
  }

  .form {
    padding: 22px 18px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 420px) {
  .g-recaptcha {
    transform: scale(0.86);
    transform-origin: 0 0;
  }
}

@media (max-width: 350px) {
  .g-recaptcha {
    transform: scale(0.74);
  }
}

/* Menos movimiento: sin animaciones decorativas */

@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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .rotator__word {
    transition: none;
  }

  .tv {
    transform: none;
  }
}
