/* =========================================================================
   Summr Design — landing pública.

   Paleta oceánica de la marca llevada a su versión luminosa: base casi negra
   con matiz cian y acentos saturados (aqua → cian → marea) que son lo único
   brillante de la página. El mark del producto es una masa oscura: sobre
   fondo oscuro va la versión reversa y sobre papel la positiva.

   El movimiento es funcional: entradas al hacer scroll, respuesta al hover y
   una aurora lenta de fondo. Todo con transform/opacity (GPU) y todo se apaga
   con `prefers-reduced-motion`.
   ========================================================================= */

:root {
  /* Profundidad */
  --abismo: #03141B;
  --hondo: #062430;
  --marina: #0C4459;
  /* Acentos luminosos */
  --aqua: #5BE9DE;
  --cian: #22B8E0;
  --marea: #0A84E8;
  --oceano: #0E6F8A;
  --grad: linear-gradient(118deg, var(--aqua) 0%, var(--cian) 46%, var(--marea) 100%);
  /* Papel */
  --papel: #FCFAF6;
  --hueso: #F3F0E8;
  --filete: #E1DBCC;
  /* Tinta */
  --tinta: #072530;
  --tinta-suave: #5C6B70;
  --tinta-tenue: #8A9296;
  /* Sobre oscuro */
  --claro: #EDF8FA;
  --claro-medio: #9FC6D2;
  --claro-tenue: #628C9B;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SF Mono", monospace;

  --r: 16px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .68, .28, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.022em; margin: 0; }
h1 i, h2 i, h3 i { font-style: italic; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(1160px, 92vw); margin-inline: auto; }
.wrap--narrow { width: min(760px, 92vw); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--hondo); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ==========================================================  entradas  === */
/* Solo con JS activo: sin él todo queda visible desde el principio. */
.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(22px);
}
.js [data-reveal].is-in,
.js [data-reveal-group].is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.js [data-reveal-group].is-in > *:nth-child(2) { transition-delay: .07s; }
.js [data-reveal-group].is-in > *:nth-child(3) { transition-delay: .14s; }
.js [data-reveal-group].is-in > *:nth-child(4) { transition-delay: .21s; }
.js [data-reveal-group].is-in > *:nth-child(5) { transition-delay: .28s; }
.js [data-reveal-group].is-in > *:nth-child(6) { transition-delay: .35s; }

/* ==============================================================  nav  === */
/* Fija y **transparente** sobre el hero. Antes era `sticky` dentro del flujo:
   su fondo translúcido componía sobre el blanco del body y se veía como una
   franja gris sucia por encima del hero. Ahora flota sobre él y solo se opaca
   al despegarse del tope. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.is-stuck {
  background: rgba(4, 22, 29, .72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(91, 233, 222, .18);
}
.nav__in { display: flex; align-items: center; gap: 26px; height: var(--nav-h); }
.nav__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--claro); }
.nav__brand img { width: 40px; height: auto; transition: transform .4s var(--ease); }
.nav__brand:hover img { transform: translateY(-2px) rotate(-3deg); }
.nav__brand span { font-family: var(--serif); font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.nav__brand i { color: var(--aqua); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  position: relative; color: var(--claro-medio); text-decoration: none; font-size: 14.5px;
  padding: 6px 0; transition: color .22s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--claro); }
/* Enlace de vuelta al sitio corporativo: se lee como raíz, no como sección. */
.nav__up { color: var(--claro-tenue) !important; font-family: var(--mono); font-size: 12px !important; letter-spacing: .08em; }
.nav__up::after { display: none; }
.nav__links a:hover::after { transform: scaleX(1); }

/* ============================================================  botón  === */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--grad); background-size: 180% 100%; background-position: 0% 50%;
  color: #04222B; border: 0; border-radius: 12px;
  padding: 12px 22px; font: 650 15px/1 var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-position .5s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 6px 22px -8px rgba(34, 184, 224, .7);
}
.btn:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(34, 184, 224, .9); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { padding: 10px 17px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16.5px; border-radius: 14px; }
.btn--ghost {
  background: rgba(237, 248, 250, .04); color: var(--claro); box-shadow: none;
  border: 1px solid rgba(159, 198, 210, .3);
}
.btn--ghost:hover {
  background: rgba(237, 248, 250, .09); border-color: var(--aqua); box-shadow: none;
  transform: translateY(-2px);
}

