/* ===== Tokens ===== */
:root {
  --navy-950: #0C1740;
  --navy-800: #182342;
  --navy-700: #192768;
  --blue-600: #1E519F;
  --blue-500: #4C6EF5;
  --teal: #14A1A3;
  --green: #4DBF7A;
  --mint-100: #D7F6E4;
  --gray-50: #F4F6FB;
  --gray-100: #EEF1F8;
  --text-heading: #101B3D;
  --text-body: #4B5565;
  --text-muted: #8993A8;
  --white: #FFFFFF;

  --gradient: linear-gradient(90deg, var(--teal), var(--green));
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --max-width: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin: 0 0 20px;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 16px; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.center-text { display: block; text-align: center; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-white { color: var(--white); }
.lead-muted { color: #B7C0DA; max-width: 620px; margin: 0 auto 28px; }
.section .lead-muted { color: var(--text-body); }
.fine-print { font-size: 0.8rem; color: var(--text-muted); margin-top: 20px; }

.eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.eyebrow-green { color: var(--green); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s var(--ease), background 0.2s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--teal), var(--green));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(30,81,159,0.35); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-small { padding: 10px 18px; font-size: 0.85rem; border-radius: 24px; }
.btn-large { padding: 16px 36px; font-size: 1.05rem; }
.btn-magnetic { transition: transform 0.25s var(--ease-spring), box-shadow 0.3s var(--ease); }

/* ===== Hero ===== */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 30% 30%, rgba(20,161,163,0.16), transparent 55%),
    radial-gradient(circle at 70% 40%, rgba(77,191,122,0.14), transparent 55%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  animation: driftGlow 16s ease-in-out infinite alternate;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-logo { margin-bottom: 24px; }
.hero-logo img { width: 220px; height: auto; }
.hero-lead { font-size: 1.05rem; }
.hero-copy .btn { margin-top: 12px; }
.hero-media img { border-radius: 8px; }

/* Tilt + float wrappers for mockups */
.tilt {
  perspective: 1200px;
}
.tilt > img {
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.floaty { animation: floatY 6s ease-in-out infinite; }
@media (prefers-reduced-motion: no-preference) {
  .floaty { animation-play-state: running; }
}

/* ===== Feature band ===== */
.feature-band { background: var(--navy-700); padding: 28px 0; }
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.pill {
  background: var(--mint-100);
  color: var(--navy-950);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 30px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease;
}
.pill:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-tight { padding-top: 40px; padding-bottom: 80px; }
.section-alt { background: var(--gray-50); }
.section-dark {
  background: radial-gradient(circle at 50% 0%, var(--navy-800), var(--navy-950) 70%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-dark h2 { color: var(--white); }
.bg-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(20,161,163,0.18), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(77,191,122,0.12), transparent 45%);
  animation: driftAtmosphere 20s ease-in-out infinite alternate;
}
.bg-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.section-dark .container { position: relative; z-index: 1; }

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}
.split-block:last-child { margin-bottom: 0; }
.split-block.reverse .split-text { order: 2; }
.split-block.reverse .split-media { order: 1; }
.split-text p { font-size: 1.02rem; }
.split-media img { border-radius: 8px; }

.que-es-block { align-items: start; padding-top: 12px; }
.que-es-block .split-text { padding-top: 8px; }
.que-es-block .split-text .btn { margin-top: 8px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(16, 27, 61, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.card-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; margin: 0; }

.hover-lift { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 27, 61, 0.12);
}

/* Stat / model */
.stat-big { font-family: var(--font-heading); font-weight: 800; font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; margin-bottom: 8px; }
.model-card {
  margin-top: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 40px;
  text-align: left;
}
.model-card p { color: #D6DCEE; }
.model-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 24px 0; background: rgba(255,255,255,0.1); }
.model-bar span { width: 0; transition: width 1.4s var(--ease); }
.model-bar span:nth-child(1) { background: var(--green); transition-delay: 0.1s; }
.model-bar span:nth-child(2) { background: var(--teal); transition-delay: 0.35s; }
.model-bar span:nth-child(3) { background: rgba(255,255,255,0.25); transition-delay: 0.6s; }
.model-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model-legend strong { color: var(--white); font-size: 1.1rem; margin-right: 6px; }
.model-legend p { color: #B7C0DA; font-size: 0.88rem; margin: 4px 0 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; position: relative; }
.dot-green { background: var(--green); }
.dot-teal { background: var(--teal); }
.dot-gray { background: rgba(255,255,255,0.4); }
.dot-green::after, .dot-teal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulseRing 2.4s ease-out infinite;
}

.laptop-shot { margin: 40px auto; max-width: 800px; }

.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
  text-align: left;
}
.feature-trio h3 { margin-bottom: 8px; }
.feature-trio p { font-size: 0.92rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
  position: relative;
}
.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--gray-50);
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease-spring), background 0.3s ease, color 0.3s ease;
}
.step:hover .step-circle {
  background: var(--gradient);
  color: var(--white);
  transform: scale(1.12);
  border-color: transparent;
}
.step p { font-size: 0.92rem; }
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 18px);
  opacity: 0.5;
  z-index: 0;
}
@media (max-width: 860px) { .steps::before { display: none; } }

