/* Propulse Growth Studio — agencia premium, blanco + gradientes verde/azul */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F3F8F6;
  --ink: #0A1F1A;
  --muted: #5C6E67;
  --green: #0E4D3C;
  --green-light: #1C9A6C;
  --blue: #0B2A4A;
  --blue-light: #2E6FB8;
  --black: #090B0E;
  --border: rgba(10, 31, 26, 0.1);
  --border-soft: rgba(10, 31, 26, 0.06);
  --radius: 22px;
  --shadow: 0 24px 60px rgba(10, 31, 26, 0.1);
  --shadow-sm: 0 10px 28px rgba(10, 31, 26, 0.08);
  --gradient-brand: linear-gradient(120deg, var(--blue) 0%, var(--blue-light) 45%, var(--green-light) 100%);
  --gradient-text: linear-gradient(100deg, var(--blue) 10%, var(--green-light) 90%);
  --max: 1180px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--muted); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Splash de carga ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0C10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  animation: splashOut 0.5s ease forwards;
  animation-delay: 1.9s;
}
.splash-logo { width: 84px; height: 112px; }
.splash-logo svg { width: 100%; height: 100%; overflow: visible; }
.splash-logo .arrow-1 { fill: var(--blue); }
.splash-logo .arrow-2 { fill: var(--blue-light); }
.splash-logo .arrow-3 { fill: var(--green-light); }
.splash-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: splashWordIn 0.5s ease 0.9s forwards;
}
.splash-brand { color: #fff; font-family: 'Syne', 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: 0; }
.splash-tag { color: rgba(255, 255, 255, 0.55); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; }

@media (prefers-reduced-motion: no-preference) {
  .splash-logo .arrow-1 { animation: liftoff 0.75s var(--ease-bounce) 0.5s both; }
  .splash-logo .arrow-2 { animation: liftoff 0.75s var(--ease-bounce) 0.36s both; }
  .splash-logo .arrow-3 { animation: liftoff 0.75s var(--ease-bounce) 0.22s both; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { animation-delay: 0.2s; animation-duration: 0.2s; }
  .splash-word { animation-delay: 0s; animation-duration: 0.2s; }
  .splash-logo .arrow-1, .splash-logo .arrow-2, .splash-logo .arrow-3 { opacity: 1; }
}

@keyframes splashOut {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes splashWordIn {
  to { opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  position: relative;
  width: 30px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.logo-mark .arrow-1 { fill: var(--blue); }
.logo-mark .arrow-2 { fill: var(--blue-light); }
.logo-mark .arrow-3 { fill: var(--green-light); }

.logo-glow {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 34px;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(28, 154, 108, 0.5), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .logo-mark .arrow-1 { animation: liftoff 0.75s var(--ease-bounce) 0.28s both; }
  .logo-mark .arrow-2 { animation: liftoff 0.75s var(--ease-bounce) 0.14s both; }
  .logo-mark .arrow-3 { animation: liftoff 0.75s var(--ease-bounce) 0s both; }
  .logo-mark .logo-glow { animation: thrust 0.75s ease-out 0s both; }
  .brand:hover .arrow-1 { animation: liftoff-sm 0.5s var(--ease-bounce) 0.06s both; }
  .brand:hover .arrow-2 { animation: liftoff-sm 0.5s var(--ease-bounce) 0.03s both; }
  .brand:hover .arrow-3 { animation: liftoff-sm 0.5s var(--ease-bounce) 0s both; }
}

@keyframes liftoff {
  0% { transform: translateY(46px) scale(0.7); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes liftoff-sm {
  0% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
@keyframes thrust {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0.4); }
  30% { opacity: 1; transform: translateX(-50%) scaleY(1.4); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(0.6); }
}

.brand-name {
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--black);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name small {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a:not(.nav-cta) {
  position: relative;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 10px 14px;
  display: inline-block;
  transition: color 0.2s ease, transform 0.35s var(--ease-bounce);
}
.main-nav > a:not(.nav-cta) span { position: relative; z-index: 1; }
.main-nav > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-bounce);
}
.main-nav > a:not(.nav-cta):hover { transform: translateY(-2px); }
.main-nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gradient-brand);
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: 0.92rem;
  margin-left: 10px;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
  display: inline-block;
  box-shadow: 0 10px 24px rgba(11, 42, 74, 0.25);
}
.nav-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 34px rgba(28, 154, 108, 0.35); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(11, 42, 74, 0.28);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 36px rgba(28, 154, 108, 0.4); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--blue-light); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 90px;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfe3ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero h1 { color: #fff; }
.hero .gradient-text {
  background: linear-gradient(100deg, #5ec9ff 10%, #4bf0b0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 1.08rem; margin: 20px 0 30px; max-width: 52ch; color: rgba(255, 255, 255, 0.7); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.hero .btn-ghost:hover { border-color: #5ec9ff; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff; }
.hero-stats span { font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.02em; }

/* ---------- Escena flotante del hero ---------- */
.hero-scene {
  position: relative;
  aspect-ratio: 4 / 3.2;
  perspective: 1400px;
}
#heroScene { transition: opacity 0.6s ease, transform 0.15s ease-out; }
.hero-orbs { position: absolute; inset: 0; }

.hero-object {
  position: absolute;
  mix-blend-mode: screen;
  filter: brightness(0.85) contrast(1.7);
  pointer-events: none;
  will-change: transform;
  mask-image: radial-gradient(ellipse 62% 62% at center, black 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at center, black 45%, transparent 78%);
}
.obj-odonto { width: 30%; top: 4%; left: 6%; animation: floatA 7s ease-in-out infinite; }
.obj-salud { width: 34%; top: 30%; right: 2%; animation: floatB 8s ease-in-out infinite; }
.obj-estetica { width: 26%; bottom: 6%; left: 22%; animation: floatC 6.5s ease-in-out infinite; }

@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(14px) rotate(-3deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.glass-card strong { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: #4bf0b0; margin-right: 2px; }
.glass-card.card-a { top: 10%; right: -14%; z-index: 2; }
.glass-card.card-b { top: 42%; left: -16%; z-index: 2; }
.glass-card.card-c { bottom: 6%; right: -10%; z-index: 2; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-light); display: inline-block; box-shadow: 0 0 8px var(--green-light); }
.dot-ai { background: #5ec9ff; box-shadow: 0 0 8px #5ec9ff; }

@media (prefers-reduced-motion: no-preference) {
  .glass-card { animation: cardBounceIn 0.7s var(--ease-bounce) both; }
  .glass-card.card-a { animation-delay: 0.5s; }
  .glass-card.card-b { animation-delay: 0.7s; }
  .glass-card.card-c { animation-delay: 0.9s; }
}
@keyframes cardBounceIn {
  0% { opacity: 0; transform: scale(0.7) translateY(14px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-object { animation: none; }
}

/* ---------- Fondo del Hero ---------- */
/* El Hero no pinta absolutamente nada de fondo propio: usa exactamente
   la misma capa compartida (.cosmic-decor: estrellas + nebulosas) que
   el resto de las secciones oscuras, para que no haya ninguna
   diferencia de textura/brillo/densidad que se perciba como un corte. */
.hero-galaxy { background: transparent; }

/* ---------- Astronauta protagonista del Hero ---------- */
.hero-astro-stage {
  position: relative;
  margin: 0 auto;
  width: min(88%, 420px);
}
.hero-astro-glow {
  position: absolute;
  inset: -6% -4%;
  z-index: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(94, 201, 255, 0.24), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}
.hero-astro-wrap {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(46, 111, 184, 0.25);
  animation: astroFloat 7s ease-in-out infinite;
}
.hero-astro-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}
@keyframes astroFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-astro-wrap { animation: none; }
}

@media (max-width: 760px) {
  .hero-scene {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }
  .hero-orbs { position: relative; inset: auto; height: 220px; flex-shrink: 0; }
  .hero-astro-stage { width: min(72%, 300px); }
  .glass-card { position: static; font-size: 0.8rem; padding: 10px 14px; width: 100%; box-sizing: border-box; }
}

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(11, 42, 74, 0.07), rgba(28, 154, 108, 0.1));
  border: 1.5px dashed rgba(11, 42, 74, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11, 42, 74, 0.14) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.5;
}
.ph-label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  padding: 0 20px;
}
.ph-label svg { opacity: 0.7; }
.ph-hero { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.ph-niche { aspect-ratio: 16 / 10; margin-bottom: 18px; }

.niche-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(94, 201, 255, 0.18);
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 40px rgba(0, 0, 0, 0.4);
}
.niche-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0) 40%, rgba(5, 7, 10, 0.75)),
              radial-gradient(ellipse at 30% 20%, rgba(94, 201, 255, 0.18), transparent 55%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.niche-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.12) brightness(0.92) saturate(1.05);
  transition: transform 0.7s var(--ease-smooth), filter 0.5s ease;
}
.niche-card:hover .niche-image img { transform: scale(1.08); filter: grayscale(0) contrast(1.15) brightness(1) saturate(1.15); }
.niche-card:hover .niche-image { border-color: rgba(94, 201, 255, 0.45); box-shadow: 0 0 0 1px rgba(94, 201, 255, 0.3), 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(94, 201, 255, 0.2); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.02rem; }

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

/* Niches */
.niche-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.3s ease, border-color 0.3s ease;
}
.niche-card:hover { transform: translateY(-6px); border-color: rgba(94, 201, 255, 0.3); }
.niche-card h3 { color: #fff; }
.niche-card p { color: rgba(255, 255, 255, 0.6); }

/* CTA de cotización por WhatsApp, bajo la sección de nichos */
.nichos-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 36px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.nichos-cta-text strong { display: block; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; }
.nichos-cta-text p { margin: 4px 0 0; font-weight: 500; color: var(--muted); font-size: 0.96rem; }
.nichos-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: #25D366;
  color: #06210F;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.28);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
  flex-shrink: 0;
}
.nichos-cta-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 38px rgba(37, 211, 102, 0.38); }
.nichos-cta-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 640px) { .nichos-cta { flex-direction: column; text-align: center; padding: 26px 22px; } }

