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

:root {
  --navy:        #0d0f1a;
  --navy-d:      #06070d;
  --navy-l:      #1c2340;
  --blue:        #4f8ef7;
  --blue-l:      #93bbff;
  --blue-deep:   #2f5fd1;
  --blue-soft:   #eef4ff;
  --green:       #059669;
  --green-l:     #10b981;
  --green-soft:  #ecfdf5;
  --amber:       #f59e0b;
  --white:       #ffffff;
  --gray-bg:     #f7f8fc;
  --gray-100:    #f1f3f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --text:        #1e293b;
  --text-soft:   #64748b;

  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 4px 24px rgba(13,15,26,.10);
  --shadow-lg: 0 12px 48px rgba(13,15,26,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw;
  height: 68px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: var(--shadow); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy), var(--navy-l));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  color: var(--navy);
  letter-spacing: -.4px;
}
.nav-logo-text span { color: var(--blue-deep); }
.nav-logo-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo-mark svg { display: block; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--gray-600); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff !important;
  padding: 9px 20px; border-radius: 9px;
  font-weight: 600 !important; font-size: 13px !important;
  box-shadow: 0 4px 16px rgba(79,142,247,.35);
  transition: transform .2s, box-shadow .2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(79,142,247,.45); color: #fff !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 20px; color: var(--navy); }

/* ── HERO ─────────────────────────────────────────────────────── */
/* Fondo: si existe el archivo "hero-bg.jpg" (misma carpeta que este HTML) se muestra
   como imagen de fondo con un velo azul encima. Si no existe, el navegador ignora
   esa capa y se ve el degradado azul de siempre — no hay que tocar nada más. */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--navy);
  background-image: url('img/hero-bg.png'), linear-gradient(150deg, var(--navy-d) 0%, var(--navy) 50%, var(--navy-l) 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  display: flex; align-items: center;
  padding: 100px 6vw 80px;
  overflow: hidden;
}

/* Velo azul sobre la imagen (si la hay) para que el texto siga siendo legible */
.hero-tint {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(6,7,13,.90) 0%, rgba(13,15,26,.84) 50%, rgba(28,35,64,.78) 100%);
}

/* Firma visual: cuadrícula tipo planilla de calificaciones */
.hero-grid {
  position: absolute; inset: 0;
  opacity: .06;
  background-image:
    linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Barra diagonal decorativa */
.hero-stripe {
  position: absolute;
  top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-l) 100%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: .16;
  animation: morphBlob 8s ease-in-out infinite;
  filter: blur(2px);
}
.hero-stripe-2 {
  position: absolute;
  bottom: -80px; right: 200px;
  width: 300px; height: 300px;
  background: var(--amber);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  opacity: .08;
  animation: morphBlob 10s ease-in-out infinite reverse;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx,70%) var(--my,30%), rgba(79,142,247,.12), transparent 60%);
  transition: background .3s ease;
}
@keyframes morphBlob {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg); }
  50%       { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(8deg); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,142,247,.14);
  border: 1px solid rgba(147,187,255,.3);
  color: var(--blue-l);
  font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 28px;
}
.hero-badge i { font-size: 8px; color: var(--green-l); }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(100deg, var(--blue-l), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff;
  padding: 14px 28px; border-radius: 12px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  text-decoration: none; letter-spacing: -.2px;
  box-shadow: 0 8px 24px rgba(47,95,209,.4);
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(47,95,209,.5);
}
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green); color: #fff;
  padding: 14px 28px; border-radius: 12px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  text-decoration: none; letter-spacing: -.2px;
  box-shadow: 0 8px 24px rgba(5,150,105,.4);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-whatsapp:hover {
  background: var(--green-l);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(5,150,105,.5);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  color: rgba(255,255,255,.85);
  padding: 14px 24px; border-radius: 12px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.2);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

/* Mockup flotante tipo panel (eco visual del ícono orbital del logo) */
.hero-mock {
  position: absolute; z-index: 1;
  top: 42%; right: 8vw; transform: translateY(-50%);
  width: 2px; height: 2px;
}
@media (max-width: 900px) { .hero-mock { display: none; } }
@media (max-height: 700px) { .hero-mock { top: 38%; } }

