/* ==========================================================
   Landing agencia IA — estilos
   Colores y medidas principales en :root para cambiarlos fácil
   ========================================================== */
:root {
  --bg: #0a0d14;
  --bg-2: #0e1320;
  --cyan: #00e5ff;
  --violet: #8b5cf6;
  --blue: #3da5ff;
  --text: #ffffff;
  --muted: #9aa4b5;
  --muted-2: #6b7587;
  --border: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gradient-text {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 40%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Fondo animado ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; }
.bg-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; filter: blur(1.2px); }
.bg-glow {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: .35;
}
.bg-glow.g1 { width: 620px; height: 620px; left: -160px; top: 8%; background: #0f6b6b; }
.bg-glow.g2 { width: 700px; height: 700px; right: -220px; top: 18%; background: #4b2a8f; }
.bg-glow.g3 { width: 520px; height: 520px; left: 35%; bottom: -200px; background: #0b4a66; opacity: .25; }
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,13,20,0) 25%, rgba(10,13,20,.85) 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 13, 20, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; }
.logo-icon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--cyan);
  display: grid; place-items: center; color: #06121a;
  box-shadow: 0 0 24px rgba(0, 229, 255, .35);
}
.logo-icon svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 38px); white-space: nowrap; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .98rem; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-actions { white-space: nowrap; display: flex; align-items: center; gap: 22px; }
.nav-login { font-weight: 600; font-size: .98rem; }
.nav-login:hover { color: var(--cyan); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; color: #fff; place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--cyan); color: #04141b; box-shadow: 0 0 30px rgba(0, 229, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(0, 229, 255, .55); }
.btn-outline { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 229, 255, .04); }
.btn-outline:hover { background: rgba(0, 229, 255, .12); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: .95rem; border-radius: 10px; }
.btn-lg { padding: 20px 40px; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; padding: 130px 0 70px; display: flex; align-items: center; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .95rem;
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero h1 {
  font-size: clamp(2.4rem, 6.6vw, 5.4rem); line-height: 1.08; font-weight: 800;
  letter-spacing: -.025em; text-wrap: balance; margin: 28px auto 24px; max-width: 1100px;
}
.hero p.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.55rem); max-width: 780px; margin: 0 auto 44px; line-height: 1.5; }
.hero-cta { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.hero-cta .btn { padding: 22px 50px; font-size: 1.15rem; }
.trust { margin-top: 70px; }
.trust p { color: var(--muted); font-size: .95rem; margin: 0 0 22px; }
.trust-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 50px; }
.trust-logos span { color: rgba(255, 255, 255, .25); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block; color: var(--cyan); font-size: .85rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.glass {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.glass:hover { border-color: rgba(0, 229, 255, .35); box-shadow: 0 10px 40px rgba(0, 229, 255, .08); transform: translateY(-4px); }

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

.feature { padding: 30px 26px; }
.feature .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(0, 229, 255, .18), rgba(139, 92, 246, .18)); color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, .25);
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 10px; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Pasos */
.step { padding: 36px 30px; position: relative; }
.step .num {
  font-size: 3.4rem; font-weight: 800; line-height: 1; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin: 0 0 10px; font-size: 1.3rem; }
.step p { margin: 0; color: var(--muted); }

/* Precios */
.price-card { padding: 38px 32px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: rgba(0, 229, 255, .55); box-shadow: 0 0 60px rgba(0, 229, 255, .12); background: rgba(0, 229, 255, .04); }
.ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--cyan); color: #04141b;
  font-size: .78rem; font-weight: 700; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { margin: 0 0 6px; font-size: 1.35rem; }
