:root {
  --orange: #fa5923;
  --gold: #fdad0e;
  --ink: #343434;
  --black: #111111;
  --paper: #fafafa;
  --soft: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 0 10px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--black);
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 50;
  color: var(--white);
  background: var(--black);
  border-bottom: 4px solid var(--orange);
}
.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { width: 82px; height: 82px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a {
  position: relative;
  color: var(--white);
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.language-toggle {
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.language-toggle .active-lang { color: var(--gold); }
.menu-toggle { display: none; }

.original-hero {
  min-height: 920px;
  display: grid;
  grid-template-columns: 48% 52%;
  background: var(--paper);
}
.hero-photo {
  min-height: 920px;
  background: url("assets/hero-classroom.jpg") center top / cover no-repeat;
}
.hero-panel {
  align-self: stretch;
  padding: 112px clamp(36px, 6vw, 96px) 72px;
  background: var(--paper);
}
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.hero-kicker span { width: 96px; height: 2px; background: var(--gold); }
.hero-kicker p { margin: 0; font-size: .98rem; }
.hero-panel h1 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.45rem, 4.2vw, 4.35rem);
  line-height: 1.06;
}
.hero-copy { max-width: 650px; margin: 26px 0 28px; font-size: 1.05rem; }
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 8px 22px rgba(250, 89, 35, .22);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover, .button:focus-visible {
  color: var(--white);
  background: #e94c18;
  box-shadow: 0 12px 28px rgba(250, 89, 35, .32);
}
.value-stack { display: grid; gap: 18px; max-width: 650px; margin-top: 42px; }
.value-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px;
  border: 1px solid #f4f5f6;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.value-card img { width: 70px; height: 70px; flex: 0 0 70px; object-fit: contain; }
.value-card h2 { margin: 0; font-size: 1.08rem; line-height: 1.3; }

.section { padding: 80px 0; }
.section-soft { background: var(--soft); }
.section-heading { max-width: 890px; margin-bottom: 44px; }
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.12;
}
.section-heading p { max-width: 820px; margin: 20px 0 0; font-size: 1.05rem; }
.section-line { display: block; width: 15%; min-width: 96px; height: 2px; margin-top: 20px; background: var(--gold); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.feature-card {
  min-height: 365px;
  padding: 28px 20px 30px;
  text-align: center;
  border: 1px solid #f4f5f6;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 0 5px rgba(0,0,0,.35);
}
.feature-card:hover { box-shadow: 0 24px 80px -16px rgba(0,0,0,.18); }
.feature-card img { width: 46%; max-width: 165px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 18px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.22rem; }
.feature-card p { margin: 0 auto; max-width: 270px; }
.centered-action { margin-top: 42px; text-align: center; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit-card {
  overflow: hidden;
  border-radius: 25px;
  background: var(--white);
  box-shadow: 0 0 6px rgba(0,0,0,.28);
}
.benefit-card:hover { box-shadow: 0 24px 80px -16px rgba(0,0,0,.2); }
.benefit-card img { width: 100%; height: 245px; object-fit: cover; }
.benefit-card div { min-height: 190px; padding: 22px 24px 28px; }
.benefit-card h3 { margin: 0 0 10px; font-size: 1.28rem; line-height: 1.25; }
.benefit-card p { margin: 0; }

.languages-section { background: var(--paper); }
.flag-carousel { position: relative; padding-inline: 42px; }
.flag-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 10px 4px 22px;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) #ececec;
}
.flag-track figure {
  min-width: calc((100% - 96px) / 4);
  height: 190px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 18px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 3px 14px rgba(0,0,0,.1);
  scroll-snap-align: start;
}
.flag-track img { width: 100%; max-width: 210px; max-height: 150px; object-fit: contain; image-rendering: auto; }
.carousel-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--orange);
  background: var(--white);
  box-shadow: 0 3px 14px rgba(0,0,0,.18);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel-previous { left: 0; }