/* ---------- El universo de Propulse ---------- */

/* ====================================================================
   UN SOLO FONDO ESPACIAL para toda la franja oscura del sitio (de
   Nichos al CTA final). Las secciones ya no pintan su propio fondo:
   solo dejan ver esta capa compartida de fondo, así no hay ningún
   corte perceptible entre una sección y la siguiente.
==================================================================== */
.cosmic-universe { position: relative; background: #05070a; overflow: hidden; }
.cosmic-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cosmic-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 160px 160px, 100px 100px, 60px 60px;
  background-position: 0 0, 45px 60px, 20px 90px;
  opacity: 0.4;
}
.cosmic-nebula { position: absolute; width: 900px; height: 680px; border-radius: 50%; filter: blur(70px); }
.cosmic-nebula.n1 { top: 480px; left: -14%; background: radial-gradient(circle, rgba(46, 111, 184, 0.3), transparent 65%); }
.cosmic-nebula.n2 { top: 1450px; right: -16%; background: radial-gradient(circle, rgba(28, 154, 108, 0.24), transparent 65%); }
.cosmic-nebula.n3 { top: 2950px; left: -14%; background: radial-gradient(circle, rgba(94, 201, 255, 0.2), transparent 65%); }
.cosmic-nebula.n4 { top: 4350px; right: -16%; background: radial-gradient(circle, rgba(28, 154, 108, 0.24), transparent 65%); }
.cosmic-nebula.n5 { top: 5750px; left: -14%; background: radial-gradient(circle, rgba(46, 111, 184, 0.26), transparent 65%); }
.cosmic-nebula.n6 { top: 7050px; right: -14%; background: radial-gradient(circle, rgba(94, 201, 255, 0.18), transparent 65%); }
.cosmic-nebula.n7 { top: 1620px; left: 34%; width: 760px; height: 560px; background: radial-gradient(circle, rgba(150, 110, 230, 0.2), transparent 65%); }
.cosmic-nebula.n8 { top: 4980px; left: 40%; width: 700px; height: 520px; background: radial-gradient(circle, rgba(230, 160, 90, 0.14), transparent 65%); }
/* Puente ancho y suave justo donde termina el Hero, para que el brillo
   ambiental propio del Hero no corte en seco contra el resto oscuro. */