.hero-mock-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(147,187,255,.2);
}
.hero-mock-ring-1 { width: 460px; height: 460px; top: -230px; right: -230px; animation: spinSlow 40s linear infinite; }
.hero-mock-ring-2 { width: 360px; height: 360px; top: -180px; right: -180px; border-color: rgba(147,187,255,.14); animation: spinSlow 30s linear infinite reverse; }
.hero-mock-dot-orbit {
  position: absolute; width: 460px; height: 460px; top: -230px; right: -230px;
  animation: spinSlow 40s linear infinite;
}
.hero-mock-dot-orbit::after {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 8px; height: 8px; margin-left: -4px;
  background: var(--blue-l); border-radius: 50%;
  box-shadow: 0 0 14px 3px rgba(147,187,255,.7);
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Stats en el hero */
.hero-stats {
  position: absolute; right: 6vw; bottom: 60px; z-index: 2;
  display: flex; gap: 32px;
}
@media (max-width: 900px) { .hero-stats { display: none; } }
.hero-stat { text-align: center; }
.hero-stat-val {
  font-family: var(--font-head);
  font-size: 32px; font-weight: 800; color: #fff;
  display: block; line-height: 1;
}
.hero-stat-val span { color: var(--blue-l); }
.hero-stat-lab { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; letter-spacing: .4px; }
.hero-stat-div { width: 1px; background: rgba(255,255,255,.12); align-self: stretch; }

/* ── SECCIÓN GENÉRICA ─────────────────────────────────────────── */
section { padding: 96px 6vw; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--blue-deep);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800; color: var(--navy);
  line-height: 1.15; letter-spacing: -.8px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--text-soft);
  line-height: 1.7; max-width: 540px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── SERVICIOS ────────────────────────────────────────────────── */
#servicios { background: var(--gray-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--gray-200);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79,142,247,.18);
  border-color: var(--blue);
}
.service-card.coming-soon {
  opacity: .72;
  border-style: dashed;
}
.service-card.coming-soon:hover { transform: none; box-shadow: var(--shadow); border-color: var(--gray-400); }

.service-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.service-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.icon-blue   { background: #eff6ff; color: #2563eb; }
.icon-green  { background: var(--green-soft); color: var(--green); }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-amber  { background: #fffbeb; color: #d97706; }
.icon-rose   { background: #fff1f2; color: #e11d48; }
.icon-teal   { background: #f0fdfa; color: #0d9488; }

.service-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
}
.tag-active   { background: var(--green-soft); color: var(--green); }
.tag-soon     { background: var(--gray-100);   color: var(--gray-400); }
.tag-new      { background: #eff6ff; color: #2563eb; }

.service-name {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 10px; line-height: 1.2;
}
.service-desc {
  font-size: 14.5px; color: var(--text-soft);
  line-height: 1.65; flex: 1;
}
.service-features {
  margin-top: 24px; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.service-features li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--gray-600);
}
.service-features li i {
  color: var(--green); font-size: 12px; flex-shrink: 0;
}
.service-features li.na { color: var(--gray-400); }
.service-features li.na i { color: var(--gray-400); }

.service-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 28px; font-size: 13.5px; font-weight: 600;
  color: var(--blue-deep); text-decoration: none;
  transition: gap .2s;
}
.service-link:hover { gap: 11px; }
.service-link i { font-size: 12px; }

/* Acento decorativo en cards activas */
.service-card:not(.coming-soon)::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-l));
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ── CÓMO FUNCIONA ────────────────────────────────────────────── */
#como-funciona { background: var(--white); }

.steps-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.steps-wrap::before {
  content: '';
  position: absolute;
  top: 32px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  z-index: 0;
}
@media (max-width: 700px) { .steps-wrap::before { display: none; } }

.step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 24px;
  position: relative; z-index: 1;
}
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-l));
  color: #fff;
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(15,45,94,.25);
  flex-shrink: 0;
}
.step-title {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.step-desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }

