/* KYRA · landing — estilo iOS: claro, vidrio, aire, movimiento suave */

:root {
  --ink: #1B1626;          /* marca: noche */
  --ink-2: #4a4458;
  --muted: #6b6573;
  --violet: #6D5BA6;       /* marca: violeta */
  --gold: #E8B89C;         /* marca: oro rosa */
  --gold-deep: #b9805f;
  --cream: #F5EEE7;        /* marca: crema */
  --white: #FFFFFF;
  --bg: #FBF8F5;
  --line: rgba(27, 22, 38, .08);
  --glass: rgba(255, 255, 255, .58);
  --glass-brd: rgba(255, 255, 255, .75);
  --shadow: 0 1px 1px rgba(27,22,38,.03), 0 12px 40px -12px rgba(27,22,38,.14);
  --r-lg: 32px;
  --r-md: 22px;
  --spring: cubic-bezier(.2, .9, .25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Vidrio ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
}
.glass--dark {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* ---------- Progreso ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--violet), var(--gold)); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 12px; }
.nav__inner {
  max-width: 980px; margin: 0 auto; height: 52px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 20px;
  transition: box-shadow .4s var(--spring), background .4s;
}
.nav.is-scrolled .nav__inner { background: rgba(255,255,255,.72); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .38em; font-size: 15px; }
.brand img { width: 22px; height: auto; }
.nav__links { display: flex; gap: clamp(12px, 2.2vw, 28px); white-space: nowrap; font-size: 14px; color: var(--ink-2); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.link-quiet { font-size: 14px; color: var(--ink-2); }
.link-quiet:hover { color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: 16px; font-weight: 500;
  transition: transform .5s var(--spring), box-shadow .4s, background .3s;
  box-shadow: 0 8px 24px -10px rgba(27,22,38,.5);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn--ghost { background: rgba(255,255,255,.6); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--block { width: 100%; }

/* ---------- Tipografía ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--violet); margin-bottom: 14px; }
.eyebrow--gold { color: var(--gold); }
.h2 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); margin-top: 20px; line-height: 1.45; }
.note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 40px; overflow: hidden; }
.hero__aura {
  position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 30% 30%, rgba(109,91,166,.20), transparent 70%),
    radial-gradient(35% 35% at 72% 25%, rgba(232,184,156,.38), transparent 70%),
    radial-gradient(50% 40% at 50% 70%, rgba(245,238,231,1), transparent 70%);
  filter: blur(20px);
  animation: aura 18s ease-in-out infinite alternate;
}
@keyframes aura { to { transform: translate3d(0, 40px, 0) scale(1.08); } }
.hero__inner { text-align: center; padding: 0 22px; }
.hero__k { width: 72px; height: auto; margin: 0 auto 28px; filter: drop-shadow(0 12px 24px rgba(185,128,95,.35)); }
.hero__title { font-size: clamp(44px, 8.6vw, 104px); line-height: 1.0; letter-spacing: -.045em; font-weight: 700; }
.hero__sub { font-size: clamp(19px, 2.3vw, 26px); color: var(--ink-2); max-width: 640px; margin: 24px auto 0; line-height: 1.4; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.showcase { padding: 72px 22px 0; perspective: 1400px; }
.showcase__frame {
  max-width: 1080px; margin: 0 auto; border-radius: var(--r-lg); padding: 10px; overflow: hidden;
  transform-origin: 50% 0;
  transform: scale(.86) rotateX(14deg);
  will-change: transform;
}
.showcase__frame video { width: 100%; border-radius: 24px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream); }

/* ---------- Frase que se ilumina ---------- */
.statement { padding: 160px 22px 120px; }
.statement__text {
  max-width: 980px; margin: 0 auto; font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.12; letter-spacing: -.035em; font-weight: 700;
}
.statement__text .w { color: #908a99; transition: color .35s ease; }
.statement__text .w.on { color: var(--ink); }

/* ---------- Cifras ---------- */
.stats { padding: 0 22px 140px; }
.stats__grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat__num {
  display: block; font-size: clamp(64px, 9vw, 112px); font-weight: 700; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, var(--violet), #a38bd0 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 12px; color: var(--ink-2); font-size: 16px; max-width: 220px; margin-inline: auto; }

/* ---------- Secciones ---------- */
.section { padding: 140px 0; }
.section--tint { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .lead { color: rgba(245,238,231,.72); }

/* ---------- Bento ---------- */
.bento { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-flow: dense; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 34px;
  background: var(--white); box-shadow: var(--shadow);
  transition: transform .7s var(--spring), box-shadow .5s;
}
.tile:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 30px 60px -24px rgba(27,22,38,.28); }
.tile h3 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 10px; font-weight: 700; }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile--dark { background: var(--ink); color: var(--cream); }
.tile--dark p { color: rgba(245,238,231,.7); }
.tile--img { display: flex; flex-direction: column; padding: 0; min-height: 360px; }
.tile--img .tile__text { padding: 34px 34px 0; position: relative; z-index: 1; }
.tile--img img { margin-top: auto; width: 100%; object-fit: cover; object-position: 50% 65%; aspect-ratio: 16 / 9; transition: transform 1.2s var(--spring); }
.tile--tall img { aspect-ratio: 4 / 5; }
.tile--wide.tile--img { flex-direction: row; align-items: stretch; }
.tile--wide.tile--img .tile__text { flex: 1; padding: 40px; align-self: center; }
.tile--wide.tile--img img { width: 46%; aspect-ratio: auto; object-position: 50% 60%; margin: 0; }
.tile--img:hover img { transform: scale(1.05); }

/* ---------- Demo ---------- */
.player { margin-top: 56px; border-radius: var(--r-lg); padding: 10px; }
.player video { width: 100%; border-radius: 24px; aspect-ratio: 16/9; background: var(--white); }

/* ---------- Seguridad ---------- */
.shield { color: var(--gold); display: inline-flex; margin-bottom: 18px; }
.sec-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec { border-radius: var(--r-md); padding: 30px; transition: transform .7s var(--spring), background .4s; }
.sec:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.sec h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; color: var(--white); }
.sec p { color: rgba(245,238,231,.66); font-size: 15.5px; }

/* ---------- Planes ---------- */
.plans { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; border-radius: var(--r-lg); padding: 36px 30px 30px; display: flex; flex-direction: column; background: rgba(255,255,255,.7); transition: transform .7s var(--spring); }
.plan:hover { transform: translateY(-6px); }
.plan h3 { font-size: 30px; letter-spacing: -.03em; }
.plan__for { color: var(--ink-2); margin-top: 6px; min-height: 52px; font-size: 16px; }
.plan ul { list-style: none; margin: 26px 0 30px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); }
.plan li strong { color: var(--ink); font-size: 20px; }
.plan--pro { background: var(--white); box-shadow: 0 0 0 2px var(--violet), 0 30px 60px -28px rgba(109,91,166,.5); }
.badge { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 600; color: var(--violet); background: rgba(109,91,166,.1); padding: 5px 11px; border-radius: 999px; }

/* ---------- Contacto ---------- */
.cta__k { width: 52px; height: auto; margin: 0 auto 26px; }
.contact { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact__item { border-radius: var(--r-md); padding: 22px 18px; display: grid; gap: 4px; transition: transform .6s var(--spring); }
.contact__item:hover { transform: translateY(-4px) scale(1.02); }
.contact__label { font-size: 13px; color: var(--muted); }
.contact__value { font-weight: 600; font-size: 17px; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 60px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.footer__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.brand--foot { font-size: 13px; }
.brand--foot img { width: 18px; }

/* ---------- Movimiento ---------- */
/* Aparición: solo opacity + transform (baratos para el celular). */
.reveal, .stagger > * {
  opacity: 0; transform: translateY(28px) scale(.98);
  transition: opacity 1s var(--spring), transform 1.1s var(--spring);
}
.reveal.in, .stagger > .in { opacity: 1; transform: none; }
/* En pantallas grandes con mouse se suma el desenfoque suave. */
@media (min-width: 901px) and (hover: hover) {
  .reveal, .stagger > * { filter: blur(8px); transition: opacity 1s var(--spring), transform 1.1s var(--spring), filter 1s var(--spring); }
  .reveal.in, .stagger > .in { filter: none; }
}

/* Hero: aparece solo con CSS al cargar, sin esperar al JS (mejor LCP). */
.hero .reveal { opacity: 1; transform: none; filter: none; transition: none; animation: hero-in 1s var(--spring) both; }
.hero .eyebrow { animation-delay: .05s; }
.hero .hero__title { animation-delay: .12s; }
.hero .hero__sub { animation-delay: .22s; }
.hero .hero__actions { animation-delay: .32s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.hero__k { will-change: transform; }

/* Imágenes y videos con width/height en el HTML: la altura sale del aspect-ratio. */
picture { display: contents; }
picture > source { display: none; }
.tile--img img, .showcase__frame video, .player video { height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .bento, .sec-grid, .plans { grid-template-columns: 1fr 1fr; }
  .tile--wide.tile--img { flex-direction: column; }
  .tile--wide.tile--img img { width: 100%; aspect-ratio: 16/9; }
  .tile--wide.tile--img .tile__text { padding: 34px 34px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .link-quiet { display: none; }
  .hero { padding-top: 120px; }
  .bento, .sec-grid, .plans, .stats__grid, .contact { grid-template-columns: 1fr; }
  .tile--wide, .tile--tall { grid-column: auto; grid-row: auto; }
  .tile { padding: 28px; }
  .tile--img { padding: 0; min-height: 0; }
  .tile--img .tile__text, .tile--wide.tile--img .tile__text { padding: 28px 28px 0; }
  .tile--tall img { aspect-ratio: 16/10; }
  .section { padding: 100px 0; }
  .statement { padding: 110px 22px 80px; }
  .stats { padding-bottom: 100px; }
  .stats__grid { gap: 44px; }
  .showcase { padding-top: 52px; }
  .plan__for { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; filter: none; }
  .showcase__frame { transform: none; }
  .statement__text .w { color: var(--ink); }
}

/* ---------- Título del hero (h1 con aspecto de línea chica) ---------- */
h1.eyebrow { font-size: 14px; line-height: inherit; }

/* ---------- Preguntas frecuentes ---------- */
.faq { margin-top: 64px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 20px 4px;
  font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.8px 12px no-repeat,
    rgba(27, 22, 38, .05);
  color: var(--ink-2);
  transition: transform .45s var(--spring), background-color .3s, color .3s;
}
.faq__item summary:hover { color: var(--violet); }
.faq__item summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 12px; }
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--violet); }
.faq__a { padding: 0 52px 26px 4px; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.faq__a a { color: var(--violet); font-weight: 500; }
.faq__a a:hover { text-decoration: underline; }
.faq__item[open] .faq__a { animation: faq-in .45s var(--spring); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 640px) {
  .faq { margin-top: 44px; }
  .faq__item summary { font-size: 17px; padding: 18px 0; }
  .faq__a { padding: 0 0 22px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__a { animation: none; }
  .faq__item summary::after { transition: none; }
}
