/* ============================================================
   agente-voz.css — Landing agente de voz · bloque 3
   Usa tokens/base.css compartidos. Específico de esta landing.
============================================================ */

/* ---------- HERO ---------- */
.hero{position:relative;padding:clamp(2.5rem,5vw,4rem) 0 clamp(2.5rem,5vw,4rem);overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg .orb{position:absolute;width:520px;height:520px;border-radius:50%;filter:blur(90px);opacity:.16;background:radial-gradient(circle,rgba(0,229,255,.8),transparent 65%)}
.hero-bg .orb-1{top:-180px;right:-120px}
.grid-lines{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:56px 56px;mask-image:radial-gradient(ellipse 80% 70% at 50% 30%,#000 30%,transparent 75%)}
.hero-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.hero-copy .kicker{margin-bottom:1.2rem}
.hero h1{font-family:var(--display);font-weight:700;font-size:clamp(2rem,4.6vw,3.3rem);line-height:1.12;letter-spacing:-.02em}
.hero h1 .hl{color:var(--accent)}
.hero .sub{margin-top:1.1rem;color:var(--text-soft);font-size:1.02rem;max-width:56ch}
.price-note{margin-top:.9rem;font-family:var(--mono);font-size:.85rem;color:var(--text-fine)}
.price-note strong{color:var(--accent)}
.price-note .pte{color:var(--warn)}
.hero-ctas{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:1.6rem}

.hero-visual{display:grid;justify-items:center;gap:.8rem}
.orb-caption{font-family:var(--mono);font-size:.72rem;color:var(--text-mute);letter-spacing:.08em}

/* orbe de voz (mismo patrón que productos.css) */
.voice-orb{position:relative;width:min(240px,60vw);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(circle at 50% 40%,rgba(0,229,255,.14),rgba(0,229,255,.04) 55%,transparent 72%);
  border:1px solid var(--line-2);box-shadow:0 40px 90px -50px rgba(0,229,255,.6)}
.voice-orb::before,.voice-orb::after{content:"";position:absolute;inset:0;border-radius:50%;border:1px solid rgba(0,229,255,.35);animation:ring 3.4s ease-out infinite}
.voice-orb::after{animation-delay:1.7s}
@keyframes ring{0%{transform:scale(.7);opacity:.7}100%{transform:scale(1.25);opacity:0}}
.voice-orb .core{width:46%;aspect-ratio:1;border-radius:50%;background:var(--accent);display:grid;place-items:center;box-shadow:0 0 40px rgba(0,229,255,.5)}
.voice-orb .core svg{width:42%;height:42%;stroke:#04120f;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* ecualizador dentro del núcleo (barras oscuras sobre cian) */
.voice-orb .core .wave{display:flex;align-items:flex-end;gap:4px;height:34%}
.voice-orb .core .wave i{width:4px;height:22%;border-radius:2px;background:#04120f;transform-origin:bottom;animation:eq 1.1s ease-in-out infinite}
.voice-orb .core .wave i:nth-child(1){animation-delay:0s}.voice-orb .core .wave i:nth-child(2){animation-delay:.12s}
.voice-orb .core .wave i:nth-child(3){animation-delay:.24s}.voice-orb .core .wave i:nth-child(4){animation-delay:.36s}
.voice-orb .core .wave i:nth-child(5){animation-delay:.48s}.voice-orb .core .wave i:nth-child(6){animation-delay:.6s}
.voice-orb .core .wave i:nth-child(7){animation-delay:.72s}.voice-orb .core .wave i:nth-child(8){animation-delay:.84s}
.voice-orb .core .wave i:nth-child(9){animation-delay:.96s}
@keyframes eq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(2.6)}}
@media (prefers-reduced-motion: reduce){
  .voice-orb::before,.voice-orb::after{animation:none}
  .voice-orb .core .wave i{animation:none}
  .voice-orb .core .wave i:nth-child(1){height:22%}.voice-orb .core .wave i:nth-child(2){height:44%}
  .voice-orb .core .wave i:nth-child(3){height:30%}.voice-orb .core .wave i:nth-child(4){height:58%}
  .voice-orb .core .wave i:nth-child(5){height:40%}.voice-orb .core .wave i:nth-child(6){height:62%}
  .voice-orb .core .wave i:nth-child(7){height:48%}.voice-orb .core .wave i:nth-child(8){height:34%}
  .voice-orb .core .wave i:nth-child(9){height:26%}
}
/* estabilidad del H1 con el typewriter: el rotador vive en SU PROPIA linea (display:block)
   y reserva altura de 1 linea — el texto fijo de arriba NUNCA se reflowa */
.hero h1 .typed-line{display:block;min-height:1.25em}
.hero h1 .tw-cursor::after{content:"▌";color:var(--accent);animation:twBlink 1s steps(1) infinite;margin-left:1px}
@keyframes twBlink{0%,49%{opacity:1}50%,100%{opacity:0}}

/* ---------- SECCIONES ---------- */
.sec{padding:clamp(3.4rem,7vw,5.5rem) 0}
.sec.alt{background:var(--bg-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sec + .sec{border-top:1px solid var(--line)}
.head{margin-bottom:2.2rem}
.head h2{font-family:var(--display);font-weight:700;font-size:clamp(1.5rem,3.2vw,2.2rem);line-height:1.18;letter-spacing:-.015em;margin-top:.7rem}
.head h2 .hl2{color:var(--accent)}
.head-sub{margin-top:.6rem;color:var(--text-soft)}
.wrap.narrow{max-width:820px}

/* ---------- DOLOR ---------- */
.dolor-grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}
.dolor-item{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem 1.2rem;transition:border-color .2s}
.dolor-item:hover{border-color:var(--accent-dim)}
.dolor-item .d-ico{font-size:1.4rem;display:block;margin-bottom:.6rem}
.dolor-item strong{display:block;font-size:1rem;margin-bottom:.35rem}
.dolor-item p{color:var(--text-soft);font-size:.92rem}

/* ---------- DEMO / LLAMADA ---------- */
.demo-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(1.4rem,3vw,2.2rem);align-items:start}

/* pasos explicativos (se iluminan sincronizados con la llamada) */
.demo-steps{list-style:none;display:grid;gap:.7rem}
.dstep{display:flex;gap:.9rem;align-items:flex-start;padding:1rem 1.1rem;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-sm);opacity:.45;transition:opacity .3s,border-color .3s,background .3s}
.dstep .ds-num{font-family:var(--mono);font-size:.78rem;color:var(--accent);letter-spacing:.08em;padding-top:.15rem}
.dstep strong{display:block;font-size:.98rem;margin-bottom:.25rem}
.dstep p{color:var(--text-soft);font-size:.88rem}
.dstep.active{opacity:1;border-color:var(--accent-dim);background:rgba(0,229,255,.045)}
@media (prefers-reduced-motion: reduce){.dstep{opacity:1}}

/* caja de llamada compacta (reproductor) */
.call.small{max-width:460px;margin-left:auto}
.call.small .call-lines{padding:1rem .9rem;display:flex;flex-direction:column;justify-content:flex-end;gap:.7rem;height:400px;overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 52px);mask-image:linear-gradient(180deg,transparent 0,#000 52px)}
.call.small:not(.playing) .call-lines{height:auto}
.call.small .line{max-width:94%}
.call.small .line p{font-size:.9rem}
.call.small .line.note p{font-size:.72rem}
/* modo reproduccion: las lineas aparecen una a una */
.call.playing .call-lines .line{display:none}
.call.playing .call-lines .line.show{display:grid;animation:lineIn .4s ease both}
@keyframes lineIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.call.playing .call-lines .line.show{animation:none}}

@media(max-width:880px){
  .demo-grid{grid-template-columns:1fr}
  .call.small{max-width:none;margin:0}
  .call.small .call-lines{height:340px}
}

.call{background:var(--panel);border:1px solid var(--line-2);border-radius:var(--radius);overflow:hidden;max-width:760px;box-shadow:0 30px 70px -45px rgba(0,0,0,.9)}
.call-head{display:flex;align-items:center;gap:.6rem;font-family:var(--mono);font-size:.74rem;letter-spacing:.06em;color:var(--text-fine);padding:.75rem 1.1rem;border-bottom:1px solid var(--line);background:rgba(0,229,255,.03)}
.call-lines{list-style:none;padding:1.2rem 1.1rem;display:grid;gap:.8rem}
.call-lines .line{display:grid;gap:.25rem;max-width:88%}
.call-lines .line .who{font-family:var(--mono);font-size:.68rem;letter-spacing:.08em;color:var(--text-mute);text-transform:uppercase}
.call-lines .line p{font-size:.97rem}
.call-lines .bot{justify-self:start}
.call-lines .bot p{background:rgba(0,229,255,.07);border:1px solid rgba(0,229,255,.18);border-radius:var(--radius-sm);border-top-left-radius:4px;padding:.65rem .9rem}
.call-lines .user{justify-self:end;text-align:right}
.call-lines .user p{background:var(--panel-2);border:1px solid var(--line);border-radius:var(--radius-sm);border-top-right-radius:4px;padding:.65rem .9rem}
.call-lines .note{justify-self:center;text-align:center;max-width:100%;margin-top:.3rem}
.call-lines .note p{font-family:var(--mono);font-size:.78rem;color:var(--accent);border:1px dashed var(--accent-dim);border-radius:999px;padding:.45rem 1rem}
.call-foot{font-family:var(--mono);font-size:.72rem;color:var(--text-mute);padding:.8rem 1.1rem;border-top:1px solid var(--line)}

/* ---------- PASOS ---------- */
.steps{list-style:none;counter-reset:st;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.step{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.2rem}
.step .s-num{font-family:var(--mono);font-size:.78rem;color:var(--accent);letter-spacing:.1em;display:block;margin-bottom:.5rem}
.step strong{display:block;font-size:1.02rem;margin-bottom:.4rem}
.step p{color:var(--text-soft);font-size:.92rem}
.roadmap{margin-top:1.2rem;font-family:var(--mono);font-size:.75rem;color:var(--text-mute)}

/* ---------- PRECIO ---------- */
.price-card{max-width:560px;margin:0 auto;background:var(--panel);border:1px solid var(--line-2);border-radius:var(--radius);padding:clamp(1.4rem,3vw,2rem);text-align:center;box-shadow:0 30px 70px -45px rgba(0,229,255,.35)}
.p-price{display:grid;justify-items:center;gap:.15rem;margin-bottom:1.2rem}
.p-from{font-family:var(--mono);font-size:.78rem;color:var(--text-mute);letter-spacing:.1em;text-transform:uppercase}
.p-amount{font-family:var(--display);font-weight:700;font-size:clamp(2.4rem,6vw,3.4rem);color:var(--accent);line-height:1}
.p-amount .pte{font-family:var(--mono);font-size:.7rem;color:var(--warn);display:block;margin-top:.4rem;letter-spacing:.06em}
.p-per{color:var(--text-soft);font-size:.9rem}
.p-includes{list-style:none;text-align:left;margin:0 auto 1.4rem;max-width:420px;display:grid;gap:.55rem}
.p-includes li{padding-left:1.5rem;position:relative;color:var(--text-soft);font-size:.95rem}
.p-includes li::before{content:"✓";position:absolute;left:0;color:var(--accent);font-weight:700}
.p-fine{margin-top:1rem;font-family:var(--mono);font-size:.72rem;color:var(--text-mute)}

/* ---------- FAQ ---------- */
.faq{display:grid;gap:.7rem}
.faq details{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-sm);padding:0}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.2rem;font-weight:600;font-size:.98rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary .chev{flex:none;width:9px;height:9px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(45deg);transition:transform .2s;margin-bottom:4px}
.faq details[open] summary .chev{transform:rotate(225deg);margin-top:6px;margin-bottom:0}
.faq details p{padding:0 1.2rem 1.1rem;color:var(--text-soft);font-size:.94rem}

/* ---------- CTA FINAL ---------- */
.cita-ctas{display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center}
.cita .head{text-align:center}
.cita-fine{margin-top:1.3rem;text-align:center;font-family:var(--mono);font-size:.78rem;color:var(--text-mute)}
.cita-fine a{color:var(--accent)}
.cita-fine a:hover{text-decoration:underline}

/* ---------- REVEAL fallback sin scroll.js (sin GSAP o reduced-motion) ---------- */
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1 !important;transform:none !important}
}
html.no-motion .reveal{opacity:1;transform:none}

/* ---------- MÓVIL ---------- */
@media(max-width:880px){
  .hero{padding-top:4.2rem}
  .hero-grid{grid-template-columns:1fr;gap:2.2rem}
  .hero-visual{order:-1}
  .voice-orb{width:min(200px,52vw)}
  .call-lines .line{max-width:96%}
}