/* ── POR QUÉ ELEGIRNOS ────────────────────────────────────────── */
#ventajas {
  background: linear-gradient(150deg, var(--navy-d) 0%, var(--navy) 100%);
  position: relative; overflow: hidden;
}
#ventajas::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
#ventajas .section-eyebrow { color: var(--blue-l); }
#ventajas .section-title   { color: #fff; }
#ventajas .section-sub     { color: rgba(255,255,255,.65); }

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 56px;
  position: relative; z-index: 1;
}
.ventaja-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background .2s;
}
.ventaja-card:hover { background: rgba(255,255,255,.10); }
.ventaja-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(79,142,247,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-l); font-size: 18px; margin-bottom: 16px;
}
.ventaja-title {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700; color: #fff;
  margin-bottom: 8px;
}
.ventaja-desc { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ── TESTIMONIOS ──────────────────────────────────────────────── */
#testimonios { background: var(--gray-bg); }

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.testimonio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--gray-200);
}
.testimonio-stars { color: var(--amber); font-size: 13px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonio-text {
  font-size: 14.5px; color: var(--gray-600);
  line-height: 1.7; margin-bottom: 20px;
  font-style: italic;
}
.testimonio-text::before { content: '"'; font-size: 28px; color: var(--blue-deep); line-height: 0; vertical-align: -10px; margin-right: 4px; }
.testimonio-author { display: flex; align-items: center; gap: 12px; }
.testimonio-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-size: 15px; font-weight: 700;
  flex-shrink: 0;
}
.testimonio-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.testimonio-role { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

/* ── CTA FINAL ────────────────────────────────────────────────── */
#contacto {
  background: var(--white);
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, var(--navy-d), var(--navy-l));
  border-radius: 24px;
  padding: 72px 48px;
  max-width: 760px;
  margin: 0 auto;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 260px; height: 260px;
  background: var(--blue);
  border-radius: 50%;
  opacity: .15;
}
.cta-box .section-title { color: #fff; margin-bottom: 16px; }
.cta-box .section-sub   { color: rgba(255,255,255,.7); margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-white {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--navy);
  padding: 14px 28px; border-radius: 12px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: transform .15s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  background: var(--navy-d);
  padding: 48px 6vw 32px;
  color: rgba(255,255,255,.55);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-links h4 {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13.5px; color: rgba(255,255,255,.5); text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--blue-l); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12.5px;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 14px; text-decoration: none;
  transition: background .2s, color .2s;
}
.footer-socials a:hover { background: var(--blue); color: #fff; }

/* ── RESPONSIVE NAV ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 12px 0; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 6vw; }
  .nav-cta { margin: 8px 6vw; display: block; text-align: center; }
  .nav-toggle { display: block; }
  section { padding: 72px 6vw; }
  .cta-box { padding: 48px 28px; }
  .steps-wrap { gap: 40px; }
}

/* ── SCROLL REVEAL ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-stripe, .hero-stripe-2 { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   LOGO REAL — sustituye el ícono/texto genérico
   ══════════════════════════════════════════════════════════════ */
.nav-logo-mark img,
.footer-brand .nav-logo-mark img {
  display: block;
  height: 40px;
  width: auto;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.nav-logo:hover .nav-logo-mark img { transform: scale(1.06) rotate(-2deg); }

.nav-logo-full { height: 48px; width: auto; display: block; }
.footer-logo-full { height: 30px; width: auto; display: block; }

/* ══════════════════════════════════════════════════════════════
   DALE VIDA A LA PÁGINA — animaciones y micro-interacciones
   ══════════════════════════════════════════════════════════════ */

/* --- Entrada animada del hero al cargar (independiente del scroll) --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge   { animation: fadeSlideUp .7s .05s cubic-bezier(.16,1,.3,1) both; }
.hero-title   { animation: fadeSlideUp .8s .15s cubic-bezier(.16,1,.3,1) both; }
.hero-desc    { animation: fadeSlideUp .8s .28s cubic-bezier(.16,1,.3,1) both; }
.hero-actions { animation: fadeSlideUp .8s .40s cubic-bezier(.16,1,.3,1) both; }
.hero-stats   { animation: fadeSlideUp .8s .55s cubic-bezier(.16,1,.3,1) both; }
.hero-mock    { animation: fadeIn 1.1s .3s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Ícono del badge "en vivo" pulsando */
.hero-badge i { animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(1.3); }
}

/* Flecha del botón primario que respira hacia la derecha */
.btn-primary i { transition: transform .3s ease; }
.btn-primary:hover i { transform: translateX(3px) rotate(8deg); }
.btn-ghost i { transition: transform .3s ease; }
.btn-ghost:hover i { transform: scale(1.15); }

/* --- Scroll-spy: subrayado animado que sigue el link activo --- */
.nav-links a {
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--blue-deep);
  transition: width .25s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active-link::after { width: 100%; }
.nav-links a.active-link { color: var(--navy); }

/* --- Tilt 3D sutil en las tarjetas de servicio --- */
.service-card, .ventaja-card, .testimonio-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Brillo que sigue el cursor dentro de cada tarjeta */
.service-card, .ventaja-card {
  position: relative;
}
.service-card::after, .ventaja-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--cx,50%) var(--cy,50%), rgba(79,142,247,.14), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.service-card:hover::after, .ventaja-card:hover::after { opacity: 1; }

/* --- Íconos de servicio: pequeño rebote al pasar el mouse --- */
.service-icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.service-card:hover .service-icon { transform: scale(1.12) rotate(-4deg); }
.ventaja-icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .2s; }
.ventaja-card:hover .ventaja-icon { transform: scale(1.15) rotate(6deg); }

/* --- Avatares de testimonios: pequeño realce --- */
.testimonio-avatar { transition: transform .3s ease; }
.testimonio-card:hover .testimonio-avatar { transform: scale(1.08); }

/* --- Números de pasos "Cómo funciona" laten al entrar en viewport --- */
.step-num { transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.step:hover .step-num {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 28px rgba(15,45,94,.35);
}

/* --- Botones sociales del footer: rebote --- */
.footer-socials a { transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s, color .2s; }
.footer-socials a:hover { transform: translateY(-3px) scale(1.08); }

/* --- Botón "volver arriba" flotante --- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(79,142,247,.4);
  opacity: 0; transform: translateY(16px) scale(.85);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { box-shadow: 0 12px 30px rgba(79,142,247,.55); transform: translateY(-3px) scale(1.05); }

/* --- Nav: la marca respira levemente cuando la página hace scroll --- */
nav.scrolled .nav-logo-mark img { height: 34px; }
.nav-logo-mark img { transition: height .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1); }