.cosmic-nebula.n-bridge {
  top: 430px; left: 50%; width: 1500px; height: 620px; margin-left: -750px;
  background: radial-gradient(ellipse, rgba(46, 111, 184, 0.22), rgba(28, 154, 108, 0.12) 45%, transparent 72%);
  filter: blur(90px);
}

/* ---------- Galaxias, asteroides y cúmulos: variedad para que el
   fondo no se sienta repetitivo a lo largo de todo el scroll ---------- */
.cosmic-galaxy {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(148, 120, 230, 0.32) 40deg, transparent 95deg,
    rgba(94, 201, 255, 0.26) 160deg, transparent 215deg,
    rgba(255, 255, 255, 0.12) 265deg, transparent 320deg, transparent 360deg);
  filter: blur(7px);
  opacity: 0.55;
  animation: galaxySpin 170s linear infinite;
}
.cosmic-galaxy.g-warm {
  background: conic-gradient(from 40deg,
    transparent 0deg, rgba(255, 176, 110, 0.3) 50deg, transparent 105deg,
    rgba(255, 120, 150, 0.22) 175deg, transparent 235deg,
    rgba(255, 255, 255, 0.1) 285deg, transparent 345deg);
  animation-duration: 140s;
}
@keyframes galaxySpin { to { transform: rotate(360deg); } }

.cosmic-asteroid {
  position: absolute;
  width: 24px; height: 19px;
  background: linear-gradient(135deg, #6b7280, #2f333c 60%, #16181d);
  clip-path: polygon(20% 0%, 70% 5%, 100% 35%, 88% 78%, 55% 100%, 15% 88%, 0% 50%);
  box-shadow: inset -3px -3px 5px rgba(0, 0, 0, 0.6), inset 2px 2px 3px rgba(255, 255, 255, 0.15);
  opacity: 0.75;
  animation: asteroidDrift 15s ease-in-out infinite;
}
.cosmic-asteroid.a-lg { width: 38px; height: 30px; }
.cosmic-asteroid.a-sm { width: 15px; height: 12px; }
@keyframes asteroidDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(14deg); }
}

.cosmic-cluster {
  position: absolute;
  width: 220px; height: 160px;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.9) 1.4px, transparent 1.4px),
    radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    radial-gradient(rgba(180, 220, 255, 0.5) 1px, transparent 1px);
  background-size: 28px 28px, 18px 18px, 40px 40px;
  background-position: 0 0, 10px 14px, 6px 6px;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-galaxy, .cosmic-asteroid { animation: none; }
}

/* ---------- Meteoros y constelaciones ---------- */
.meteor-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.meteor {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: meteorFly 8.5s ease-in infinite;
}
.meteor::before {
  content: '';
  position: absolute; top: 50%; right: -1px;
  width: 100px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
  transform: translateY(-50%);
}
@keyframes meteorFly {
  0% { opacity: 0; transform: translate(0, 0) rotate(-32deg); }
  4% { opacity: 1; }
  18% { opacity: 0; transform: translate(-190px, 120px) rotate(-32deg); }
  100% { opacity: 0; }
}
.constellation { position: absolute; opacity: 0.4; pointer-events: none; }
.constellation circle { fill: #cfe9ff; }
.constellation path { stroke: rgba(207, 233, 255, 0.35); stroke-width: 1; fill: none; }
@media (prefers-reduced-motion: reduce) {
  .meteor { display: none; }
}
@media (max-width: 640px) {
  /* En mobile cada sección cambia mucho de alto respecto al layout de
     escritorio, así que las posiciones fijas en px de las constelaciones
     ya no caen en zonas vacías -- terminan superpuestas sobre el texto.
     Se ocultan ahí (son puramente decorativas). */
  .constellation { display: none; }
}

.universe {
  position: relative;
  background: transparent;
  overflow: hidden;
  padding: 110px 0;
}
.universe .eyebrow { color: var(--green-light); background: rgba(28, 154, 108, 0.14); border-color: rgba(28, 154, 108, 0.3); }
.universe h2 { color: #fff; }
.universe .section-head p { color: rgba(255, 255, 255, 0.55); }
.universe-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 140px 140px, 90px 90px;
  background-position: 0 0, 45px 60px;
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- Pilares (Adquirir / Convertir / Escalar) ---------- */
.pillars { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1200px; }
.pillar {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 28px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.pillar:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07); }
.pillar.is-zooming { animation: pillarZoom 0.4s ease; }
@keyframes pillarZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(28, 154, 108, 0.5); }
  100% { transform: scale(1); }
}
.pillar-inner { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .pillar-inner { animation: pillarFloat 6s ease-in-out infinite; }
  .pillar:nth-child(2) .pillar-inner { animation-delay: -2s; }
  .pillar:nth-child(3) .pillar-inner { animation-delay: -4s; }
}
/* transform (no margin/layout) para que el navegador nunca tenga que
   recalcular el diseño de la página entera en cada fotograma */
