/* ===========================================================
   AGENT PRO — by MBW Developers
   =========================================================== */

:root {
  --navy-950: #06070f;
  --navy-900: #0a0e24;
  --navy-850: #0d1030;
  --navy-700: #11163a;
  --navy-600: #1a1f4a;

  --blue-700: #1a4acd;
  --blue-600: #2255dd;
  --blue-500: #2a5fd4;
  --blue-400: #3a6fea;
  --blue-300: #7fb3ff;

  --gold-700: #9a7000;
  --gold-500: #C8A020;
  --gold-300: #e3c463;

  --ink: #0d1030;
  --ink-soft: #333355;
  --paper: #ffffff;
  --paper-soft: #f4f6fc;
  --line: #e3e6f3;

  --text-on-dark: #eef0fb;
  --text-on-dark-soft: #b9bfe2;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 60px -20px rgba(13, 16, 48, 0.35);
  --shadow-md: 0 14px 30px -12px rgba(13, 16, 48, 0.25);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-600); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(26, 74, 205, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(26, 74, 205, .65); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--text-on-dark);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(6,7,15,.55), rgba(6,7,15,0));
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(7, 9, 24, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -16px rgba(0,0,0,.5);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { filter: drop-shadow(0 0 10px rgba(58,111,234,.55)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .5px; color: #fff;
}
.brand-text small { font-size: .74rem; font-weight: 500; color: var(--blue-300); letter-spacing: .3px; }
.accent-gold { color: var(--gold-500); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: .92rem; font-weight: 500; color: var(--text-on-dark);
  opacity: .85; transition: opacity .15s ease;
}
.main-nav a:hover { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: #fff; margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 100px;
  background: radial-gradient(130% 130% at 24% -10%, #243170 0%, #131a48 32%, #0a0e24 60%, var(--navy-950) 100%);
  overflow: hidden;
  color: var(--text-on-dark);
}
.hero h1, .hero h2, .hero h3 { color: #fff; }

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.network-bg-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.network-canvas[data-theme="dark"] { opacity: .55; }
.network-canvas[data-theme="light"] { opacity: .42; }
.has-network-bg { position: relative; overflow: hidden; }
.has-network-bg > .container { position: relative; z-index: 1; }
.glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .7; animation: floaty 9s ease-in-out infinite; }
.glow-blue { width: 620px; height: 620px; background: radial-gradient(circle, rgba(80,140,255,.55), transparent 70%); top: -180px; right: -160px; }
.glow-gold { width: 420px; height: 420px; background: radial-gradient(circle, rgba(200,160,32,.4), transparent 70%); bottom: -120px; left: -100px; animation-delay: -4s; }
.glow-center {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 420px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(140,180,255,.35), transparent 65%);
}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 22px); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}