.carousel-next { right: 0; }

.download-section { color: var(--white); background: #000; }
.download-grid { min-height: 600px; display: grid; grid-template-columns: 40% 60%; align-items: start; }
.download-copy {
  position: sticky;
  top: 24vh;
  padding: 70px 30px;
  text-align: center;
}
.download-copy h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.12; }
.download-copy > p { margin: 18px auto 0; max-width: 430px; }
.store-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.store-badges img { width: 100%; height: auto; }
.download-copy .store-status {
  margin-top: 18px;
  color: #d0d0d0;
  font-size: .85rem;
  line-height: 1.45;
}
.product-story {
  --product-progress: 0;
  position: relative;
  min-height: 138vh;
}
.product-stage {
  position: sticky;
  top: 8vh;
  height: 84vh;
  min-height: 560px;
  isolation: isolate;
}
.product-glow {
  position: absolute;
  z-index: -1;
  right: 9%;
  bottom: 14%;
  left: 9%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(250, 89, 35, .24), rgba(253, 173, 14, .08) 42%, transparent 72%);
  filter: blur(28px);
  transform: scale(calc(.88 + var(--product-progress) * .2));
  will-change: transform;
}
.product-layer {
  position: absolute;
  inset: 0;
  background: url("assets/app-original.png") center / contain no-repeat;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, .38));
  transform-origin: 50% 68%;
  will-change: transform;
}
.product-layer-left {
  clip-path: polygon(0 0, 39% 0, 39% 100%, 0 100%);
  transform: translate3d(calc(var(--product-progress) * -58px), calc(var(--product-progress) * 20px), 0) rotate(calc(var(--product-progress) * -2.2deg)) scale(calc(1 - var(--product-progress) * .025));
}
.product-layer-center {
  clip-path: polygon(31% 0, 71% 0, 71% 100%, 31% 100%);
  transform: translate3d(0, calc(var(--product-progress) * -34px), 0) scale(calc(1 + var(--product-progress) * .018));
}
.product-layer-right {
  clip-path: polygon(63% 0, 100% 0, 100% 100%, 63% 100%);
  transform: translate3d(calc(var(--product-progress) * 58px), calc(var(--product-progress) * 18px), 0) rotate(calc(var(--product-progress) * 2.2deg)) scale(calc(1 - var(--product-progress) * .018));
}
.product-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* La animación se activa sólo después de que JavaScript ha preparado cada máscara. */
.motion-enhanced [data-curtain] {
  clip-path: inset(var(--curtain-mask, 100%) 0 0 0);
  transform: translate3d(0, var(--curtain-y, 34px), 0);
  transform-origin: 50% 100%;
  will-change: transform, clip-path;
}
.motion-enhanced [data-curtain].curtain-settled {
  clip-path: none;
  transform: none;
  will-change: auto;
}
[data-spring-hover] {
  --spring-scale: 1;
  transform: translateZ(0) scale(var(--spring-scale));
  transform-origin: 50% 50%;
  will-change: auto;
}
[data-spring-hover].spring-active { will-change: transform; }
.primary-nav a[data-spring-hover],
.footer-links a[data-spring-hover] { display: inline-block; }