@keyframes pillarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.pillar-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--pillar-color, var(--gradient-brand));
  filter: blur(50px);
  opacity: 0.28;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.pillar:hover .pillar-glow { opacity: 0.42; transform: scale(1.15); }
.pillar-index {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
  display: block;
}
.pillar-icon { width: 46px; height: 46px; margin-bottom: 20px; position: relative; z-index: 1; }
.pillar h3 { font-size: 1.5rem; margin-bottom: 10px; position: relative; z-index: 1; color: #fff; }
.pillar p { font-size: 0.94rem; margin-bottom: 22px; position: relative; z-index: 1; color: rgba(255, 255, 255, 0.62); }
.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth), opacity 0.35s ease;
}
.pillar:hover .pillar-tags, .pillar:focus-within .pillar-tags { max-height: 60px; opacity: 1; }
.pillar-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ---------- Servicios: galaxia con cohete central ---------- */
.detail-galaxy { padding: 120px 0 100px; }
.detail-galaxy .section-head h2 { color: #fff; }
.universe .nichos-cta { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); }
.universe .nichos-cta-text strong { color: #fff; }
.universe .nichos-cta-text p { color: rgba(255, 255, 255, 0.6); }

.service-launch { position: relative; padding: 30px 0 10px; }
.service-rocket-track { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); z-index: 2; overflow: visible; }
.service-rocket-line {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(94, 201, 255, 0.06), rgba(94, 201, 255, 0.55) 15%, rgba(28, 154, 108, 0.55) 85%, rgba(28, 154, 108, 0.06));
  border-radius: 2px;
  box-shadow: 0 0 18px 1px rgba(94, 201, 255, 0.3);
  overflow: hidden;
}
.service-rocket-line::before {
  content: '';
  position: absolute; left: -3px; width: 8px; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  filter: blur(2px);
  animation: rocketPulse 2.2s linear infinite;
}
@keyframes rocketPulse {
  0% { top: -90px; }
  100% { top: 100%; }
}

.service-rocket {
  position: absolute; left: 50%; top: 0;
  width: 168px; height: 230px;
  margin-left: -84px; margin-top: -130px;
  will-change: transform;
}
.service-rocket-img {
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: screen;
  position: relative; z-index: 2;
  filter: saturate(1.15) contrast(1.15) brightness(1.05);
  -webkit-mask-image: radial-gradient(ellipse 52% 58% at 50% 40%, #000 28%, transparent 72%);
  mask-image: radial-gradient(ellipse 52% 58% at 50% 40%, #000 28%, transparent 72%);
}
.service-rocket-glow {
  position: absolute; left: 50%; top: 65%; width: 130px; height: 130px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(94, 201, 255, 0.4), transparent 70%);
  filter: blur(18px);
  z-index: 1;
  animation: rocketGlowPulse 2s ease-in-out infinite;
}
@keyframes rocketGlowPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.service-rocket-spark {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #cdeeff; box-shadow: 0 0 6px 2px rgba(159, 232, 255, 0.9);
  z-index: 1; opacity: 0;
  animation: rocketSpark 1.8s ease-out infinite;
}
.service-rocket-spark-1 { left: 30%; bottom: 30%; animation-delay: 0s; }
.service-rocket-spark-2 { left: 60%; bottom: 25%; animation-delay: 0.6s; }
.service-rocket-spark-3 { left: 45%; bottom: 20%; animation-delay: 1.2s; }
@keyframes rocketSpark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--spark-x, -18px), 55px) scale(1.2); }
}
.service-rocket-spark-1 { --spark-x: -22px; }
.service-rocket-spark-2 { --spark-x: 20px; }
.service-rocket-spark-3 { --spark-x: -8px; }