/* Pruebalo ahora */
.callout-media { position: relative; max-width: 760px; margin: 48px auto 0; }
.callout-tag {
  position: absolute;
  z-index: 3;
  background: var(--mint-100);
  color: var(--navy-950);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 24px;
  white-space: nowrap;
  display: none;
}
@media (min-width: 900px) {
  .callout-tag { display: block; }
  .callout-tag-left { left: -60px; top: 55%; }
  .callout-tag-right { right: -60px; top: 30%; }
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy-950);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s var(--ease-spring);
  z-index: 2;
}
.play-button svg { margin-left: 3px; }
.play-button:hover { transform: translate(-50%, -50%) scale(1.12); }
.play-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(77,191,122,0.55);
  animation: pulseRing 2.2s ease-out infinite;
}

/* Numbers / práctica medible */
.numbers-block { align-items: start; }
.numbers-media { margin-top: 28px; border-radius: 8px; }
.numbers-cta { margin: 8px 0 24px; }

/* Stats panel */
.stats-panel {
  background: var(--gray-50);
  border-radius: 20px;
  padding: 24px;
}
.stats-panel-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.stats-panel-head h4 { margin-bottom: 4px; }
.stats-panel-head p { margin: 0; font-size: 0.88rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-box { background: var(--white); border-radius: 14px; padding: 20px; text-align: center; }
.stat-num { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.9rem; margin-bottom: 6px; }
.stat-blue { color: var(--blue-500); }
.stat-box p { margin: 0; font-size: 0.82rem; }

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 40px 0 36px;
}
.chip {
  background: var(--white);
  border: 1px solid var(--gray-100);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(16,27,61,0.04);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.chip:hover {
  transform: translateY(-4px) rotate(-1deg) scale(1.03);
  background: var(--navy-950);
  color: var(--white);
  border-color: var(--navy-950);
  box-shadow: 0 14px 28px rgba(16,27,61,0.22);
}

/* Testimonial */
.testimonial {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(16,27,61,0.08);
  padding: 48px;
  text-align: center;
  margin: 0;
}
.testimonial {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(16,27,61,0.14); }
.quote-mark { color: var(--green); font-size: 1.6rem; font-weight: 800; display: block; margin-bottom: 16px; letter-spacing: 4px; animation: floatY 4s ease-in-out infinite; }
.testimonial p { font-size: 1.1rem; color: var(--text-heading); max-width: 640px; margin: 0 auto 24px; }
.testimonial footer { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial footer div { text-align: left; }
.testimonial footer strong { display: block; color: var(--text-heading); font-size: 0.92rem; }
.testimonial footer span { color: var(--text-muted); font-size: 0.85rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-950); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}

/* Accordion */
.accordion { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.accordion-item:hover { border-color: var(--teal); box-shadow: 0 10px 24px rgba(16,27,61,0.06); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-heading);
  transition: color 0.25s ease;
}
.accordion-item:hover .accordion-trigger { color: var(--blue-600); }
.accordion-icon {
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
  display: inline-flex;
  transition: transform 0.35s var(--ease-spring), color 0.3s ease;
}
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); color: var(--green); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
  padding: 0 24px;
}
.accordion-item.is-open .accordion-panel {
  max-height: 400px;
  padding: 0 24px 20px;
}
.accordion-panel p { margin: 0; font-size: 0.92rem; }

/* Footer */
.site-footer { background: var(--navy-950); padding: 32px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; transition: opacity 0.3s ease; }
.footer-inner img:hover { opacity: 1; }
.footer-inner p { margin: 0; color: #8993A8; font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split-block, .split-block.reverse { grid-template-columns: 1fr; }
  .split-block .split-text, .split-block.reverse .split-text { order: 1; }
  .split-block .split-media, .split-block.reverse .split-media { order: 2; }
  .card-grid, .feature-trio { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .model-legend { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .testimonial { padding: 32px 24px; }
}

/* ===== Motion system: reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateY(20px) translateX(-24px); }
.reveal-left.is-visible { transform: translateY(0) translateX(0); }
.reveal-right { transform: translateY(20px) translateX(24px); }
.reveal-right.is-visible { transform: translateY(0) translateX(0); }

/* Staggered children: fade/rise in sequence as soon as the parent enters view */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }
.stagger.is-visible > *:nth-child(9) { transition-delay: 640ms; }
.stagger.is-visible > *:nth-child(10) { transition-delay: 720ms; }
.stagger.is-visible > *:nth-child(11) { transition-delay: 800ms; }
.stagger.is-visible > *:nth-child(12) { transition-delay: 880ms; }

/* ===== Keyframes ===== */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes driftGlow {
  0% { transform: translate(-50%, 0) scale(1); }
  100% { transform: translate(-46%, 2%) scale(1.08); }
}
@keyframes driftAtmosphere {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(1.5%, -2%) scale(1.06); }
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ===== Floating CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 22px;
  border-radius: 30px;
  box-shadow: 0 14px 32px rgba(16,27,61,0.28);
  transform: translateY(120%) scale(0.9);
  opacity: 0;
  transition: transform 0.45s var(--ease-spring), opacity 0.35s ease, background 0.25s ease, box-shadow 0.3s ease;
  z-index: 900;
}
.floating-cta.is-visible { transform: translateY(0) scale(1); opacity: 1; }
.floating-cta:hover { background: #163e7d; box-shadow: 0 18px 40px rgba(16,27,61,0.36); transform: translateY(-3px) scale(1.03); }
@media (max-width: 640px) {
  .floating-cta span { display: none; }
  .floating-cta { padding: 14px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
}
