/* =================================================================
   ERICK ADS AI — Marca personal · Paid Media + IA + Email
   Tema claro (fondo blanco) con acentos de marca azul/cian.
   ================================================================= */

:root {
  /* --- Paleta de marca --- */
  --bg:        #ffffff;   /* fondo principal */
  --bg-2:      #ffffff;   /* tarjetas */
  --bg-3:      #f3f6fd;   /* secciones / superficies alternas (azul muy claro) */
  --text:      #0b1020;   /* texto principal */
  --text-soft: #46536e;   /* texto secundario */
  --muted:     #7c889e;   /* texto tenue */
  --line:      #e7ebf3;
  --line-2:    #d6dded;

  --accent:    #2563eb;   /* azul */
  --accent-d:  #1d4fd0;   /* azul oscuro (hover) */
  --accent-2:  #22d3ee;   /* cian */
  --white:     #ffffff;
  --wa:        #25d366;   /* WhatsApp */
  --grad:      linear-gradient(105deg, #22d3ee 0%, #2563eb 70%);

  /* --- Tipografía --- */
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;

  /* --- Layout --- */
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 12px rgba(20,30,60,.06);
  --shadow:    0 20px 48px -22px rgba(20,40,90,.28);
  --shadow-lg: 0 40px 90px -34px rgba(20,40,90,.40);
  --glow:      0 10px 28px -10px rgba(37,99,235,.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code { font-family: ui-monospace, monospace; font-size: .9em; color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Tipografía base ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.3rem; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-light { color: #fff; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-light { color: var(--accent); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head-center { text-align: center; margin-inline: auto; max-width: 700px; }
.section-head-center .eyebrow { display: block; margin-bottom: 14px; }
.section-sub { color: var(--text-soft); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Botones (sólidos, limpios) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 999px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(37,99,235,.6); }
.btn-pill { background: var(--accent); color: #fff; padding: .65em 1.3em; font-size: .9rem; }
.btn-pill:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line-2); color: var(--text); background: var(--white); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--accent); box-shadow: 0 16px 40px -18px rgba(0,0,0,.4); }
.btn-light:hover { transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn-wa { background: var(--wa); color: #04240f; font-weight: 700; }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(37,211,102,.5); }
.wa-icon { width: 20px; height: 20px; }
.btn-wa-sm { padding: .7em 1.2em; font-size: .9rem; }

/* ---------- Marca / Logotipo ---------- */
.brand { display: inline-flex; align-items: center; gap: .55em; }
.brand-iso { color: var(--accent); display: inline-flex; }
.brand-iso svg { width: 30px; height: 30px; }
.brand-word { font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; font-size: 1.04rem; color: var(--text); display: inline-flex; align-items: center; gap: .35em; }
.brand-bar { width: 2px; height: 1em; background: var(--line-2); display: inline-block; }
.brand-ai { color: var(--accent); }

/* ---------- Splash / Intro (universo + robot + logo) ---------- */
#splash {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, #0b1430 0%, #060a18 55%, #02030a 100%);
  display: grid; place-items: center; animation: splashOut .7s ease 3s forwards;
}
.splash-space { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.splash-stage { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.splash-rings { position: absolute; top: 38%; left: 50%; transform: translate(-50%,-50%); width: 1px; height: 1px; }
.splash-rings span {
  position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border: 1.5px solid rgba(37,99,235,.5); border-radius: 50%; opacity: 0; animation: ringPulse 2.4s ease-out infinite;
}
.splash-rings span:nth-child(2) { animation-delay: .6s; }
.splash-rings span:nth-child(3) { animation-delay: 1.2s; }
@keyframes ringPulse { 0%{ transform: scale(.4); opacity:.8; } 100%{ transform: scale(2.6); opacity:0; } }
.splash-robot { position: relative; opacity: 0; transform: scale(.12); filter: blur(14px); animation: robotIn 1.15s cubic-bezier(.2,.9,.3,1.25) .7s forwards; }
.splash-robot img, .splash-robot .robot-companion { width: clamp(150px, 32vw, 260px); }
.splash-robot .robot-companion-img { filter: drop-shadow(0 0 46px rgba(37,99,235,.65)); }
.splash-companion { animation: floaty 4s ease-in-out 1.9s infinite; }
.splash-robot .splash-iso { display: none; color: var(--accent); }
.splash-robot.no-robot .splash-iso { display: block; }
.splash-robot.no-robot .splash-iso svg { width: clamp(90px, 18vw, 140px); height: auto; filter: drop-shadow(0 8px 30px rgba(37,99,235,.6)); }
.splash-word { opacity: 0; transform: translateY(14px); animation: wordIn .7s cubic-bezier(.2,.8,.2,1) 2s forwards; }
.splash-word .brand-word { font-size: clamp(1.2rem, 4vw, 1.9rem); color: #fff; }
.splash-word .brand-bar { background: rgba(255,255,255,.4); }
.splash-word .brand-ai { color: var(--accent-2); }
@keyframes robotIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wordIn { to { opacity: 1; transform: none; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
#splash.done { display: none; }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, box-shadow .3s; padding: 8px 0; }
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 10px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--text-soft); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; flex-direction: column; gap: 6px; padding: 12px var(--gut) 22px; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.nav-mobile a { padding: 12px 6px; font-weight: 500; border-radius: 10px; color: var(--text-soft); }
.nav-mobile a:hover { background: var(--bg-3); color: var(--text); }
.nav-mobile .btn-pill { margin-top: 8px; justify-content: center; color: #fff; }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 90px; overflow: hidden; background: linear-gradient(180deg, #f7f9ff, #ffffff 60%); }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: 0;
  background:
    radial-gradient(38% 48% at 16% 22%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(34% 42% at 84% 16%, rgba(34,211,238,.12), transparent 60%);
  animation: meshFloat 16s ease-in-out infinite alternate;
}
@keyframes meshFloat { to { transform: translate3d(0,-4%,0) scale(1.06); } }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px,5vw,64px); align-items: center; }
.hero-text { max-width: 620px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero-title { font-size: clamp(2.6rem, 7.5vw, 5.2rem); font-weight: 800; margin-bottom: 22px; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-soft); max-width: 600px; margin-bottom: 32px; }
.hero-lead strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .92rem; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; margin-left: -10px; border: 2px solid var(--bg); background: var(--accent); }
.avatars span:nth-child(2){ background: #22d3ee; }
.avatars span:nth-child(3){ background: #2563eb; }
.avatars span:nth-child(4){ background: #6aa0ff; }
.avatars span:first-child { margin-left: 0; }

/* Hero figura/foto */
.hero-figure { position: relative; margin: 0; }
.hero-photo {
  position: relative; aspect-ratio: 4/5; border-radius: 26px; overflow: hidden;
  background: linear-gradient(150deg, #0e1830, #15264a 55%, #2563eb);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 8%, rgba(34,211,238,.25), transparent 60%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.hero-badge { position: absolute; left: -18px; bottom: 26px; z-index: 2; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); display: grid; line-height: 1.1; }
.hero-badge strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--accent); }
.hero-badge small { color: var(--muted); font-size: .74rem; max-width: 120px; }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-hint span { display: block; width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: var(--accent); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0%,100%{ opacity:0; transform: translate(-50%,0);} 50%{ opacity:1; transform: translate(-50%,10px);} }

/* ---------- Stats ---------- */
.stats { padding: clamp(70px, 9vw, 120px) 0; }
.stats-claim { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 3.8vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; max-width: 900px; margin: 0 auto clamp(44px,6vw,68px); text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1; color: var(--accent); }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; }

/* ---------- Sobre mí / posicionamiento ---------- */
.band { padding: clamp(50px,7vw,90px) 0; }
.band-inner { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(28px,5vw,60px); align-items: center; }
.band-photo { margin: 0; }
.band-photo-frame { position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: linear-gradient(150deg, #0e1830, #15264a, #2563eb); box-shadow: var(--shadow); border: 1px solid var(--line); }
.band-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.band-copy h2 { font-size: clamp(1.7rem,4vw,2.7rem); margin: 12px 0 16px; }
.band-copy p { color: var(--text-soft); font-size: 1.08rem; }
.band-copy p strong { color: var(--text); }

/* ---------- Servicios ---------- */
.services { padding: clamp(60px, 8vw, 110px) 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; background: linear-gradient(180deg, rgba(37,99,235,.05), transparent 60%); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card-featured { border-color: var(--accent); box-shadow: var(--glow); }
.card-tag { position: absolute; top: 18px; right: 18px; z-index: 2; font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .04em; background: var(--accent); color: #fff; padding: 5px 11px; border-radius: 999px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(37,99,235,.10); color: var(--accent); margin-bottom: 20px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: .98rem; margin-bottom: 18px; }
.card p strong { color: var(--text); }
.card-link { font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: .95rem; }
.card-link:hover { color: var(--accent-d); }

/* Tarjeta "Próximamente" */
.card-soon { background: var(--bg-3); border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.card-soon .card-icon { color: var(--muted); background: rgba(124,136,158,.12); }
.card-soon h3 { color: var(--text-soft); }
.card-tag-soon { background: var(--muted); color: #fff; }
.card-soon .card-link { color: var(--muted); }
.card-soon:hover .card-link { color: var(--accent); }

/* ---------- Metodología ---------- */
.method { padding: clamp(60px,8vw,110px) 0; }
.method-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--accent); margin-bottom: 12px; }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: .9rem; }

/* ---------- Sectores (marquee) ---------- */
.clients { padding: clamp(40px,6vw,70px) 0 clamp(50px,7vw,90px); }
.clients-title { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 34px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-chip { font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; color: var(--text-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 28px; white-space: nowrap; background: var(--bg-2); font-size: .95rem; transition: color .3s, border-color .3s; }
.logo-chip:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Para quién ---------- */
.audience { padding: clamp(40px,6vw,80px) 0 clamp(60px,8vw,110px); }
.audience-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.audience-copy h2 { margin: 14px 0 14px; }
.audience-copy p { color: var(--text-soft); font-size: 1.05rem; }
.checklist { display: grid; gap: 14px; }
.checklist li { position: relative; padding: 16px 18px 16px 52px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s; }
.checklist li:hover { transform: translateX(4px); border-color: var(--line-2); }
.checklist li::before { content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* ---------- Contacto / Agenda ---------- */
.newsletter { padding: clamp(60px,8vw,110px) 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,56px); align-items: stretch; background: var(--bg-3); border: 1px solid var(--line); border-radius: 28px; padding: clamp(34px,5vw,56px); position: relative; overflow: hidden; }
.newsletter-inner::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 80%; background: radial-gradient(circle, rgba(37,99,235,.14), transparent 65%); }
.newsletter-copy { position: relative; z-index: 1; }
.newsletter-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; aspect-ratio: 16/10; background: linear-gradient(150deg,#0e1830,#15264a,#2563eb); border: 1px solid var(--line); }
.newsletter-photo img { width: 100%; height: 100%; object-fit: cover; }
.newsletter-copy h2 { margin: 14px 0 16px; }
.newsletter-lead { color: var(--text-soft); margin-bottom: 20px; }
.newsletter-lead strong { color: var(--text); }
.newsletter-points { display: grid; gap: 10px; margin-bottom: 26px; }
.newsletter-points li { position: relative; padding-left: 26px; color: var(--text-soft); font-size: .95rem; }
.newsletter-points li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: #fff; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: .7rem; line-height: 18px; }

/* Panel de agenda */
.scheduler { position: relative; z-index: 1; display: flex; }
.scheduler-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,3vw,34px); width: 100%; box-shadow: var(--shadow); }
.scheduler-icon { color: var(--accent); display: inline-flex; margin-bottom: 14px; }
.scheduler-icon svg { width: 40px; height: 40px; }
.scheduler-card h3 { margin-bottom: 8px; }
.scheduler-card > p { color: var(--text-soft); font-size: .96rem; margin-bottom: 18px; }
.scheduler-mount:empty { display: none; }
.scheduler-mount iframe { width: 100%; min-height: 560px; border: 0; border-radius: var(--radius-sm); background: #fff; }
.scheduler-hint { font-size: .85rem; color: var(--muted); background: var(--bg-3); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.scheduler-mount:not(:empty) + .scheduler-hint { display: none; }
.scheduler-cta { margin-top: 4px; }

/* ---------- Máquina de crecimiento (orbital animado) ---------- */
.machine { padding: clamp(60px,8vw,120px) 0; overflow: hidden; }
.orbit { position: relative; width: min(560px, 88vw); aspect-ratio: 1; margin: clamp(30px,5vw,56px) auto 0; }
.orbit::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.14), transparent 70%); filter: blur(10px); animation: pulseGlow 5s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100%{ transform: scale(1); opacity:.7; } 50%{ transform: scale(1.08); opacity:1; } }
.orbit-ring { position: absolute; inset: 4%; border-radius: 50%; border: 2px dashed rgba(34,211,238,.5); animation: spin 38s linear infinite; }
.orbit-ring-2 { inset: 22%; border-color: rgba(37,99,235,.45); animation: spinRev 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }
.orbit-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--accent); color: #fff; box-shadow: var(--glow); }
.orbit-core-label { font-family: var(--font-head); font-weight: 700; font-size: clamp(.8rem,2.4vw,1rem); line-height: 1.15; }
/* Robot dentro del núcleo (se muestra si existe robot.png) */
.robot-companion {
  --look-x: 0px; --look-y: 0px; --bot-tilt: 0deg; --bot-lift: 0px; --bot-scale: 1;
  --light-x: 0px; --light-y: 0px; --glow: .72; --glow-size: 30px; --glow-opacity: .58;
  position: relative; display: block; transform-origin: 50% 54%;
  transform: translate3d(0, var(--bot-lift), 0) rotate(var(--bot-tilt)) scale(var(--bot-scale));
  transition: transform .18s linear, filter .2s ease;
  will-change: transform;
}
.robot-companion-img {
  position: relative; z-index: 2; display: block; width: 100%; height: auto; max-width: none;
  user-select: none; pointer-events: none;
  filter: drop-shadow(0 12px var(--glow-size) rgba(37,99,235,.54));
}
.robot-companion-aura {
  position: absolute; z-index: 1; inset: 15%; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,var(--glow-opacity)) 0%, rgba(37,99,235,.22) 34%, transparent 68%);
  filter: blur(18px); transform: scale(1.1); pointer-events: none;
}
.robot-companion-eye,
.robot-companion-light {
  position: absolute; z-index: 3; display: block; pointer-events: none; mix-blend-mode: screen;
}
.robot-companion-eye {
  top: 47.2%; width: 5.1%; height: 12.2%; border-radius: 999px;
  background: linear-gradient(180deg, #b9ffff 0%, #67edff 48%, #2e7cff 100%);
  box-shadow: 0 0 10px rgba(103,237,255,.95), 0 0 28px rgba(37,99,235,.9), 0 0 46px rgba(37,99,235,.55);
  transform: translate3d(var(--look-x), var(--look-y), 0) scaleY(1);
  transition: transform .12s ease-out, box-shadow .2s ease, opacity .2s ease;
}
.robot-companion-eye-left { left: 37.5%; }
.robot-companion-eye-right { left: 58.8%; }
.robot-companion-light {
  border-radius: 999px; opacity: .86;
  background: linear-gradient(180deg, #e8ffff 0%, #58eaff 45%, #1b66ff 100%);
  box-shadow: 0 0 12px rgba(88,234,255,.95), 0 0 30px rgba(37,99,235,.82);
  transform: translate3d(var(--light-x), var(--light-y), 0);
  transition: transform .16s ease-out, opacity .2s ease, box-shadow .2s ease;
}
.robot-companion-light-top { top: 16.8%; left: 48.7%; width: 3.8%; height: 7.2%; }
.robot-companion-light-left { top: 43%; left: 14.1%; width: 4.5%; height: 14.5%; }
.robot-companion-light-right { top: 43%; right: 14.1%; width: 4.5%; height: 14.5%; }
.robot-companion-awake { --glow: .96; --glow-size: 40px; --glow-opacity: .72; }
.robot-companion-awake .robot-companion-eye { animation: robotBlink 6.6s ease-in-out infinite; }
.robot-companion-awake .robot-companion-light { opacity: 1; box-shadow: 0 0 14px rgba(88,234,255,1), 0 0 38px rgba(37,99,235,.92); }
.robot-companion-curious { --bot-scale: 1.035; }
@keyframes robotBlink {
  0%, 90%, 100% { transform: translate3d(var(--look-x), var(--look-y), 0) scaleY(1); }
  93% { transform: translate3d(var(--look-x), var(--look-y), 0) scaleY(.14); }
  96% { transform: translate3d(var(--look-x), var(--look-y), 0) scaleY(1); }
}
.orbit-companion { position: absolute; width: 150%; max-width: none; }
.orbit-robot { transform: none; }
/* La imagen del robot ya trae ojos/luces: ocultamos los overlays CSS para que no se vean dobles */
.robot-companion-eye, .robot-companion-light { display: none !important; }
.orbit-core:not(.no-robot) { background: radial-gradient(circle, #0e1a36 0%, #0a0f1d 72%); box-shadow: 0 0 70px -6px rgba(37,99,235,.85); }
.orbit-core:not(.no-robot) .orbit-core-label { display: none; }
.orbit-core.no-robot .orbit-companion { display: none; }
.node { position: absolute; z-index: 2; width: clamp(108px,26vw,140px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 2px; animation: floaty 6s ease-in-out infinite; }
.node-num { font-family: var(--font-head); font-weight: 800; font-size: .8rem; color: var(--accent); }
.node-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.node-desc { color: var(--muted); font-size: .78rem; }
.node-1 { top: 0; left: 50%; transform: translate(-50%,-45%); }
.node-2 { top: 50%; right: 0; transform: translate(40%,-50%); animation-delay: -1.5s; }
.node-3 { bottom: 0; left: 50%; transform: translate(-50%,45%); animation-delay: -3s; }
.node-4 { top: 50%; left: 0; transform: translate(-40%,-50%); animation-delay: -4.5s; }
@keyframes floaty { 0%,100%{ margin-top: 0; } 50%{ margin-top: -8px; } }
.machine-steps { display: none; max-width: 640px; margin: 30px auto 0; gap: 12px; }
.machine-steps li { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--text-soft); box-shadow: var(--shadow-sm); }
.machine-steps li b { color: var(--text); font-family: var(--font-head); }
.machine-cta { text-align: center; margin-top: clamp(36px,5vw,56px); }

/* ---------- CTA final (banda azul sólida) ---------- */
.cta-course { position: relative; padding: clamp(70px,10vw,130px) 0; overflow: hidden; background: var(--accent); }
.cta-mesh { position: absolute; inset: 0; z-index: 0; background: radial-gradient(40% 60% at 18% 28%, rgba(34,211,238,.40), transparent 60%), radial-gradient(45% 55% at 82% 74%, rgba(255,255,255,.18), transparent 60%); animation: meshFloat 14s ease-in-out infinite alternate; }
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; }
.cta-inner h2 { color: #fff; margin-bottom: 18px; font-size: clamp(2rem,5vw,3.4rem); }
.cta-inner p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-3); padding: clamp(50px,7vw,80px) 0 30px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.brand-footer { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 320px; margin-bottom: 20px; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-soft); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Colores alternos de sección ---------- */
.band { background: var(--bg-3); }
.audience { background: var(--bg-3); }

/* ---------- Formulario de registro ---------- */
.reg-form { margin-top: 6px; }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reg-field { margin-bottom: 14px; }
.reg-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--text-soft); }
.reg-field input, .reg-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.reg-field input:focus, .reg-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.reg-note { margin-top: 10px; font-size: .88rem; min-height: 1.1em; }
.reg-note.ok { color: #0a7d3b; }
.reg-note.err { color: #d33b3b; }

/* ---------- Máquina de crecimiento: modo oscuro ---------- */
.machine-dark { background: #0a0f1d; color: #fff; position: relative; }
.machine-dark .container { position: relative; z-index: 2; }
.machine-dark .hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.machine-dark h2 { color: #fff; }
.machine-dark .section-sub { color: rgba(255,255,255,.72); }
.machine-dark .node { background: #121a2e; border-color: rgba(255,255,255,.14); }
.machine-dark .node-title { color: #fff; }
.machine-dark .node-desc { color: rgba(255,255,255,.55); }
.machine-dark .orbit-core { background: var(--accent); box-shadow: 0 0 50px -8px rgba(37,99,235,.8); }
.machine-dark .machine-steps li { background: #121a2e; border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.78); box-shadow: none; }
.machine-dark .machine-steps li b { color: #fff; }

/* ---------- Agente flotante (robot) ---------- */
.agent {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 26px); z-index: 90;
  width: clamp(72px, 12vw, 110px); cursor: pointer; transform: translateX(var(--sway, 0));
  transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.agent-hidden { display: none !important; }
.agent-tuck { opacity: 0; transform: translateY(40px) scale(.8); pointer-events: none; }
.agent-companion { width: 100%; }
.agent-img { width: 100%; height: auto; display: block; }
.agent-glow { position: absolute; inset: -8%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.4), transparent 68%); filter: blur(8px); animation: pulseGlow 3.2s ease-in-out infinite; }
.agent-bubble {
  position: absolute; bottom: calc(100% + 8px); right: 4px; background: #fff; color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; border-bottom-right-radius: 4px;
  padding: 8px 12px; font-size: .82rem; font-weight: 600; white-space: nowrap; font-family: var(--font-head);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.agent:hover .agent-bubble { opacity: 1; transform: none; }
.agent:hover .agent-companion { animation-play-state: paused; --bot-scale: 1.05; }
@keyframes agentFloat { 0%,100%{ transform: translateY(0) rotate(-2deg); } 50%{ transform: translateY(-10px) rotate(2deg); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) { .method-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav .btn-pill { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .audience-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 110px; padding-bottom: 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { max-width: 420px; }
  .scroll-hint { display: none; }
  .band-inner { grid-template-columns: 1fr; }
  .band-photo { max-width: 420px; }
}
@media (max-width: 680px) { .method-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .orbit { display: none; }
  .machine-steps { display: grid; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .reg-row { grid-template-columns: 1fr; }
  .agent { width: 64px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .cta-mesh, .marquee-track, .scroll-hint span::after,
  .orbit-ring, .orbit-ring-2, .orbit::before, .orbit-core::after, .node,
  .robot-companion-eye, .robot-companion-light, .agent-glow { animation: none !important; }
  .robot-companion { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Experiencia robot viva / fondo inteligente ---------- */
.site-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(34,211,238,.12), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(37,99,235,.12), transparent 30%),
    radial-gradient(circle at 50% 95%, rgba(37,99,235,.10), transparent 36%);
}
.site-bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .48; }
.site-bg-grid {
  position: absolute; inset: 0; opacity: .38;
  background-image: radial-gradient(circle, rgba(37,99,235,.25) 1px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
}
main, .footer { position: relative; z-index: 1; }
.hero, .stats, .services, .method, .clients, .band, .audience, .newsletter, .footer { position: relative; }
.stats, .services, .method, .clients { background: rgba(255,255,255,.78); backdrop-filter: blur(2px); }
.band, .audience, .newsletter, .footer { background: rgba(243,246,253,.82); backdrop-filter: blur(2px); }

.splash-companion {
  width: clamp(170px, 32vw, 300px);
  animation: splashNavigate 2.5s cubic-bezier(.18,.85,.18,1) both;
}
.splash-robot .robot-companion-img { width: 100%; animation: none; }
@keyframes splashNavigate {
  0% { transform: translate3d(-34vw, 18vh, 0) rotate(-16deg) scale(.62); opacity: 0; filter: blur(10px); }
  36% { opacity: 1; filter: blur(0); }
  72% { transform: translate3d(4vw, -2vh, 0) rotate(6deg) scale(1.08); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; filter: blur(0); }
}

.hero-robot { display: none; }
.hero-companion { width: min(76vw, 360px); margin: 0 auto; }

.orbit { --orbit-r: clamp(160px, 34vw, 252px); width: min(620px, 90vw); }
.orbit-core { z-index: 3; width: 30%; }
.orbit-companion { width: 168%; }
.node {
  top: 50%; left: 50%; right: auto; bottom: auto;
  transform: translate(-50%,-50%);
  animation: none; transform-origin: center center;
}
.node-1 { animation: orbitNodeOne 30s linear infinite; }
.node-2 { animation: orbitNodeTwo 30s linear infinite; }
.node-3 { animation: orbitNodeThree 30s linear infinite; }
.node-4 { animation: orbitNodeFour 30s linear infinite; }
@keyframes orbitNodeOne {
  from { transform: translate(-50%,-50%) rotate(0deg) translateY(calc(-1 * var(--orbit-r))) rotate(0deg); }
  to { transform: translate(-50%,-50%) rotate(360deg) translateY(calc(-1 * var(--orbit-r))) rotate(-360deg); }
}
@keyframes orbitNodeTwo {
  from { transform: translate(-50%,-50%) rotate(90deg) translateY(calc(-1 * var(--orbit-r))) rotate(-90deg); }
  to { transform: translate(-50%,-50%) rotate(450deg) translateY(calc(-1 * var(--orbit-r))) rotate(-450deg); }
}
@keyframes orbitNodeThree {
  from { transform: translate(-50%,-50%) rotate(180deg) translateY(calc(-1 * var(--orbit-r))) rotate(-180deg); }
  to { transform: translate(-50%,-50%) rotate(540deg) translateY(calc(-1 * var(--orbit-r))) rotate(-540deg); }
}
@keyframes orbitNodeFour {
  from { transform: translate(-50%,-50%) rotate(270deg) translateY(calc(-1 * var(--orbit-r))) rotate(-270deg); }
  to { transform: translate(-50%,-50%) rotate(630deg) translateY(calc(-1 * var(--orbit-r))) rotate(-630deg); }
}

.contact-minimal { padding: clamp(54px,7vw,96px) 0; }
.contact-minimal .contact-panel {
  grid-template-columns: 1fr;
  align-items: center; max-width: 720px;
  background: rgba(255,255,255,.84);
  border-radius: 24px;
  box-shadow: 0 26px 80px -44px rgba(37,99,235,.5);
}
.contact-minimal .newsletter-inner::before { width: 40%; height: 70%; }
.contact-minimal .newsletter-copy h2 { margin-bottom: 12px; }
.contact-minimal .newsletter-lead { max-width: 520px; margin-bottom: 0; }
.contact-form { margin: 0; }
.contact-form .reg-row { grid-template-columns: 1fr; gap: 0; }
.contact-form .reg-field label span { color: var(--muted); font-weight: 500; }

.agent {
  --agent-x: 0px; --agent-y: 0px; --agent-rot: 0deg;
  right: clamp(18px, 4vw, 54px); bottom: clamp(34px, 8vh, 78px);
  width: clamp(118px, 13vw, 190px);
  transform: translate3d(var(--agent-x), var(--agent-y), 0) rotate(var(--agent-rot));
}
.agent::before {
  content: ""; position: absolute; inset: 18%; z-index: -2; border-radius: 50%;
  border: 1px solid rgba(34,211,238,.24);
  box-shadow: 0 0 44px rgba(37,99,235,.22);
  animation: pulseGlow 4.5s ease-in-out infinite;
}
.agent-glow { inset: -24%; opacity: .8; }
.agent:hover .agent-companion { --bot-scale: 1.08; }

@media (max-width: 940px) {
  .contact-minimal .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav { background: linear-gradient(180deg, rgba(1,4,12,.82), transparent); }
  .nav.scrolled { background: rgba(3,7,18,.82); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
  .nav .brand-word { color: #fff; }
  .nav .brand-bar { background: rgba(255,255,255,.45); }
  .nav .nav-toggle span { background: #fff; }
  .hero {
    min-height: 100svh; padding: 92px 0 46px; align-items: flex-start;
    color: #fff; text-align: center;
    background:
      radial-gradient(circle at 50% 18%, rgba(37,99,235,.24), transparent 34%),
      linear-gradient(180deg, #01040c 0%, #030712 100%);
  }
  .hero-inner { display: flex; flex-direction: column; gap: 14px; }
  .hero-robot { display: block; order: -1; width: 100%; }
  .hero-companion { width: min(66vw, 280px); }
  .hero-text { max-width: 100%; }
  .hero .eyebrow { color: #6aa0ff; margin-bottom: 12px; }
  .hero-title { font-size: clamp(2.1rem, 11vw, 3.25rem); letter-spacing: 0; margin-bottom: 14px; }
  .hero-lead { color: rgba(255,255,255,.82); margin-inline: auto; margin-bottom: 24px; font-size: 1rem; }
  .hero-lead strong { color: #fff; }
  .hero-cta { justify-content: center; margin-bottom: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero .btn-ghost { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
  .hero-trust, .hero-figure { display: none; }
  .agent { display: none; }
}

@media (max-width: 640px) {
  .orbit {
    display: block; width: min(92vw, 420px); --orbit-r: clamp(116px, 34vw, 162px);
    margin-top: 52px;
  }
  .machine-steps { display: none; }
  .orbit-core { width: 34%; }
  .orbit-companion { width: 160%; }
  .node { width: clamp(88px, 28vw, 108px); padding: 10px 11px; border-radius: 14px; }
  .node-title { font-size: .88rem; }
  .node-desc { font-size: .68rem; }
  .contact-minimal .contact-panel { padding: 28px 20px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-bg-canvas, .splash-companion, .node, .agent::before { animation: none !important; }
}