.site-footer { color: var(--white); background: var(--black); border-top: 1px solid #292929; }
.footer-inner { min-height: 132px; display: flex; align-items: center; gap: 28px; }
.footer-brand { margin-right: auto; }
.footer-brand img { width: 86px; height: 86px; object-fit: contain; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--white); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-inner p { margin: 0; color: #cfcfcf; font-size: .88rem; }

/* Privacy page */
.privacy-main { padding: 76px 0 96px; }
.privacy-hero { max-width: 850px; }
.privacy-hero h1 { margin: 8px 0 18px; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.08; }
.eyebrow { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.privacy-note { margin-top: 26px; padding: 18px 20px; border-left: 4px solid var(--gold); background: #fff5dd; }
.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; margin-top: 64px; align-items: start; }
.policy-nav { position: sticky; top: 22px; display: grid; gap: 8px; }
.policy-nav a { padding: 9px 12px; border-radius: 7px; text-decoration: none; }
.policy-nav a:hover { color: var(--orange); background: var(--white); }
.policy-content { padding: 22px 40px; border-radius: 14px; background: var(--white); box-shadow: 0 8px 36px rgba(0,0,0,.08); }
.policy-content section { padding: 24px 0; border-bottom: 1px solid #ececec; }
.policy-content section:last-child { border-bottom: 0; }
.policy-content h2 { margin: 0 0 10px; }
.policy-content p { margin: 0; }

@media (max-width: 1024px) {
  .primary-nav { gap: 17px; }
  .original-hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { min-height: 600px; background-position: center 38%; }
  .hero-panel { padding: 64px min(8vw, 72px); }
  .feature-grid { gap: 22px; }
  .benefit-grid { gap: 18px; }
  .flag-track figure { min-width: calc((100% - 32px) / 2); }
  .download-grid { grid-template-columns: 42% 58%; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 88px; gap: 16px; }
  .brand img { width: 72px; height: 72px; }
  .menu-toggle {
    display: inline-grid;
    gap: 5px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle > span:not(.sr-only) { width: 25px; height: 2px; background: var(--white); }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 20px 24px 24px;
    background: var(--black);
    border-bottom: 4px solid var(--orange);
  }
  .primary-nav.open { display: grid; }
  .primary-nav a { padding: 8px 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { display: grid; grid-template-columns: 42% 58%; }
  .benefit-card img { height: 100%; min-height: 230px; }
  .benefit-card div { min-height: 0; align-self: center; }
  .download-grid { grid-template-columns: 1fr; }
  .download-copy { position: static; padding-bottom: 24px; }
  .product-story { min-height: min(720px, 92vw); }
  .product-stage { position: relative; top: auto; height: min(680px, 88vw); min-height: 420px; }
  .policy-layout { grid-template-columns: 1fr; gap: 24px; }
  .policy-nav { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { width: min(100% - 30px, 1140px); }
  .original-hero { display: block; }
  .hero-photo { min-height: 370px; background-position: center 30%; }
  .hero-panel { padding: 42px 22px 54px; }
  .hero-panel h1 { font-size: 2.35rem; }
  .hero-kicker span { width: 52px; }
  .value-card { gap: 15px; }
  .value-card img { width: 58px; height: 58px; flex-basis: 58px; }
  .section { padding: 50px 0; }
  .section-heading { margin-bottom: 30px; }
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-card { min-height: 0; }
  .benefit-card { display: block; }
  .benefit-card img { height: 220px; }
  .flag-carousel { padding-inline: 32px; }
  .flag-track { gap: 14px; }
  .flag-track figure { min-width: 100%; height: 170px; }
  .carousel-button { width: 32px; height: 32px; }
  .store-badges { grid-template-columns: 1fr; max-width: 330px; margin-inline: auto; }
  .download-copy { padding: 52px 8px 22px; }
  .product-story { min-height: 78vw; }
  .product-stage { height: 76vw; min-height: 300px; }
  .footer-inner { flex-wrap: wrap; justify-content: center; padding: 28px 0; text-align: center; }
  .footer-brand { margin-right: 0; }
  .footer-links { width: 100%; justify-content: center; }
  .footer-inner p { width: 100%; }
  .policy-nav { grid-template-columns: 1fr; }
  .policy-content { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .motion-enhanced [data-curtain],
  [data-spring-hover] {
    clip-path: none !important;
    transform: none !important;
    will-change: auto !important;
  }
  .download-copy { position: static; }
  .product-story { min-height: 0; padding: 28px 0 48px; }
  .product-stage { display: none; }
  .product-fallback {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
}
