/* ==========================================================
   AVIPRE · Avicultura de Precisión
   Sistema visual propio basado en la identidad de
   Avícola Los Cámbulos (rojo, amarillo yema, negro).
   ========================================================== */

:root {
  /* Marca */
  --red: #E2231A;
  --red-deep: #B5130C;
  --red-soft: #FF5A4E;
  --yolk: #FFC21A;

  /* Neutros */
  --ink: #0E0D0C;
  --ink-2: #171513;
  --ink-3: #221F1C;
  --paper: #F5F0E6;
  --paper-2: #ECE4D4;
  --line-dark: rgba(255, 255, 255, .09);
  --line-paper: rgba(14, 13, 12, .12);
  --text-dark: #F3EEE6;
  --muted-dark: #A39C92;
  --muted-paper: #6B645B;

  /* Tipografía */
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Code", monospace;

  /* Ritmo */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--yolk); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yolk); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.d-block { display: block !important; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 500 15px/1 var(--f-body);
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, box-shadow .35s, color .3s;
  white-space: nowrap;
}
.btn i { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover i { transform: translate(2px, -2px); }
.btn--red { box-shadow: 0 10px 30px -10px rgba(226, 35, 26, .7); }
.btn--red:hover { background: var(--red-soft); box-shadow: 0 16px 40px -12px rgba(226, 35, 26, .9); }
.btn--sm { padding: .7em 1.15em; font-size: 14px; }
.btn--ghost { --bg: transparent; --fg: var(--text-dark); padding-left: .6em; }
.btn--ghost .play {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  font-size: 18px;
  transition: background .3s, border-color .3s;
}
.btn--ghost:hover .play { background: var(--yolk); border-color: var(--yolk); color: var(--ink); }
.btn--ghost:hover i { transform: none; }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ink:hover { background: #000; }
.btn--line { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.5); }
.btn--line:hover { background: #fff; color: var(--red); }

/* ---------- Revelado ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; inset: 16px 0 auto; z-index: 100;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 20px);
  margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(23, 21, 19, .55);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.nav.is-scrolled .nav__pill { background: rgba(14, 13, 12, .86); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.nav.is-hidden .nav__pill { transform: translateY(-140%); }

.nav__brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { width: 30px; height: 30px; color: var(--red); display: grid; }
.brand-mark svg { width: 100%; height: 100%; }
.nav__word { font: 800 19px/1 var(--f-display); letter-spacing: .02em; }

.nav__menu { display: flex; gap: 4px; margin: 0 auto; }
.nav__menu a {
  position: relative;
  padding: 9px 14px; border-radius: 999px;
  color: var(--muted-dark); font-size: 14px; font-weight: 500;
  transition: color .25s, background .25s;
}
.nav__menu a:hover { color: #fff; }
.nav__menu a.is-active { color: #fff; background: rgba(255,255,255,.08); }

.nav__toggle { display: none; }

@media (max-width: 1080px) {
  .nav__menu a { padding: 9px 10px; }
}
@media (max-width: 960px) {
  .nav__pill { gap: 12px; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line-dark); background: transparent; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 16px; height: 1.5px; background: #fff; transition: transform .35s var(--ease); }
  .nav-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav__menu {
    position: fixed; left: var(--gutter); right: var(--gutter); top: 80px;
    flex-direction: column; gap: 2px; padding: 12px;
    border-radius: 24px;
    background: rgba(14, 13, 12, .96);
    border: 1px solid var(--line-dark);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .4s var(--ease), visibility .3s;
  }
  .nav__menu a { padding: 14px 16px; font-size: 17px; color: var(--text-dark); }
  .nav-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 520px) {
  .nav__cta { padding: .65em .9em; font-size: 13px; }
  .nav__word { font-size: 17px; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: clamp(720px, 100vh, 1000px);
  padding: 150px 0 0;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--text-dark);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -200px; top: -250px;
  background: radial-gradient(circle, rgba(226,35,26,.42) 0%, rgba(226,35,26,.08) 40%, transparent 65%);
  filter: blur(20px);
  animation: glow 12s ease-in-out infinite alternate;
}
.hero__glow::after {
  content: ""; position: absolute; left: -300px; top: 520px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,194,26,.16), transparent 60%);
}
@keyframes glow { to { transform: translate(-80px, 60px) scale(1.08); } }

.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: 90px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.03);
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-dark);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--yolk); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--yolk); animation: ping 2s ease-out infinite;
}
@keyframes ping { to { transform: scale(3); opacity: 0; } }

.hero__title {
  margin: 28px 0 26px;
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}
.hero__title em { color: var(--yolk); font-size: 1.04em; letter-spacing: -.02em; }
.hero__title em:last-of-type { color: var(--red-soft); }

.hero__lead { max-width: 540px; font-size: 18px; color: var(--muted-dark); }
.hero__lead strong { color: var(--text-dark); font-weight: 500; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__users { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.avatars { display: flex; }
.avatars img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--ink); margin-left: -10px;
}
.avatars img:first-child { margin-left: 0; }
.hero__users p { font-size: 14px; line-height: 1.4; color: var(--muted-dark); }
.hero__users strong { color: var(--text-dark); font-weight: 600; }

/* Consola */
.hero__visual { position: relative; perspective: 1400px; }
.console {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, #1D1A17, #121110);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 50px 100px -30px rgba(0,0,0,.8),
    0 30px 80px -40px rgba(226,35,26,.55);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.console__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  font: 400 12px/1 var(--f-mono); color: var(--muted-dark);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #3A3632; }
.dots i:first-child { background: var(--red); }
.dots i:nth-child(2) { background: var(--yolk); }
.console__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #7BE495; letter-spacing: .08em; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.console__screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.console__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.console__expand {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-size: 15px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(14,13,12,.6); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0; transform: scale(.9);
  transition: opacity .3s, transform .35s var(--ease), background .3s;
}
.console:hover .console__expand, .console__expand:focus-visible { opacity: 1; transform: none; }
.console__expand:hover { background: var(--red); border-color: var(--red); }
@media (hover: none) { .console__expand { opacity: 1; transform: none; } }

/* Modal de video */
.vmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); }
.vmodal[hidden] { display: none; }
.vmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8,7,6,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .3s ease;
}
.vmodal__box {
  position: relative; width: min(1200px, 100%);
  animation: popIn .45s var(--ease);
}
.vmodal__video {
  display: block; width: 100%; max-height: 82vh; aspect-ratio: 16 / 9;
  border-radius: 18px; background: #000;
  box-shadow: 0 40px 120px -30px rgba(226,35,26,.5), 0 0 0 1px rgba(255,255,255,.1);
}
.vmodal__close {
  position: absolute; right: 0; top: -54px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff;
  cursor: pointer; transition: background .3s, transform .35s var(--ease);
}
.vmodal__close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.scanline {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255,194,26,.07) 50%, transparent 100%);
  height: 30%;
  animation: scan 5s linear infinite;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }

.console__kpis { display: grid; grid-template-columns: repeat(3, 1fr); }
.kpi { position: relative; padding: 14px 16px 12px; border-right: 1px solid var(--line-dark); }
.kpi:last-child { border-right: 0; }
.kpi__label { display: block; font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted-dark); }
.kpi__value { display: block; margin-top: 8px; font: 600 26px/1 var(--f-display); color: #fff; letter-spacing: -.02em; }
.kpi__value small { font-size: .5em; color: var(--muted-dark); margin-left: 2px; }
.spark { width: 100%; height: 26px; margin-top: 8px; overflow: visible; }
.spark path {
  fill: none; stroke: var(--yolk); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: draw 2.4s .8s var(--ease) forwards;
}
.spark--down path { stroke: #7BE495; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Chips flotantes */
.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 12px;
  border-radius: 16px;
  background: rgba(28, 25, 22, .82);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.7);
  font-size: 13px; line-height: 1.3;
}
.chip b { display: block; color: #fff; font-weight: 600; }
.chip span { color: var(--muted-dark); font-size: 12px; }
.chip > i { font-size: 18px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.chip--alert { top: -26px; left: -38px; }
.chip--alert > i { background: rgba(226,35,26,.18); color: var(--red-soft); }
.chip--voice { bottom: 88px; right: -34px; }
.chip--sync { bottom: -30px; left: 18%; }
.chip--sync > i { background: rgba(123,228,149,.15); color: #7BE495; }

.wave { display: flex; align-items: center; gap: 3px; width: 34px; height: 34px; justify-content: center; border-radius: 10px; background: rgba(255,194,26,.15); }
.wave i { width: 3px; height: 8px; border-radius: 2px; background: var(--yolk); animation: eq 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; }
.wave i:nth-child(4) { animation-delay: .45s; } .wave i:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 50% { height: 20px; } }

.float-a { animation: float 7s ease-in-out infinite; }
.float-b { animation: float 8s ease-in-out -2s infinite; }
.float-c { animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Ticker */
.ticker {
  position: relative;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker__track span {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 22px 0 22px 28px;
  font: 500 clamp(20px, 2.4vw, 30px)/1 var(--f-display);
  color: rgba(243,238,230,.85);
  letter-spacing: -.01em;
}
.ticker__track span::after { content: "✦"; color: var(--red); font-size: .55em; }
.ticker__track span:nth-child(3n+2) { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--yolk); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   PILARES
   ========================================================== */
.pillars { background: var(--ink); color: var(--text-dark); padding: 0 0 8px; }
.pillars__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar {
  display: flex; align-items: center; gap: 18px;
  padding: 34px 28px;
  border-right: 1px solid var(--line-dark);
}
.pillar:last-child { border-right: 0; }
.pillar > i {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px;
  color: var(--yolk); background: rgba(255,194,26,.08);
  border: 1px solid rgba(255,194,26,.18);
}
.pillar h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.pillar p { color: var(--muted-dark); font-size: 14px; margin-top: 4px; }

/* ==========================================================
   SECCIONES
   ========================================================== */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper2 { background: var(--paper-2); color: var(--ink); }
.section--ink { background: var(--ink); color: var(--text-dark); }

/* Grano sutil en papel */
.section--paper::before, .section--paper2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.section > .wrap { position: relative; }

.sec-head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 900px; }
.sec-head h2, .faq__head h2, .support__info h2 {
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -.035em;
}
.section--paper .sec-head h2 em, .faq__head h2 em, .support__info h2 em { color: var(--red); }
.section--ink .sec-head h2 em { color: var(--yolk); }
.sec-num {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .1em;
  color: var(--red);
}
.sec-num::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--ink .sec-num { color: var(--yolk); }

.sec-head--split { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.sec-head--split > p { color: var(--muted-dark); font-size: 18px; max-width: 420px; justify-self: end; }
.sec-head--center { text-align: center; margin-inline: auto; }

/* ==========================================================
   BENTO
   ========================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 18px;
}
.tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  background: #FFFDF8;
  border: 1px solid var(--line-paper);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(14,13,12,.35); }
.tile h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; margin: 18px 0 10px; }
.tile p { color: var(--muted-paper); }
.tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
  background: rgba(226,35,26,.08); color: var(--red);
}
.tag--light { background: rgba(255,255,255,.16); color: #fff; }

.tile--voice { grid-column: span 7; grid-row: span 2; }
.tile--2fa { grid-column: span 5; }
.tile--mobile { grid-column: span 5; }
.tile--ai { grid-column: span 12; flex-direction: row; gap: 40px; align-items: center; }
.tile--ai .tile__top { flex: 1; }

.tile--dark { background: var(--ink-2); border-color: var(--ink-2); color: var(--text-dark); }
.tile--dark p { color: var(--muted-dark); }
.tile--dark .tag { background: rgba(255,194,26,.12); color: var(--yolk); }
.tile--red { background: var(--red); border-color: var(--red); color: #fff; }
.tile--red p { color: rgba(255,255,255,.8); }

/* Demo de voz */
.voice-demo {
  margin-top: auto;
  padding: 28px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--text-dark);
}
.voice-demo__wave { display: flex; align-items: center; gap: 5px; height: 70px; }
.voice-demo__wave i {
  flex: 1; height: 20%; border-radius: 4px;
  background: linear-gradient(180deg, var(--yolk), var(--red));
  animation: eq2 1.3s ease-in-out infinite;
}
.voice-demo__wave i:nth-child(odd) { animation-duration: 1.05s; }
.voice-demo__wave i:nth-child(3n) { animation-duration: 1.6s; }
.voice-demo__wave i:nth-child(4n) { animation-delay: -.4s; }
.voice-demo__wave i:nth-child(5n) { animation-delay: -.8s; }
@keyframes eq2 { 50% { height: 100%; } }
.voice-demo__quote { margin: 22px 0 18px; font: italic 400 clamp(22px, 2.4vw, 30px)/1.2 var(--f-serif); color: #fff; }
.voice-demo__fields { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-demo__fields span {
  display: inline-flex; flex-direction: column; gap: 4px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark);
  font: 600 16px/1 var(--f-display);
}
.voice-demo__fields small { font: 400 10px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted-dark); }
.voice-demo__fields .ok { justify-content: center; align-items: center; background: #7BE495; color: var(--ink); border: 0; font-size: 20px; width: 48px; }

/* OTP */
.otp { display: flex; align-items: center; gap: 8px; margin: auto 0 18px; }
.otp span {
  flex: 1; max-width: 52px; aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  font: 600 26px/1 var(--f-mono); color: #fff;
  animation: otp 4s ease-in-out infinite;
}
.otp b { width: 10px; height: 2px; background: var(--muted-dark); }
.otp span:nth-of-type(2) { animation-delay: .12s; } .otp span:nth-of-type(3) { animation-delay: .24s; }
.otp span:nth-of-type(4) { animation-delay: .36s; } .otp span:nth-of-type(5) { animation-delay: .48s; }
.otp span:nth-of-type(6) { animation-delay: .6s; }
@keyframes otp { 0%, 60%, 100% { border-color: var(--line-dark); } 70%, 90% { border-color: var(--yolk); color: var(--yolk); } }
.tile__foot { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tile__foot i { color: #7BE495; }

/* Red */
.net { margin-top: auto; display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--f-mono); }
.net__state { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.18); white-space: nowrap; }
.net__bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.net__bar i { display: block; height: 100%; width: 40%; background: var(--yolk); border-radius: 3px; animation: sync 2.2s var(--ease) infinite; }
@keyframes sync { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Chat */
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.chat p { padding: 12px 16px; border-radius: 16px; font-size: 15px; max-width: 90%; }
.chat__me { align-self: flex-end; background: var(--ink); color: #fff !important; border-bottom-right-radius: 4px; }
.chat__bot { align-self: flex-start; background: var(--paper); color: var(--ink) !important; border: 1px solid var(--line-paper); border-bottom-left-radius: 4px; }
.chat__bot i { color: var(--red); margin-right: 4px; }
.chat__typing { align-self: flex-start; display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--line-paper); }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-paper); animation: typing 1.2s infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; } .chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: .4; } }

/* ==========================================================
   MÓDULOS
   ========================================================== */
.modules { padding-top: 0; }

.cycle {
  list-style: none; margin: 0 0 clamp(48px, 7vw, 90px); padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.cycle::before {
  content: ""; position: absolute; top: 27px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.6s .3s var(--ease);
}
.cycle.is-in::before { transform: scaleX(1); }
.cycle li { display: flex; flex-direction: column; align-items: center; gap: 14px; font: 600 15px/1.2 var(--f-display); text-align: center; position: relative; }
.cycle__dot {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px;
  background: var(--paper); border: 2px solid var(--ink); color: var(--ink);
  transition: background .4s, color .4s, border-color .4s;
}
.cycle li:last-child .cycle__dot { background: var(--ink); color: var(--yolk); }
.cycle li:hover .cycle__dot { background: var(--red); border-color: var(--red); color: #fff; }

.modules__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); }
.modules__media { position: relative; }
.media-frame {
  position: sticky; top: 120px;
  aspect-ratio: 3 / 2.2;
  border-radius: 28px; overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 40px 80px -40px rgba(14,13,12,.5);
}
.media-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.media-frame img.is-active { opacity: 1; transform: none; }
.media-frame__label {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(14,13,12,.85); color: #fff;
  font: 500 12px/1 var(--f-mono); letter-spacing: .06em;
  backdrop-filter: blur(8px);
}

.module {
  min-height: min(78vh, 760px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0;
  opacity: .28;
  transition: opacity .6s var(--ease);
}
.module.is-current { opacity: 1; }
.module__img { display: none; }
.module__idx {
  font: 400 clamp(64px, 8vw, 120px)/.8 var(--f-serif); font-style: italic;
  color: var(--red);
}
.module h3 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.035em; margin: 18px 0 12px; }
.module__lead { font-size: 19px; color: var(--muted-paper); margin-bottom: 26px; max-width: 460px; }

.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-paper); }
.checks li {
  position: relative;
  padding: 13px 0 13px 34px;
  border-bottom: 1px solid var(--line-paper);
  font-size: 15.5px;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ==========================================================
   FUNCIONES
   ========================================================== */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.feat {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  isolation: isolate;
}
.feat::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(226,35,26,.22), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.feat:hover::before { opacity: 1; }
.feat__n { position: absolute; top: 22px; right: 24px; font: 400 12px/1 var(--f-mono); color: var(--muted-dark); }
.feat > i {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  font-size: 24px; color: var(--yolk);
  border: 1px solid rgba(255,194,26,.25);
  background: rgba(255,194,26,.06);
  margin-bottom: 56px;
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.feat:hover > i { transform: rotate(-8deg) scale(1.08); background: var(--yolk); color: var(--ink); }
.feat h3 { font-size: 23px; letter-spacing: -.02em; margin-bottom: 10px; }
.feat p { color: var(--muted-dark); font-size: 15px; }

/* ==========================================================
   MÓVIL
   ========================================================== */
.mobile { padding-top: 0; overflow: hidden; }
.mobile .sec-head h2 { max-width: 880px; margin-inline: auto; }
.mobile__layout { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.mobile__col { display: grid; gap: 18px; }
.mfeat {
  padding: 24px;
  border-radius: 20px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  transition: border-color .4s, transform .5s var(--ease);
}
.mfeat:hover { border-color: rgba(255,194,26,.35); transform: translateY(-3px); }
.mfeat i { font-size: 22px; color: var(--yolk); }
.mfeat h3 { font-size: 19px; letter-spacing: -.015em; margin: 14px 0 8px; }
.mfeat p { font-size: 14.5px; color: var(--muted-dark); }

.phone { position: relative; width: clamp(240px, 24vw, 320px); }
.phone__img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 50px 60px rgba(0,0,0,.6)); animation: float 8s ease-in-out infinite; }
.phone::before {
  content: ""; position: absolute; inset: 10% -30%;
  background: radial-gradient(circle, rgba(226,35,26,.45), transparent 60%);
  filter: blur(30px);
}
.phone__orbit { position: absolute; inset: 50% auto auto 50%; }
.phone__orbit span {
  position: absolute; left: 0; top: 0;
  border-radius: 50%; border: 1px dashed rgba(255,194,26,.25);
  transform: translate(-50%, -50%);
  animation: spin 40s linear infinite;
}
.phone__orbit span:first-child { width: 440px; height: 440px; }
.phone__orbit span:last-child { width: 620px; height: 620px; border-color: rgba(255,255,255,.07); animation-direction: reverse; animation-duration: 60s; }
.phone__orbit span::after {
  content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--yolk); box-shadow: 0 0 20px var(--yolk);
}
.phone__orbit span:last-child::after { background: var(--red); box-shadow: 0 0 20px var(--red); left: auto; right: -5px; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.capture {
  margin-top: clamp(56px, 7vw, 90px);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: linear-gradient(120deg, rgba(226,35,26,.08), rgba(255,194,26,.04));
}
.capture__label { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--yolk); }
.capture__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.capture__row div { font-size: 14.5px; color: var(--muted-dark); padding-left: 16px; border-left: 2px solid var(--red); }
.capture__row b { display: block; color: #fff; font: 600 17px/1.2 var(--f-display); margin-bottom: 6px; }

/* ==========================================================
   CTA
   ========================================================== */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(100px, 13vw, 180px) 0;
  background: var(--red);
  color: #fff; text-align: center;
}
.cta__rings { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.cta__rings span {
  grid-area: 1 / 1;
  width: 40vw; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  animation: ripple 9s linear infinite;
}
.cta__rings span:nth-child(2) { animation-delay: -3s; }
.cta__rings span:nth-child(3) { animation-delay: -6s; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.cta h2 { font-size: clamp(48px, 9vw, 140px); line-height: .92; letter-spacing: -.045em; }
.cta h2 em { color: var(--yolk); }
.cta p { max-width: 560px; margin: 28px auto 0; font-size: 19px; color: rgba(255,255,255,.88); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__head p { margin-top: 20px; color: var(--muted-paper); font-size: 18px; }
.faq__list { border-top: 1px solid var(--ink); }
.faq__list details { border-bottom: 1px solid var(--line-paper); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  font: 600 clamp(18px, 1.8vw, 22px)/1.3 var(--f-display); letter-spacing: -.015em;
  transition: color .3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--red); }
.faq__list summary i {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-paper);
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.faq__list details[open] summary i { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: #fff; }
.faq__list details p { padding: 0 64px 28px 0; color: var(--muted-paper); font-size: 16.5px; }

/* ==========================================================
   SOPORTE
   ========================================================== */
.support { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.support__info > p { margin-top: 20px; color: var(--muted-paper); font-size: 17px; max-width: 440px; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.contact-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px; border-radius: 18px;
  background: rgba(255,255,255,.5); border: 1px solid var(--line-paper);
}
.contact-list i {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: 19px;
  background: var(--ink); color: var(--yolk);
}
.contact-list div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-list small { font: 500 11px/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted-paper); }
.contact-list a, .contact-list span { font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--red); }

.form {
  padding: clamp(26px, 4vw, 44px);
  border-radius: 28px;
  background: var(--ink); color: var(--text-dark);
  box-shadow: 0 40px 80px -40px rgba(14,13,12,.6);
}
.form h3 { font-size: 30px; letter-spacing: -.025em; }
.form > p { color: var(--muted-dark); margin: 8px 0 28px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  padding: 26px 16px 10px;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.04);
  color: #fff;
  font: 400 16px/1.4 var(--f-body);
  resize: vertical;
  transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yolk); background: rgba(255,255,255,.06); }