/* =============================================================  hero  === */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--abismo);
  color: var(--claro);
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 108px)) 0 0;
}
/* Aurora: dos manchas que derivan muy lento. Es el único movimiento continuo
   de la página y va por debajo de todo (z-index negativo). */
.hero::before, .hero::after, .cta::before {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none;
}
.hero::before {
  width: 60vw; height: 40vw; top: -14vw; left: 8vw;
  background: radial-gradient(circle, rgba(34, 184, 224, .75), transparent 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.hero::after {
  width: 52vw; height: 36vw; top: 6vw; right: 2vw;
  background: radial-gradient(circle, rgba(91, 233, 222, .5), transparent 68%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to { transform: translate3d(-7vw, 5vw, 0) scale(.94); }
}
.hero__in { position: relative; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--aqua); margin: 0 0 22px;
  padding: 7px 14px; border-radius: 99px;
  background: rgba(91, 233, 222, .09); border: 1px solid rgba(91, 233, 222, .26);
}
.eyebrow--dark {
  color: var(--oceano); background: rgba(14, 111, 138, .07); border-color: rgba(14, 111, 138, .2);
}

.hero h1 {
  font-size: clamp(44px, 7.6vw, 88px); line-height: 1.02; margin: 0 auto 26px; max-width: 15ch;
}
.hero h1 i {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  max-width: 58ch; margin: 0 auto; color: var(--claro-medio); font-size: clamp(16px, 1.7vw, 19.5px);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 36px 0 24px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--claro-tenue);
}
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--aqua);
  box-shadow: 0 0 10px var(--aqua);
}

/* ====================================================  marco / demo  === */
.frame {
  position: relative; margin: clamp(46px, 6vw, 78px) 0 0;
  border-radius: 18px 18px 0 0; overflow: hidden;
  background: var(--hueso);
  border: 1px solid rgba(159, 198, 210, .22); border-bottom: 0;
  box-shadow: 0 -20px 60px -25px rgba(34, 184, 224, .55), 0 40px 90px -30px rgba(3, 20, 27, .95);
  animation: float 11s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.frame:has(.is-live) { animation: none; }
.frame__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: #0A3140; border-bottom: 1px solid rgba(159, 198, 210, .16);
}
.frame__dots { display: flex; gap: 6px; }
.frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(159, 198, 210, .28); }
.frame__url { flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--claro-tenue); }
.frame__tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #04222B; background: var(--grad); padding: 5px 10px; border-radius: 99px; font-weight: 700;
}
.frame__stage { position: relative; display: block; cursor: pointer; background: var(--hueso); }
.frame__stage img { width: 100%; display: block; transition: transform .6s var(--ease), filter .4s; }
.frame__stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 20, 27, .18), rgba(3, 20, 27, .52));
  transition: opacity .3s var(--ease);
}
.frame__stage:hover img { transform: scale(1.02); }
.frame__stage:hover::after { opacity: .85; }
.frame__play {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center;
}
.frame__play svg {
  background: var(--grad); color: #04222B;
  width: 66px; height: 66px; padding: 19px; border-radius: 50%; margin-bottom: 14px;
  transition: transform .25s var(--ease);
  /* El anillo que late va como box-shadow del propio botón: un ::before habría
     necesitado un envoltorio extra y quedaba anclado al borde del escenario,
     no al icono. */
  animation: pulse-ring 2.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 14px 40px -10px rgba(34, 184, 224, .95), 0 0 0 0 rgba(91, 233, 222, .5); }
  70% { box-shadow: 0 14px 40px -10px rgba(34, 184, 224, .95), 0 0 0 24px rgba(91, 233, 222, 0); }
  100% { box-shadow: 0 14px 40px -10px rgba(34, 184, 224, .95), 0 0 0 0 rgba(91, 233, 222, 0); }
}
.frame__stage:hover .frame__play svg { transform: scale(1.08); }
.frame__play b { font-size: 20px; font-weight: 650; }
.frame__play small { font-size: 13px; color: rgba(255, 255, 255, .8); }
.frame__stage:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; }
/* Ya cargada, la app manda sobre la proporción: con el 2.27:1 de la captura la
   tarjeta de acceso quedaba cortada por abajo. 16:10 con un mínimo generoso le
   deja sitio para trabajar de verdad. */