.service-timeline { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 64px; }
.service-row {
  position: relative;
  width: calc(50% - 48px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0.3;
  transform: translateY(10px) scale(0.96);
  filter: blur(2px) saturate(0.7);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease, border-color 0.3s ease, background 0.3s ease;
}
.service-row-right { margin-left: auto; }
.service-row-left { margin-right: auto; }
.service-row::after {
  content: '';
  position: absolute;
  top: 28px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #5ec9ff;
  box-shadow: 0 0 0 4px rgba(94, 201, 255, 0.16), 0 0 12px 2px rgba(94, 201, 255, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.service-row-right::after { left: -48px; }
.service-row-left::after { right: -48px; }
.service-row.is-lit { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) saturate(1); border-color: rgba(94, 201, 255, 0.35); background: rgba(255, 255, 255, 0.08); }
.service-row.is-lit::after { background: #1C9A6C; box-shadow: 0 0 0 4px rgba(28, 154, 108, 0.18), 0 0 14px 3px rgba(28, 154, 108, 0.55); }
.service-row-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.3s ease;
}
.service-row.is-lit .service-row-icon { background: linear-gradient(135deg, rgba(94, 201, 255, 0.18), rgba(28, 154, 108, 0.22)); }
.service-row-icon svg { width: 22px; height: 22px; }
.service-row h3 { font-size: 1.02rem; margin-bottom: 4px; color: #fff; }
.service-row p { font-size: 0.86rem; margin: 0; color: rgba(255, 255, 255, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .service-rocket-glow, .service-rocket-spark, .service-rocket-line::before { animation: none; display: none; }
  .service-row { opacity: 1; transform: none; filter: none; transition: none; }
}
@media (max-width: 900px) {
  .service-launch { padding-left: 30px; }
  .service-rocket-track { left: 6px; transform: none; }
  .service-rocket { left: 6px; margin-left: 0; width: 84px; height: 115px; margin-top: -60px; }
  .service-timeline { gap: 18px; }
  .service-row, .service-row-right, .service-row-left { width: 100%; margin: 0 0 0 20px; filter: blur(1.5px) saturate(0.7); }
  .service-row.is-lit { filter: none; }
  .service-row::after { left: -32px !important; right: auto !important; }
}

/* ---------- Testimonios (tarjetas estilo Spotify) ---------- */
.testi-space {
  position: relative;
  background: transparent;
  overflow: hidden;
  padding: 110px 0;
}
.testi-space .eyebrow { color: var(--green-light); background: rgba(28, 154, 108, 0.14); border-color: rgba(28, 154, 108, 0.3); }
.testi-space h2 { color: #fff; }
.testi-space .section-head p { color: rgba(255, 255, 255, 0.55); }

.testi-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }

.testi-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.testi-track {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 520px;
  margin: 0 auto;
  perspective: 1400px;
}

/* ---------- Flechas a los lados ---------- */
.testi-arrow {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 5;
}
.testi-arrow svg { width: 20px; height: 20px; }
.testi-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(94, 201, 255, 0.5);
  box-shadow: 0 0 24px rgba(94, 201, 255, 0.3);
  transform: scale(1.06);
}
.testi-arrow:active { transform: scale(0.94); }

/* ---------- Puntos indicadores ---------- */
.testi-dots {
  position: absolute;
  left: 50%; bottom: -34px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 4;
}
.testi-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.25);
  cursor: pointer; padding: 0;
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}
.testi-dots button.is-active { background: var(--green-light); width: 22px; border-radius: 4px; }

.testi-card {
  position: absolute;
  left: 50%; top: 50%;
  width: 305px;
  aspect-ratio: 3 / 4.3;
  margin-left: -152.5px;
  margin-top: -219px;
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* Selector de 2 clases para ganarle en especificidad a la regla genérica
   [data-reveal] (más abajo en el archivo), que si no, le quitaba la
   transición al transform y hacía que las tarjetas "saltaran" de posición
   en vez de deslizarse -- esa era la causa real de la transición "fuerte". */
.testi-track .testi-card {
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, filter 0.8s ease, box-shadow 0.8s ease;
}
.testi-card.is-active {
  z-index: 3;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6), 0 0 60px 8px var(--testi-glow, rgba(94, 201, 255, 0.4));
}
.testi-card:not(.is-active):hover { filter: brightness(1.15); }
.testi-card.is-arriving { animation: testiArrive 0.9s ease-out; }
@keyframes testiArrive {
  0% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

/* ---------- Efecto de propulsión al cambiar de tarjeta ---------- */
.testi-thrust {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 6;
  --dir: 1;
}
.testi-thrust-flash {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 230, 255, 0.35), rgba(94, 201, 255, 0.12) 45%, transparent 72%);
  opacity: 0;
  filter: blur(3px);
}
.testi-thrust-line {
  position: absolute; top: 50%; left: 50%;
  width: 70px; height: 1.5px;
  margin-top: -0.75px;
  background: linear-gradient(90deg, transparent, rgba(190, 232, 255, 0.55), transparent);
  opacity: 0;
  filter: blur(0.5px);
}
.testi-thrust-line.l1 { margin-top: -30px; }
.testi-thrust-line.l3 { margin-top: 28px; }
.testi-track.is-firing .testi-thrust-flash { animation: thrustFlash 0.9s ease-out; }
.testi-track.is-firing .testi-thrust-line { animation: thrustLine 0.9s ease-out; }
.testi-track.is-firing .testi-thrust-line.l2 { animation-delay: 0.05s; }
.testi-track.is-firing .testi-thrust-line.l1,
.testi-track.is-firing .testi-thrust-line.l3 { animation-delay: 0.1s; }
@keyframes thrustFlash {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 0.5; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.8); }
}
@keyframes thrustLine {
  0% { opacity: 0; transform: translateX(0) scaleX(0.4); }
  35% { opacity: 0.45; }
  100% { opacity: 0; transform: translateX(calc(var(--dir) * 130px)) scaleX(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .testi-track.is-firing .testi-thrust-flash, .testi-track.is-firing .testi-thrust-line { animation: none; }
}

.testi-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.testi-bump { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.65; pointer-events: none; z-index: 1; background: var(--testi-glow); }
.testi-bump-1 { width: 200px; height: 200px; top: -80px; right: -60px; animation: testiFloat1 6.5s ease-in-out infinite; }
.testi-bump-2 { width: 160px; height: 160px; bottom: 120px; left: -60px; animation: testiFloat2 7.5s ease-in-out infinite; }
@keyframes testiFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, 14px) scale(1.12); }
}
@keyframes testiFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -10px) scale(1.15); }
}