.field span {
  position: absolute; left: 17px; top: 18px;
  color: var(--muted-dark); font-size: 15px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s;
}
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span {
  transform: translateY(-10px) scale(.75); color: var(--yolk);
}
.form .loading, .form .error-message, .form .sent-message { display: none; margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.form .loading { background: rgba(255,255,255,.06); }
.form .error-message { background: rgba(226,35,26,.18); color: #FFB4AE; }
.form .sent-message { background: rgba(123,228,149,.15); color: #7BE495; }
.form .btn { width: 100%; justify-content: center; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--ink); color: var(--text-dark); padding: 90px 0 30px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
.footer__logo { display: inline-block; padding: 10px 16px; border-radius: 16px; background: #fff; }
.footer__logo img { height: 70px; width: auto; }
.footer__brand p { margin-top: 20px; max-width: 320px; color: var(--muted-dark); font-size: 14.5px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 30px; }
.footer__cols h4 { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--yolk); margin-bottom: 18px; }
.footer__cols a { display: block; padding: 5px 0; color: var(--muted-dark); font-size: 14.5px; overflow-wrap: anywhere; transition: color .25s; }
.footer__cols a:hover { color: #fff; }
.footer__word {
  margin: 70px 0 10px;
  font: 800 clamp(80px, 22vw, 330px)/.8 var(--f-display);
  letter-spacing: -.06em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(226,35,26,.35), transparent 75%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line-dark);
  font-size: 13px; color: var(--muted-dark);
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: var(--red); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(226,35,26,.8);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-soft); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .chip--alert { left: -10px; }
  .chip--voice { right: -10px; }
}

@media (max-width: 960px) {
  .hero { padding-top: 130px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 100px; }
  .hero__visual { max-width: 640px; margin-top: 30px; }
  .console { transform: none; }

  .pillars__row { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 24px 0; }
  .pillar:last-child { border-bottom: 0; }

  .sec-head--split { grid-template-columns: 1fr; gap: 20px; }
  .sec-head--split > p { justify-self: start; }

  .tile--voice, .tile--2fa, .tile--mobile { grid-column: span 12; grid-row: auto; }
  .tile--ai { flex-direction: column; align-items: stretch; }
  .chat { max-width: none; }

  .modules__layout { grid-template-columns: 1fr; }
  .modules__media { display: none; }
  .module { min-height: 0; opacity: 1; padding: 0 0 70px; }
  .module__img { display: block; width: 100%; border-radius: 22px; margin-bottom: 28px; aspect-ratio: 3 / 2; object-fit: cover; }

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

  .mobile__layout { grid-template-columns: 1fr; }
  .phone { order: -1; margin: 0 auto 30px; }
  .phone__orbit span:first-child { width: 360px; height: 360px; }
  .phone__orbit span:last-child { width: 500px; height: 500px; }
  .mobile__col { grid-template-columns: 1fr 1fr; }
  .mobile__col .mfeat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .capture__row { grid-template-columns: 1fr; gap: 18px; }

  .faq, .support { grid-template-columns: 1fr; }
  .faq__head { position: static; }

  .footer__top { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  .hero__title { font-size: clamp(40px, 11.5vw, 56px); }
  .hero__lead { font-size: 16.5px; }
  .chip { padding: 9px 12px 9px 10px; font-size: 12px; }
  .chip > i, .wave { width: 28px; height: 28px; font-size: 15px; }
  .chip--alert { top: -24px; left: -4px; }
  .chip--voice { display: none; }
  .chip--sync { left: auto; right: -4px; bottom: -26px; }
  .kpi { padding: 12px 10px 10px; }
  .kpi__value { font-size: 20px; }
  .kpi__label { font-size: 9.5px; }
  .console__title { font-size: 11px; }

  .bento { gap: 12px; }
  .voice-demo { padding: 20px; }
  .otp { gap: 5px; }
  .otp span { font-size: 20px; border-radius: 10px; }
  .net { flex-wrap: wrap; }
  .net__bar { flex-basis: 100%; order: 3; }

  .cycle { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .cycle::before { display: none; }

  .features { grid-template-columns: 1fr; }
  .feat > i { margin-bottom: 32px; }

  .mobile__col { grid-template-columns: 1fr; }
  .phone__orbit { display: none; }

  .faq__list details p { padding-right: 0; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .spark path { stroke-dashoffset: 0; }
}