.price-card .desc { color: var(--muted); margin: 0 0 22px; font-size: .96rem; }
.price { font-size: 2.8rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 12px; flex: 1; }
.price-card li { display: flex; gap: 10px; color: #d3d9e4; font-size: .98rem; }
.price-card li svg { width: 20px; height: 20px; color: var(--cyan); flex: none; margin-top: 3px; }
.note { text-align: center; color: var(--muted-2); font-size: .85rem; margin-top: 26px; }

/* Testimonios */
.quote { padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; }
.stars { color: #ffc94d; letter-spacing: 3px; font-size: 1.05rem; }
.quote blockquote { margin: 0; color: #d3d9e4; font-size: 1.02rem; flex: 1; }
.person { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #06121a; }
.person strong { display: block; font-size: .98rem; }
.person span { color: var(--muted); font-size: .85rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border-radius: 14px; overflow: hidden; }
.faq-item:hover { transform: none; }
.faq-q {
  width: 100%; background: none; border: 0; color: #fff; text-align: left; padding: 22px 26px; font-size: 1.08rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-q svg { width: 22px; height: 22px; color: var(--cyan); transition: transform .3s; flex: none; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { margin: 0; padding: 0 26px 24px; color: var(--muted); }

/* CTA / contacto */
.cta-box {
  padding: 64px 48px; text-align: center; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 229, 255, .10), rgba(139, 92, 246, .14));
  border: 1px solid rgba(0, 229, 255, .25);
}
.cta-box h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 14px; letter-spacing: -.02em; font-weight: 800; }
.cta-box > p { color: var(--muted); margin: 0 auto 36px; max-width: 600px; font-size: 1.1rem; }
.form { max-width: 640px; margin: 0 auto; text-align: left; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: rgba(10, 13, 20, .7); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; color: #fff; font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .15); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-size: .96rem; display: none; }
.form-msg.ok { display: block; background: rgba(0, 229, 255, .1); border: 1px solid rgba(0, 229, 255, .4); color: #aef3ff; }
.form-msg.err { display: block; background: rgba(255, 80, 100, .1); border: 1px solid rgba(255, 80, 100, .4); color: #ffb3bd; }
.form-legal { font-size: .82rem; color: var(--muted-2); text-align: center; margin: 0; }
.form-legal a { text-decoration: underline; }
.contact-alt { margin-top: 28px; color: var(--muted); font-size: .98rem; }
.contact-alt a { color: var(--cyan); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; background: rgba(10, 13, 20, .6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { margin: 0 0 16px; font-size: .95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: .94rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-grid p { color: var(--muted); font-size: .94rem; margin: 16px 0 0; max-width: 300px; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .86rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Cookies */
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 560px; z-index: 200; padding: 18px 20px;
  background: rgba(14, 19, 32, .95); border: 1px solid var(--border); border-radius: 14px; backdrop-filter: blur(12px);
  display: none; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--muted);
}
.cookie-bar.show { display: flex; }
.cookie-bar a { color: var(--cyan); text-decoration: underline; }
.cookie-bar .btn { padding: 9px 18px; font-size: .9rem; }

/* Modal demo */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(5, 7, 12, .8); display: none; place-items: center; padding: 20px; backdrop-filter: blur(6px); }
.modal.show { display: grid; }
.modal-box { width: min(860px, 100%); border-radius: 20px; background: var(--bg-2); border: 1px solid var(--border); padding: 28px; position: relative; }
.modal-box h3 { margin: 0 0 6px; font-size: 1.4rem; }
.modal-box > p { color: var(--muted); margin: 0 0 20px; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; width: 40px; height: 40px; }
.demo-chat { background: rgba(10, 13, 20, .8); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; font-size: .96rem; }
.msg.user { justify-self: end; background: var(--cyan); color: #04141b; border-bottom-right-radius: 4px; }
.msg.bot { justify-self: start; background: rgba(255, 255, 255, .07); border-bottom-left-radius: 4px; }

/* Páginas legales */
.legal { padding: 150px 0 80px; max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; letter-spacing: -.02em; }
.legal h2 { margin: 36px 0 10px; font-size: 1.3rem; }
.legal p, .legal li { color: #c3cad6; }
.legal .upd { color: var(--muted-2); font-size: .9rem; }
.legal a { color: var(--cyan); }

/* Animaciones de aparición */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge .dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 20px 24px;
    background: rgba(10, 13, 20, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li a { display: block; padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  .nav-login { display: none; }
  .grid-3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .nav { height: 66px; }
  .nav-links { top: 66px; }
  .logo { font-size: 1.15rem; }
  .logo-icon { width: 40px; height: 40px; border-radius: 12px; }
  .logo-icon svg { width: 23px; height: 23px; }
  .nav-actions .btn-sm { display: none; }
  .hero { padding-top: 110px; }
  .hero-cta .btn { padding: 17px 30px; width: 100%; max-width: 340px; }
  .trust-logos { gap: 14px 28px; }
  .trust-logos span { font-size: 1.05rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 44px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; }
}

.nav-cta-mobile { display: none; }
@media (max-width: 1000px) {
  .nav-cta-mobile { display: block; padding-top: 18px; }
  .nav-links li.nav-cta-mobile a { border-bottom: 0; text-align: center; color: #04141b; padding: 14px; }
}

.cta-buttons { margin-bottom: 40px; }
.cta-buttons .btn { padding: 18px 40px; }

/* ===== WhatsApp ===== */
.brand-name { white-space: nowrap; }
@media (max-width: 1180px) { .logo { font-size: 1.2rem; } }
.btn-whatsapp { background: #25d366; color: #06210f; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; }
.btn-whatsapp svg { width: 22px; height: 22px; flex: none; }
.btn-whatsapp:hover { background: #3ee57d; transform: translateY(-1px); }
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #06210f;
  box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 0 rgba(37,211,102,.5);
  transition: transform .2s, box-shadow .2s;
}
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab:hover { transform: scale(1.08); }
@media (max-width: 560px) { .wa-fab { right: 14px; bottom: 82px; width: 54px; height: 54px; } }