.testi-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 60px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.92));
  color: #fff;
}
.testi-tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(4px); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; }
.testi-overlay h3 { font-size: 1.25rem; margin-bottom: 4px; color: #fff; }
.testi-overlay p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 10px; }
.testi-link { font-weight: 700; font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  .testi-bump-1, .testi-bump-2 { animation: none; }
  .testi-card { transition: none; }
}
@media (max-width: 640px) {
  .testi-stage-wrap { gap: 6px; }
  .testi-track { height: 385px; }
  .testi-card { width: 228px; margin-left: -114px; margin-top: -163.5px; }
  .testi-arrow { width: 38px; height: 38px; }
  .testi-arrow svg { width: 16px; height: 16px; }
  .testi-dots { bottom: -26px; }
  /* El texto del overlay se reduce para que no tape tanto la foto
     de la tarjeta en pantallas chicas. */
  .testi-overlay { padding: 34px 16px 16px; }
  .testi-tag { font-size: 0.6rem; padding: 3px 8px; margin-bottom: 6px; }
  .testi-overlay h3 { font-size: 1rem; margin-bottom: 2px; }
  .testi-overlay p {
    font-size: 0.72rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Webinars */
.webinars-space {
  position: relative;
  background: transparent;
  overflow: hidden;
  padding: 110px 0;
}
.webinars-space .eyebrow { color: var(--green-light); background: rgba(28, 154, 108, 0.14); border-color: rgba(28, 154, 108, 0.3); }
.webinars-space h2 { color: #fff; }
.webinars-space .section-head p { color: rgba(255, 255, 255, 0.55); }
.webinars-hero { position: relative; width: 150px; height: 150px; margin: 0 auto 42px; z-index: 1; }
.webinars-hero-glow {
  position: absolute; inset: -34%;
  background: radial-gradient(circle, rgba(94, 201, 255, 0.35), transparent 70%);
  filter: blur(12px);
  z-index: 0;
}
.webinars-hero-img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(94, 201, 255, 0.25);
  animation: astroFloat 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .webinars-hero-img { animation: none; } }
.webinars-space .universe-field { opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .webinars-space .universe-field { animation: wbStarDrift 60s linear infinite; }
}
@keyframes wbStarDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(-90px, -60px); }
}
.webinar-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.webinar-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32); border-color: rgba(255, 255, 255, 0.2); }
.webinar-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--card-color, var(--gradient-brand));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 14px 26px rgba(11, 42, 74, 0.22);
  transition: transform 0.4s var(--ease-bounce);
}
.webinar-card:hover .webinar-icon { transform: scale(1.05); }
.webinar-icon svg { width: 26px; height: 26px; stroke: #fff; }
.tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-light);
  background: rgba(28, 154, 108, 0.16);
  padding: 5px 11px;
  border-radius: 999px;
}
.webinar-card h3 { font-size: 1.1rem; color: #fff; }
.webinar-card p { flex-grow: 1; color: rgba(255, 255, 255, 0.62); }
.webinar-cta {
  margin-top: 10px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--card-color, var(--gradient-brand));
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(11, 42, 74, 0.2);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
}
.webinar-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 32px rgba(28, 154, 108, 0.32); }
.link-arrow { font-weight: 700; color: var(--blue); margin-top: 6px; transition: transform 0.25s var(--ease-bounce); display: inline-block; }
.link-arrow:hover { transform: translateX(4px); color: var(--green-light); }
.link-arrow-soon { color: var(--muted); font-weight: 600; cursor: default; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-copy { margin-top: 16px; font-size: 1.02rem; max-width: 46ch; }
.about-points { display: flex; flex-direction: column; gap: 24px; }
.point { padding: 18px 22px; border-left: 3px solid; border-image: var(--gradient-brand) 1; background: var(--bg-soft); border-radius: 0 16px 16px 0; }
.point h4 { color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.point p { font-size: 0.92rem; }

/* ---------- Diagnóstico gratuito (estilo Spotify) ---------- */
.diag {
  background: transparent;
  position: relative;
  overflow: hidden;
}
.diag .eyebrow-light { color: var(--green-light); background: rgba(28, 154, 108, 0.14); border-color: rgba(28, 154, 108, 0.3); }
.diag h2 { color: #fff; }
.diag .section-head p { color: rgba(255, 255, 255, 0.55); }

.diag-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 52px; align-items: center; }

.diag-photo { position: relative; }
.diag-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.diag-photo-card {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.diag-photo-card strong { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--green-light); }
.diag-photo-card span { font-size: 0.76rem; color: rgba(255, 255, 255, 0.75); line-height: 1.35; }

.diag-content { color: #fff; }
.diag-lead { color: rgba(255, 255, 255, 0.6); font-size: 1.02rem; margin: 16px 0 26px; max-width: 46ch; }
.diag-points { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.diag-points li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }
.diag-points strong { color: #fff; }
.diag-point-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
.diag-point-icon svg { width: 20px; height: 20px; }

.diag-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diag-form h3 { color: #fff; margin-bottom: 4px; }
.diag-form input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
}
.diag-form input::placeholder { color: rgba(255, 255, 255, 0.38); }
.diag-form input:focus { outline: 2px solid var(--green-light); outline-offset: 1px; }
.diag-form button { margin-top: 4px; }
.diag-note { color: rgba(255, 255, 255, 0.45); font-size: 0.76rem; text-align: center; margin: 2px 0 0; }
.diag-form.is-sending { opacity: 0.6; pointer-events: none; }
.diag-form.is-hidden { display: none; }
.diag-success {
  display: none;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 50px 30px;
}
.diag-success.is-visible { display: block; }
.diag-success h3 { color: #fff; margin-bottom: 10px; }
.diag-success p { color: rgba(255, 255, 255, 0.6); margin: 0; }

@media (max-width: 980px) {
  .diag-layout { grid-template-columns: 1fr; }
  .diag-photo { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .diag-photo-card { position: static; margin-top: -40px; margin-left: 16px; max-width: none; width: calc(100% - 32px); }
}

/* ---------- Vista previa de agendamiento ---------- */
.agenda-dark {
  position: relative;
  background: transparent;
  overflow: hidden;
  padding: 110px 0;
}
.agenda-dark .eyebrow { color: var(--green-light); background: rgba(28, 154, 108, 0.14); border-color: rgba(28, 154, 108, 0.3); }
.agenda-dark h2 { color: #fff; }
.agenda-dark .section-head p { color: rgba(255, 255, 255, 0.55); }
.agenda-embed-wrap {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 14px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}
.agenda-embed-wrap iframe { width: 100%; height: 780px; border: none; display: block; border-radius: 18px; background: #fff; }
.agenda-embed-wrap.compact iframe { height: 600px; }
.agenda-fallback { text-align: center; margin-top: 16px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); position: relative; z-index: 1; }
.agenda-fallback .link-arrow { color: #bfe3ff; }
@media (max-width: 640px) {
  .agenda-embed-wrap iframe { height: 640px; }
  .agenda-embed-wrap.compact iframe { height: 560px; }
}

/* ---------- Signature black band (CTA + footer) ---------- */
.cta-final { background: transparent; text-align: center; position: relative; overflow: hidden; }
.cta-final-inner { position: relative; z-index: 1; }

/* ---------- CTA final: mismo fondo compartido que el resto de la
   página (sin banda propia, para que quede unificado) + una escena
   decorativa con planeta con anillo, rocas lunares y destellos. ---------- */
.cta-final { background: transparent; }
.cta-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.cta-final-glow {
  position: absolute;
  top: 6%; right: 2%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 160, 90, 0.2), transparent 68%);
  filter: blur(16px);
  animation: ctaGlowPulse 8s ease-in-out infinite;
}
@keyframes ctaGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

/* ---------- Planeta con anillo, flotando ---------- */
.cta-ringed-planet {
  position: absolute;
  top: 10%; right: 8%;
  width: 190px; height: 190px;
  animation: ctaPlanetFloat 11s ease-in-out infinite;
}
.cta-planet-body {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.45), transparent 20%),
    radial-gradient(circle at 65% 60%, rgba(230, 160, 90, 0.92), transparent 42%),
    radial-gradient(circle at 25% 68%, rgba(190, 100, 60, 0.92), transparent 46%),
    conic-gradient(from 200deg at 50% 50%, #7a3d1f, #d99a52 35%, #f0c77e 55%, #b5632f 78%, #7a3d1f);
  box-shadow:
    inset -26px -12px 50px rgba(0, 0, 0, 0.75),
    inset 12px 8px 34px rgba(255, 255, 255, 0.12),
    0 0 46px rgba(230, 160, 90, 0.35);
  z-index: 2;
}
.cta-planet-ring {
  position: absolute; left: 50%; top: 50%;
  width: 300px; height: 78px;
  margin: -39px 0 0 -150px;
  border-radius: 50%;
  border: 9px solid rgba(220, 238, 255, 0.55);
  box-shadow: 0 0 14px rgba(200, 230, 255, 0.35);
  transform: rotate(-16deg);
  opacity: 0.85;
}
.cta-ring-back { z-index: 1; clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%); }
.cta-ring-front { z-index: 3; clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); }
@keyframes ctaPlanetFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

/* ---------- Destellos ---------- */
.cta-sparkle {
  position: absolute;
  width: 10px; height: 10px;
  background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0.2) 55%, transparent 75%);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0;
  animation: ctaSparkleTwinkle 3.4s ease-in-out infinite;
}
.cta-sparkle.sp-lg { width: 16px; height: 16px; }
@keyframes ctaSparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(25deg); }
}