.brand-badge {
  display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 500;
  color: var(--text-on-dark); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px 8px 10px; border-radius: 999px; margin-bottom: 26px;
}
.brand-badge strong { color: #fff; font-weight: 700; }
.brand-badge-mark { filter: drop-shadow(0 0 8px rgba(127,179,255,.6)); }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .3px;
  color: var(--blue-300); background: rgba(58,111,234,.14); border: 1px solid rgba(58,111,234,.35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow strong { color: #fff; }

.hero-title { margin: 0 0 18px; }
.agentpro-word { display: inline-flex; align-items: center; gap: 18px; }
.agentpro-word-icon {
  filter: drop-shadow(0 0 16px rgba(58,111,234,.65));
  animation: pulseGlow 3.2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(58,111,234,.55)); }
  50% { filter: drop-shadow(0 0 26px rgba(58,111,234,.9)); }
}
.agentpro-word span > span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.1rem, 7.5vw, 5.4rem); letter-spacing: 1px; line-height: 1;
}
.gp-agent {
  background: linear-gradient(120deg, #ffffff 0%, var(--blue-300) 55%, var(--blue-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 46px rgba(127,179,255,.55);
}
.gp-pro {
  color: var(--gold-500);
  text-shadow: 0 0 40px rgba(200,160,32,.7);
}

.hero-subtitle {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; color: #fff;
  margin: 0 0 18px; line-height: 1.3; max-width: 50ch;
}

.text-gradient {
  background: linear-gradient(100deg, var(--blue-300), var(--gold-300) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(227,196,99,.4);
}

.hero-lead { font-size: 1.08rem; color: var(--text-on-dark-soft); max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 38px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin: 0; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.hero-stats dd { margin: 2px 0 0; font-size: .78rem; color: var(--text-on-dark-soft); }

/* Chat mockup */
.hero-visual { display: flex; justify-content: center; }
.chat-mock {
  width: 100%; max-width: 360px;
  background: rgba(14, 18, 46, .72);
  border: 1px solid rgba(127, 179, 255, .25);
  border-radius: 22px;
  box-shadow: var(--shadow-lg), 0 0 60px -10px rgba(58,111,234,.35);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.chat-mock-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.chat-mock-head strong { display: block; font-size: .88rem; color: #fff; }
.chat-mock-head .online { font-size: .72rem; color: #6be39a; }
.chat-mock-head .online::before { content: '● '; }
.chat-mock-body { min-height: 320px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }

.chat-msg {
  max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: .88rem; line-height: 1.4;
  opacity: 0; transform: translateY(8px); animation: msgIn .35s ease forwards;
}
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }
.chat-msg.client { align-self: flex-end; background: var(--blue-500); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.ana { align-self: flex-start; background: rgba(255,255,255,.08); color: var(--text-on-dark); border: 1px solid rgba(255,255,255,.1); border-bottom-left-radius: 4px; }
.chat-msg.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 16px; background: rgba(255,255,255,.08); border-radius: 14px; }
.chat-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-300); animation: blink 1s infinite ease-in-out; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Sections (generic) ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-soft); }
.section-dark {
  background: radial-gradient(120% 140% at 100% 0%, #11163a 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--text-on-dark);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-lead { color: var(--text-on-dark-soft); }

.section-tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 10px;
}
.section-dark .section-tag { color: var(--blue-300); }
.section-lead { max-width: 62ch; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Compare (problema/solucion) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 42px; }
.compare-col {
  border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line);
}
.compare-col h3 { margin-bottom: 18px; }
.compare-col ul { display: flex; flex-direction: column; gap: 13px; }
.compare-col li { font-size: .96rem; padding-left: 28px; position: relative; color: var(--ink-soft); }
.compare-before { background: #fff; }
.compare-before li::before { content: '✕'; position: absolute; left: 0; color: #c23b5c; font-weight: 700; }
.compare-after { background: linear-gradient(155deg, #eef3ff, #fbf6e8); border-color: rgba(58,111,234,.25); }
.compare-after li::before { content: '✓'; position: absolute; left: 0; color: var(--blue-600); font-weight: 700; }
.compare-after h3 { color: var(--blue-700); }

/* ---------- Modules ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.module-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-md);
  border-top: 4px solid var(--blue-500);
  transition: transform .2s ease, box-shadow .2s ease;
}
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.module-card-accent { border-top-color: var(--gold-500); }
.module-num {
  font-family: var(--font-display); font-size: .85rem; font-weight: 700; letter-spacing: 1px;
  color: var(--blue-500); margin-bottom: 10px;
}
.module-card-accent .module-num { color: var(--gold-700); }
.module-kicker { color: var(--ink-soft); font-size: .92rem; margin-bottom: 18px; }
.module-card ul { display: flex; flex-direction: column; gap: 11px; }
.module-card li {
  font-size: .92rem; padding-left: 22px; position: relative; color: var(--ink-soft);
}
.module-card li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--gold-500));
}

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.benefit {
  padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.benefit-icon { font-size: 1.8rem; display: inline-block; margin-bottom: 12px; }
.benefit h3 { font-size: 1.05rem; }
.benefit p { color: var(--text-on-dark-soft); font-size: .92rem; margin: 0; }

/* ---------- MBW section ---------- */
.mbw-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.mbw-logo-frame { display: flex; justify-content: center; }
.mbw-logo-frame img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.mbw-copy p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- CTA / Contact ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-info a { color: var(--blue-300); text-decoration: underline; }

.contact-form {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--text-on-dark-soft); }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: .95rem; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.16);
  background: rgba(6,7,15,.4); color: #fff; resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(167,173,209,.55); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue-400); border-color: transparent; }
.form-note { font-size: .85rem; min-height: 1.2em; margin: 0; color: #6be39a; }
.form-note.error { color: #ff9aa8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-soft); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; max-width: 26ch; }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .9rem; opacity: .85; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { padding: 22px 0 28px; font-size: .8rem; opacity: .7; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .mbw-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .compare { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7,9,24,.98); backdrop-filter: blur(10px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 0 36px; transform: translateX(100%); transition: transform .25s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.3rem; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .hero { padding: 130px 0 70px; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 18px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   PÁGINAS LEGALES (Privacidad / Términos)
   =========================================================== */
.legal-hero {
  padding: 150px 0 54px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-850) 55%, var(--paper-soft) 100%);
}
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .86rem; font-weight: 600; color: var(--blue-300);
  margin-bottom: 22px; opacity: .9;
}
.legal-back:hover { opacity: 1; color: #fff; }
.legal-hero h1 { color: #fff; margin-bottom: 10px; }
.legal-meta { color: var(--text-on-dark-soft); font-size: .95rem; margin: 0; }

.legal-body { padding: 54px 0 100px; background: var(--paper); }
.legal-wrap {
  display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start;
}

.legal-callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #ecd28c; border-radius: var(--radius-sm);
  padding: 18px 20px; margin-bottom: 40px; font-size: .92rem; color: #5c4a14; line-height: 1.6;
}
.legal-callout strong { color: #3d3008; }

.legal-toc {
  position: sticky; top: 110px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 18px; font-size: .88rem;
}
.legal-toc h2 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-soft); margin-bottom: 12px; font-family: var(--font-body); font-weight: 700;
}
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 9px; padding: 0; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--blue-600); }
.legal-toc a::before { content: counter(toc) ". "; color: var(--blue-500); font-weight: 700; }

.legal-content section { margin-bottom: 46px; padding-top: 4px; }
.legal-content h2 {
  font-size: 1.35rem; border-bottom: 2px solid var(--line); padding-bottom: 12px; margin-bottom: 16px;
}
.legal-content h3 { font-size: 1.02rem; margin-top: 22px; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: .98rem; }
.legal-content ul { padding-left: 22px; margin-bottom: 1em; }
.legal-content ul li { margin-bottom: 7px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9rem; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.legal-content th { background: var(--paper-soft); font-family: var(--font-display); }

.legal-placeholder {
  background: #fde8e8; color: #9a2f25; padding: 1px 7px; border-radius: 5px; font-weight: 600; white-space: nowrap;
}

.legal-footnote {
  margin-top: 56px; padding: 20px 22px; border-radius: var(--radius-sm);
  background: var(--paper-soft); border-left: 4px solid var(--blue-500);
  font-size: .88rem; color: var(--ink-soft); line-height: 1.6;
}

@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