/* --- Estadísticas del hero: leve flotación continua --- */
.hero-stat { animation: floatStat 4.5s ease-in-out infinite; }
.hero-stat:nth-child(3) { animation-delay: .3s; }
.hero-stat:nth-child(5) { animation-delay: .6s; }
@keyframes floatStat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-title, .hero-desc, .hero-actions, .hero-stats, .hero-mock {
    animation: none !important;
  }
  .hero-stat { animation: none !important; }
  .hero-badge i { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   LOGO REBOTANDO ESTILO DVD — cápsula circular con destellos
   ══════════════════════════════════════════════════════════════ */
.dvd-logo {
  position: fixed;
  top: 0; left: 0;
  width: 72px; height: 72px;
  z-index: 95;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transform: translate3d(0,0,0);
  opacity: 0;
  animation: dvdFadeIn .6s .8s ease forwards;
  --dvd-c1: #2f5fd1;
  --dvd-c2: #ec1e79;
  --dvd-c3: #f5a623;
  --dvd-c4: #10b981;
}
@keyframes dvdFadeIn { to { opacity: 1; } }

/* Halo difuso detrás que respira */
.dvd-halo {
  position: absolute; inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,.5), transparent 70%);
  filter: blur(7px);
  animation: dvdHaloBreathe 2.6s ease-in-out infinite;
  z-index: 0;
}
@keyframes dvdHaloBreathe {
  0%, 100% { transform: scale(.82); opacity: .5; }
  50%      { transform: scale(1.18); opacity: .95; }
}

/* Anillo degradado que gira sin parar */
.dvd-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--dvd-c1), var(--dvd-c2), var(--dvd-c3), var(--dvd-c4), var(--dvd-c1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: dvdRingSpin 5s linear infinite;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(13,15,26,.35);
}
@keyframes dvdRingSpin { to { transform: rotate(360deg); } }

/* Cápsula de cristal donde vive el logo */
.dvd-orb {
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 2px 6px rgba(13,15,26,.15);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  z-index: 2;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.dvd-orb img {
  width: 66%; height: 66%; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.18));
}

/* Reacción al chocar contra un borde (clase añadida por JS) */
.dvd-logo.hit .dvd-ring  { animation: dvdRingSpin 5s linear infinite, dvdRingFlash .55s ease; }
.dvd-logo.hit .dvd-halo  { animation: dvdHaloBreathe 2.6s ease-in-out infinite, dvdHaloFlash .55s ease; }
.dvd-logo.hit .dvd-orb   { transform: scale(1.14); }
@keyframes dvdRingFlash {
  0%   { filter: brightness(1)   drop-shadow(0 0 0 transparent); }
  35%  { filter: brightness(1.9) drop-shadow(0 0 14px var(--dvd-glow, #4f8ef7)); }
  100% { filter: brightness(1)   drop-shadow(0 0 0 transparent); }
}
@keyframes dvdHaloFlash {
  0%   { transform: scale(1);   opacity: .7; }
  35%  { transform: scale(1.7); opacity: 1;  }
  100% { transform: scale(1);   opacity: .7; }
}

/* Destellos (chispas) que salen disparados al chocar */
.dvd-spark {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--col, #4f8ef7);
  box-shadow: 0 0 10px 2px var(--col, #4f8ef7);
  pointer-events: none;
  z-index: 96;
  animation: dvdSparkFly .65s cubic-bezier(.22,.85,.32,1) forwards;
}
@keyframes dvdSparkFly {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0); opacity: 0; }
}

/* Chispas en forma de estrella para dar variedad */
.dvd-star {
  position: fixed; top: 0; left: 0;
  font-size: var(--sz, 12px);
  line-height: 1;
  color: var(--col, #f5a623);
  text-shadow: 0 0 8px var(--col, #f5a623);
  pointer-events: none;
  z-index: 96;
  animation: dvdSparkFly .75s cubic-bezier(.22,.85,.32,1) forwards;
}

/* Onda expansiva en el punto de impacto */
.dvd-shock {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border: 2px solid var(--col, #4f8ef7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 94;
  transform: translate(-50%,-50%) scale(1);
  opacity: .85;
  animation: dvdShockOut .55s ease-out forwards;
}
@keyframes dvdShockOut {
  to { transform: translate(-50%,-50%) scale(7); opacity: 0; }
}

/* Se ajusta / oculta con respeto a accesibilidad y en pantallas chicas */
@media (max-width: 560px) {
  .dvd-logo { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .dvd-logo { display: none; }
}