/* ---------- Rocas lunares ---------- */
.cta-rock {
  position: absolute;
  width: 46px; height: 34px;
  background: linear-gradient(135deg, #7d818a, #33353c 55%, #1a1b20);
  clip-path: polygon(15% 0%, 65% 8%, 100% 38%, 92% 82%, 58% 100%, 18% 92%, 0% 55%);
  box-shadow: inset -5px -5px 8px rgba(0, 0, 0, 0.6), inset 3px 3px 5px rgba(255, 255, 255, 0.15), 0 8px 14px rgba(0, 0, 0, 0.4);
  opacity: 0.92;
}
.cta-rock-lg { width: 72px; height: 54px; }
.cta-rock-sm { width: 28px; height: 20px; }

@media (max-width: 640px) {
  .cta-ringed-planet { width: 130px; height: 130px; top: 4%; right: 6%; }
  .cta-planet-ring { width: 206px; height: 54px; margin: -27px 0 0 -103px; border-width: 6px; }
  .cta-final-glow { width: 360px; height: 360px; top: 2%; right: -4%; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-final-glow, .cta-ringed-planet, .cta-sparkle { animation: none; }
}
.cta-final-inner h2 { color: #fff; }
.cta-final-inner p { color: rgba(255, 255, 255, 0.68); margin: 14px 0 30px; }

.cta-final .btn-primary { box-shadow: 0 14px 34px rgba(28, 154, 108, 0.35); }
.cta-final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  gap: 9px;
}
.btn-whatsapp:hover { transform: translateY(-3px); border-color: var(--green-light); background: rgba(28, 154, 108, 0.18); }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease-bounce);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-whatsapp:hover { color: var(--green-light); }
.footer-socials { display: flex; align-items: center; gap: 18px; }
.footer-instagram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-instagram:hover { color: #fff; border-color: var(--green-light); transform: translateY(-2px); }

.site-footer { background: var(--black); padding: 44px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: rgba(255, 255, 255, 0.5); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner p { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }

/* ---------- Reveal animation: solo opacidad, sin desplazamiento (evita que el texto "tiemble") ---------- */
[data-reveal] { opacity: 0; transition: opacity 0.5s ease; }
[data-reveal].is-visible { opacity: 1; }

.niche-card:nth-child(1), .pillar:nth-child(1), .webinar-card:nth-child(1) { transition-delay: 0s; }
.niche-card:nth-child(2), .pillar:nth-child(2), .webinar-card:nth-child(2) { transition-delay: 0.08s; }
.niche-card:nth-child(3), .pillar:nth-child(3), .webinar-card:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Parallax orb: profundidad espacial en secciones oscuras ---------- */
.space-orb {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}
.space-orb::before {
  content: '';
  position: absolute;
  top: -20%; left: 55%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(46, 111, 184, 0.22), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
}
.space-orb::after {
  content: '';
  position: absolute;
  bottom: -25%; left: 5%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(28, 154, 108, 0.18), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
}

/* ---------- Hilo de progreso: conecta toda la página al hacer scroll ---------- */
.scroll-thread {
  position: fixed;
  top: 0;
  left: 10px;
  width: 2px;
  height: 100vh;
  z-index: 90;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 130px), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 130px), transparent 100%);
}
.scroll-thread-track {
  position: absolute;
  inset: 0;
  background: rgba(120, 130, 140, 0.16);
  border-radius: 2px;
}
.scroll-thread-fill {
  position: absolute;
  top: 0; left: 0; width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--blue-light), var(--green-light));
  border-radius: 2px;
}
.scroll-thread-comet {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 8px; height: 8px;
  margin-left: -3px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 10px 3px rgba(28, 154, 108, 0.65), 0 0 20px 7px rgba(46, 111, 184, 0.28);
}
@media (max-width: 900px) {
  .scroll-thread { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-thread { display: none; }
}

/* ---------- Secciones: aparecen y se elevan al hacer scroll (conecta toda la página) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .section[data-reveal] {
    transform: translateY(48px) scale(0.985);
    transition: opacity 0.9s var(--ease-smooth), transform 1s var(--ease-smooth);
  }
  .section[data-reveal].is-visible {
    transform: translateY(0) scale(1);
  }
}

/* ---------- Hero cursor spotlight ---------- */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(28, 154, 108, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero:hover .hero-spotlight { opacity: 1; }

/* ---------- Magnetic buttons ---------- */
.magnetic { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pillar { transform: none !important; }
}

/* ---------- AI Chat widget ---------- */
.ai-chat { position: fixed; right: 22px; bottom: 22px; z-index: 200; }
.ai-chat-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 14px 30px rgba(11, 42, 74, 0.3);
  position: relative;
  transition: transform 0.3s var(--ease-bounce);
}
.ai-chat-toggle:hover { transform: scale(1.08) translateY(-2px); }
.ai-chat-toggle-icon { width: 22px; height: 29px; display: block; }
.ai-chat-toggle-icon svg { width: 100%; height: 100%; overflow: visible; }
.ai-chat-toggle-dot {
  position: absolute; bottom: -4px; right: -4px;
  min-width: 22px; height: 18px; padding: 0 4px;
  border-radius: 999px;
  background: var(--black);
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: grid;
  place-items: center;
}
.ai-chat-toggle-icon svg .arrow-1 { fill: rgba(255, 255, 255, 0.55); }
.ai-chat-toggle-icon svg .arrow-2 { fill: rgba(255, 255, 255, 0.78); }
.ai-chat-toggle-icon svg .arrow-3 { fill: #fff; }
.ai-chat-panel {
  position: absolute;
  bottom: 74px; right: 0;
  width: min(360px, 88vw);
  max-height: 70vh;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.ai-chat.is-open .ai-chat-panel { display: flex; }
.ai-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); background: var(--bg-soft); }
.ai-chat-head-brand { display: flex; align-items: center; gap: 10px; }
.ai-chat-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; padding: 5px; }
.ai-chat-avatar svg { width: 100%; height: 100%; }
.ai-chat-head-brand strong { display: block; font-size: 0.92rem; }
.ai-chat-head-brand span { display: block; font-size: 0.72rem; color: var(--muted); }
.ai-chat-close { background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.ai-chat-close:hover { color: var(--ink); }
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; max-height: 340px; }
.ai-chat-msg { font-size: 0.88rem; line-height: 1.5; padding: 10px 14px; border-radius: 12px; max-width: 88%; }
.ai-chat-msg-bot { background: var(--bg-soft); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-chat-msg-user { background: var(--gradient-brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.ai-chat-msg-error { background: rgba(220, 60, 60, 0.1); color: #b33; align-self: flex-start; }
.ai-chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--border-soft); }
.ai-chat-form input { flex: 1; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; color: var(--ink); font-family: inherit; font-size: 0.88rem; }
.ai-chat-form input:focus { outline: 2px solid var(--blue-light); outline-offset: 1px; }
.ai-chat-form button { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--gradient-brand); color: #fff; font-size: 1.1rem; cursor: pointer; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 80px 0 0 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 8px; transform: translateX(100%); transition: transform 0.3s var(--ease-bounce); border-top: 1px solid var(--border-soft); }
  .main-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .card-a, .card-b { position: static; margin-top: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .ai-chat { right: 14px; bottom: 14px; }
  .ai-chat-panel { width: min(340px, 92vw); }
  .wa-float { left: 14px; bottom: 14px; }
}