.frame__stage.is-live { cursor: default; aspect-ratio: 16 / 10; min-height: 620px; }
.frame__stage.is-live img, .frame__stage.is-live .frame__play, .frame__stage.is-live::after { display: none; }
.frame__stage iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--papel); }

/* acciones de la barra: maximizar y abrir aparte -------------------------- */
.frame__acciones { display: flex; gap: 6px; flex-shrink: 0; }
.frame__accion {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 11.5px; letter-spacing: .02em;
  color: var(--claro-medio); text-decoration: none;
  background: rgba(159, 198, 210, .1);
  border: 1px solid rgba(159, 198, 210, .18);
  border-radius: 99px; padding: 5px 11px; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.frame__accion:hover { color: var(--aqua); border-color: var(--aqua); background: rgba(91, 233, 222, .1); }
.frame__accion:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }

/* En pantallas chicas la barra ya viene apretada: quedan los iconos solos. */
@media (max-width: 700px) {
  .frame__url { display: none; }
  .frame__accion span:not(:first-child) { display: none; }
}

/* pantalla completa ------------------------------------------------------- *
   La figura pasa a ser toda la pantalla, así que hay que anular lo que la hacía
   una tarjeta: el flotar, los bordes redondeados, la sombra y —sobre todo— el
   `aspect-ratio` con `min-height` del escenario, que en pantalla completa
   dejaría al editor recortado o con una franja negra abajo. */
.frame:fullscreen {
  margin: 0; border: 0; border-radius: 0; box-shadow: none; animation: none;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; background: var(--abismo);
}
.frame:fullscreen .frame__bar { flex: 0 0 auto; }
.frame:fullscreen .frame__stage {
  flex: 1 1 auto; aspect-ratio: auto; min-height: 0; height: auto;
}
.frame__note {
  margin: 0; padding: 16px 4px 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--claro-tenue); text-align: center;
}

/* =============================================================  tira  === */
.strip {
  background: var(--abismo); color: var(--claro-tenue);
  padding: 22px 0 26px; border-top: 1px solid rgba(159, 198, 210, .1);
}
.strip__in {
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
}
.strip__in span { transition: color .25s var(--ease); }
.strip__in span:hover { color: var(--aqua); }

/* ========================================================  secciones  === */
.section { padding: clamp(70px, 9vw, 116px) 0; }
.section--paper { background: var(--hueso); border-block: 1px solid var(--filete); }
.section__head { max-width: 46ch; margin: 0 0 clamp(34px, 4vw, 54px); }
.section__head h2 { font-size: clamp(31px, 4.1vw, 48px); line-height: 1.1; }
.section__head h2 i { color: var(--oceano); }
.section__lead { margin-top: 15px; color: var(--tinta-suave); }

/* tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  background: var(--papel); border: 1px solid var(--filete); border-radius: var(--r);
  padding: 28px 24px 30px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(14, 111, 138, .4);
  box-shadow: 0 22px 40px -28px rgba(7, 37, 48, .6);
}
.card:hover::before { transform: scaleX(1); }
.card__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 17px;
  background: #E4F2F6; color: var(--oceano);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.card:hover .card__ico { background: var(--grad); color: #04222B; transform: rotate(-6deg) scale(1.06); }
.card h3 { font-size: 21.5px; margin-bottom: 9px; }
.card p { color: var(--tinta-suave); font-size: 15px; }

/* capacidades */
.feats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px;
  background: var(--filete); border: 1px solid var(--filete); border-radius: var(--r); overflow: hidden;
}
.feat { background: var(--papel); padding: 30px 26px 32px; transition: background .3s var(--ease); }
.feat:hover { background: #fff; }
.feat h3 { font-size: 19.5px; margin-bottom: 9px; color: var(--tinta); }
.feat h3::before {
  content: ""; display: block; width: 26px; height: 2.5px; background: var(--grad); margin-bottom: 15px;
  border-radius: 2px; transition: width .35s var(--ease);
}
.feat:hover h3::before { width: 46px; }
.feat p { color: var(--tinta-suave); font-size: 15px; }

/* pasos */
.steps {
  list-style: none; margin: 0 0 clamp(42px, 5vw, 66px); padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px;
}
.steps li { border-top: 2px solid var(--tinta); padding-top: 19px; }
.steps__n { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--oceano); }
.steps h3 { font-size: 22.5px; margin: 10px 0 9px; }
.steps p { color: var(--tinta-suave); font-size: 15px; }

/* capturas */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.shots figure { margin: 0; }
.shots img {
  border: 1px solid var(--filete); border-radius: var(--r);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.shots figure:hover img { transform: translateY(-6px); box-shadow: 0 26px 46px -30px rgba(7, 37, 48, .7); }
.shots figcaption {
  margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tinta-tenue);
}

/* faq */
.faq { border-top: 1px solid var(--filete); }
.faq details { border-bottom: 1px solid var(--filete); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 20.5px; color: var(--tinta);
  transition: color .25s var(--ease);
}
.faq summary:hover { color: var(--oceano); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  margin-top: -7px;
  background:
    linear-gradient(var(--oceano), var(--oceano)) center / 100% 2px no-repeat,
    linear-gradient(var(--oceano), var(--oceano)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq p { padding: 0 0 24px; color: var(--tinta-suave); max-width: 66ch; }
.faq details[open] p { animation: fade-in .4s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==============================================================  cta  === */
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: var(--claro);
  background: var(--abismo); padding: clamp(70px, 9vw, 120px) 0;
}
.cta::before {
  width: 70vw; height: 40vw; bottom: -22vw; left: 15vw;
  background: radial-gradient(circle, rgba(34, 184, 224, .6), transparent 66%);
  animation: drift-b 30s ease-in-out infinite alternate;
}
.cta__in { position: relative; }
.cta__logo { width: 96px; margin: 0 auto 24px; }
.cta h2 { font-size: clamp(31px, 4.5vw, 52px); line-height: 1.08; margin-bottom: 15px; }
.cta p { max-width: 52ch; margin: 0 auto; color: var(--claro-medio); }
.cta .hero__cta { margin-bottom: 0; }

/* ==============================================================  pie  === */
.foot {
  background: #020F14; color: var(--claro-tenue); padding: 34px 0 42px;
  border-top: 1px solid rgba(159, 198, 210, .1);
}
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot__brand { font-family: var(--serif); font-size: 18px; color: var(--claro); margin: 0; }
.foot__brand i { color: var(--aqua); }
.foot__legal { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; }
.foot__links { display: flex; gap: 22px; margin-left: auto; }
.foot__links a { text-decoration: none; font-size: 14px; transition: color .22s var(--ease); }
.foot__links a:hover { color: var(--aqua); }

/* =======================================================  responsive  === */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .frame__play b { font-size: 16px; }
  .frame__play small { display: none; }
  .foot__links { margin-left: 0; }
  .hero::before, .hero::after { filter: blur(60px); }
}

/* Con «reducir movimiento» activado se corta lo que **se desplaza**: la aurora,
   la flotación del marco, el latido del play y los desplazamientos de hover y
   de entrada. Los fundidos y los cambios de color se quedan: no son movimiento
   y sin ellos la página se siente rota, no accesible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero::before, .hero::after, .cta::before, .frame, .frame__play svg { animation: none; }

  .js [data-reveal], .js [data-reveal-group] > * { transform: none; }
  .js [data-reveal].is-in, .js [data-reveal-group].is-in > * { transition: opacity .5s var(--ease); }

  .btn:hover, .btn--ghost:hover, .card:hover, .shots figure:hover img,
  .nav__brand:hover img, .frame__stage:hover img, .card:hover .card__ico { transform: none; }
}
