/* =================================================================
   STIKTL — Landing compacta · tema Liquid Glass CYAN + NARANJA
   -----------------------------------------------------------------
   Optimizada: una sola fuente, blur moderado, sin mask-composite,
   content-visibility en secciones, animaciones solo con transform.
   ================================================================= */
:root {
  /* Acentos: cyan (UI de la app) + naranja (marca / zorro) */
  --cyan:        #22D3EE;
  --cyan-soft:   #7FE8F2;
  --cyan-deep:   #0EA5E9;
  --orange:      #FF7A18;
  --orange-soft: #FF9D4D;
  --orange-deep: #E85D04;
  --lila:        #8B5CF6;

  --accent: var(--cyan);

  /* Fondo oscuro (DarkBase de la app) */
  --bg:    #06090F;
  --bg-2:  #0D1220;
  --bg-3:  #111728;

  /* Texto sobre cristal oscuro */
  --text:       #E6EAF5;
  --text-dim:   #B8C2D8;
  --text-faint: #8A95B0;

  /* Cristal esmerilado oscuro (slate translúcido) */
  --glass-bg:      rgba(42, 53, 80, 0.55);
  --glass-bg-2:    rgba(42, 53, 80, 0.80);
  --glass-bg-soft: rgba(42, 53, 80, 0.34);
  --glass-border:  rgba(204, 208, 224, 0.18);
  --glass-blur:    14px;

  --shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.85);
  --radius:    20px;
  --radius-sm: 14px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --cyan-tint:   rgba(34, 211, 238, 0.16);
  --orange-tint: rgba(255, 122, 24, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
svg { display: block; }
img { max-width: 100%; height: auto; }
strong { color: var(--text); font-weight: 600; }

/* ===================== FONDO ===================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(100% 80% at 85% -10%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(90% 70% at 0% 5%, rgba(255, 122, 24, 0.12), transparent 52%),
    radial-gradient(120% 120% at 50% 120%, rgba(139, 92, 246, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 45%, var(--bg-3));
}
.bg__blobs { position: absolute; inset: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.34;
  animation: float-blob var(--dur, 24s) var(--ease) infinite alternate;
  /* will-change: transform removido — causa blobs negros en Chrome/GPU compositing */
}
@keyframes float-blob {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(var(--dx, 40px), var(--dy, -50px)) scale(var(--sc, 1.2)); }
}

/* ===================== GLASS ===================== */
/* Cristal sin mask-composite: fill translúcido + inset highlight +
   glow cyan en una sola box-shadow. Mucho más barato de pintar. */
.glass {
  background: linear-gradient(180deg, var(--glass-bg-2), var(--glass-bg) 55%, var(--glass-bg-soft));
  backdrop-filter: blur(var(--glass-blur)) saturate(130%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow),
              inset 0 1px 0 rgba(204, 208, 224, 0.22),
              inset 0 -10px 26px -16px rgba(34, 211, 238, 0.35);
}

/* ===================== BOTONES ===================== */
.btn {
  --pad-y: 0.7em; --pad-x: 1.25em;
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
}
.btn__icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn--sm { font-size: 0.88rem; --pad-y: 0.5em; --pad-x: 1em; }
.btn--lg { font-size: 1.02rem; --pad-y: 0.8em; --pad-x: 1.5em; }
.btn--xl { font-size: 1.08rem; --pad-y: 0.9em; --pad-x: 1.7em; }

/* Primario = cyan → naranja (la mezcla de marca) */
.btn--primary {
  background: linear-gradient(110deg, var(--cyan-soft), var(--cyan) 40%, var(--orange) 100%);
  color: #04141a;
  box-shadow: 0 10px 26px -10px var(--cyan), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--cyan), 0 0 0 4px var(--cyan-tint); }
.btn--primary:active { transform: translateY(0); }

/* Café / apoyo = naranja */
.btn--coffee {
  background: linear-gradient(135deg, var(--orange-soft), var(--orange) 55%, var(--orange-deep));
  color: #1a0d04;
  box-shadow: 0 10px 26px -10px var(--orange), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--coffee:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--orange), 0 0 0 4px var(--orange-tint); }

/* ===================== HEADER / NAV ===================== */
.header { position: sticky; top: 0; z-index: 50; padding: 12px clamp(14px, 4vw, 28px) 0; }
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 10px 8px 12px; border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
}
.brand__mark img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.5));
}
.brand__mark--sm { width: 32px; height: 32px; }
.brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.04em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 7px 13px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--text-dim); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: var(--glass-bg-soft); }
.nav .btn--primary { margin-left: 4px; }

/* ===================== LAYOUT ===================== */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) clamp(16px, 4vw, 28px) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
.section__head { max-width: 600px; margin: 0 auto clamp(26px, 4vw, 40px); text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-soft); margin-bottom: 10px;
}
.section__title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }

/* ===================== HERO ===================== */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 28px) 0;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 60px); align-items: center;
}
/* Icono GIGANTE */
.hero__icon { position: relative; display: grid; place-items: center; }
.hero__icon img {
  position: relative; z-index: 1;
  width: min(420px, 70vw); aspect-ratio: 1;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
  animation: icon-float 7s var(--ease) infinite alternate;
  /* will-change: transform removido — causa artefactos negros con drop-shadow en GPU */
}
.hero__icon-glow {
  position: absolute; z-index: 0; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,24,.45), rgba(34,211,238,.32) 55%, transparent 72%);
  filter: blur(46px);
}
@keyframes icon-float {
  0%   { transform: translateY(0) rotate(-1.5deg); }
  100% { transform: translateY(-16px) rotate(1.5deg); }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.84rem;
  color: var(--text-dim); margin-bottom: 18px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

.hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance; }
.grad {
  background: linear-gradient(105deg, var(--cyan-soft), var(--cyan) 45%, var(--orange) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__subtitle { margin-top: 18px; font-size: clamp(1rem, 1.7vw, 1.18rem); color: var(--text-dim); max-width: 30em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; font-size: 0.88rem; color: var(--text-faint); }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); display: inline-block; }
.hero__platforms { margin-top: 14px; font-size: 0.85rem; color: var(--text-faint); max-width: 34em; line-height: 1.6; }
.hero__platforms strong { color: var(--cyan-soft); }

/* Sección plataformas */
.platforms { padding: clamp(28px,5vw,48px) clamp(22px,4vw,40px); border-radius: var(--radius); }
.platforms__title { font-size: clamp(1.2rem,2.5vw,1.6rem); font-weight: 700; margin-top: 8px; margin-bottom: 20px; letter-spacing: -0.02em; }
.platforms__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 10px; }
.platforms__list li { font-size: 0.95rem; color: var(--text-dim); padding: 10px 16px; background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.15); border-radius: var(--radius-sm); }
.platforms__list li strong { color: var(--cyan-soft); }
.platforms__note { margin-top: 20px; font-size: 0.9rem; color: var(--text-faint); max-width: 52em; line-height: 1.6; }

/* ===================== FUNCIONES ===================== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  padding: 22px 20px; border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-5px); border-color: rgba(34,211,238,.4); }
.feature__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; }
.feature__icon--cyan   { background: var(--cyan-tint);   border: 1px solid rgba(34,211,238,.3); }
.feature__icon--orange { background: var(--orange-tint); border: 1px solid rgba(255,122,24,.3); }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature__icon--cyan svg   { stroke: var(--cyan-soft); }
.feature__icon--orange svg { stroke: var(--orange-soft); }
.feature h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 5px; }
.feature p { color: var(--text-dim); font-size: 0.92rem; text-wrap: pretty; }

/* ===================== PASOS ===================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(255,122,24,.4); }
.step__num {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  font-weight: 800; font-size: 1.15rem; color: #04141a;
  background: linear-gradient(135deg, var(--cyan-soft), var(--orange));
  box-shadow: 0 8px 18px -8px var(--cyan);
}
.step h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.step p { color: var(--text-dim); font-size: 0.88rem; }

/* ===================== DESCARGA ===================== */
.download {
  position: relative; overflow: hidden;
  border-radius: clamp(22px, 4vw, 32px);
  padding: clamp(30px, 5vw, 52px); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.download__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(34,211,238,.22), transparent 55%),
    radial-gradient(60% 100% at 0% 100%, rgba(255,122,24,.20), transparent 55%);
}
.download > *:not(.download__glow) { position: relative; }
.download__title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.download__title span { color: var(--cyan-soft); }
.download__text { color: var(--text-dim); font-size: 1.02rem; max-width: 32em; margin-bottom: 22px; text-wrap: pretty; }
.download__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.download__note { margin-top: 16px; font-size: 0.86rem; color: var(--text-faint); }

/* ===================== FOOTER ===================== */
.footer { padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 28px) 24px; max-width: var(--maxw); margin: 0 auto; }
.footer__inner { border-radius: var(--radius); padding: 18px clamp(20px, 4vw, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand .brand__name { font-size: 1.05rem; }
.footer__coffee { margin-left: auto; color: var(--orange-soft); font-weight: 600; font-size: 0.92rem; transition: color .2s; }
.footer__coffee:hover { color: var(--orange); }
.footer__copy { color: var(--text-faint); font-size: 0.84rem; width: 100%; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }

/* ===================== ANIMACIÓN DE ENTRADA ===================== */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-anim .reveal { transition: transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
  @starting-style { .js-anim .reveal { transform: translateY(22px); } }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .hero__icon img, .pill__dot { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================== DESCARGADOR WEB ===================== */
.dl-card { padding: clamp(24px,5vw,44px); max-width: 720px; margin: 0 auto; }
.dl-card__sub { font-size:.95rem; color:var(--text-dim); margin-bottom:1.4rem; text-align:center; }

.dl-row { display:flex; gap:10px; }
.dl-input-wrap { flex:1; position:relative; display:flex; align-items:center; }
.dl-input-icon { position:absolute; left:14px; width:18px; height:18px; stroke:var(--text-faint); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; flex-shrink:0; }
.dl-input-wrap input {
  width:100%; padding:14px 14px 14px 42px; border-radius:16px;
  border:1px solid var(--glass-border); background:var(--glass-bg-soft);
  color:var(--text); font-family:"Outfit",system-ui,sans-serif; font-size:.95rem;
  outline:none; transition:border-color .2s;
}
.dl-input-wrap input:focus { border-color:var(--cyan); }
.dl-input-wrap input::placeholder { color:var(--text-faint); }

.dl-status { font-size:.85rem; margin-top:.9rem; display:none; }
.dl-status--ok    { color:#4ade80; }
.dl-status--error { color:#f87171; }
.dl-status--warn  { color:var(--orange-soft); }
.dl-status--info  { color:var(--cyan-soft); }

.dl-result {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-top:1.2rem; padding:16px 20px; border-radius:16px;
  background:var(--glass-bg); border:1px solid var(--glass-border);
}
.dl-result__meta { flex:1; min-width:0; }
.dl-result__title { font-size:.9rem; color:var(--text-dim); margin-bottom:.5rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dl-result__progress { display:flex; align-items:center; gap:10px; margin-top:.4rem; }
.dl-progress-bar { flex:1; height:6px; border-radius:99px; background:var(--glass-border); overflow:hidden; }
.dl-progress-fill { height:100%; width:0; background:var(--cyan); border-radius:99px; transition:width .2s; }
#dlPct { font-size:.8rem; color:var(--cyan-soft); white-space:nowrap; }

.dl-external { margin-top:1.2rem; padding:16px 20px; border-radius:16px; background:var(--glass-bg); border:1px solid var(--glass-border); }
.dl-external__text { font-size:.85rem; color:var(--text-dim); line-height:1.5; text-align:center; }

.dl-platforms { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:1.4rem; padding:0; list-style:none; }
.dl-platforms li { font-size:.78rem; color:var(--text-faint); padding:4px 12px; border-radius:99px; background:var(--glass-bg-soft); border:1px solid var(--glass-border); }

/* ===================== APK PICKER ===================== */
.apk-picker {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.2rem 0 .6rem;
}
.apk-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: "Outfit", system-ui, sans-serif;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  min-width: 150px;
}
.apk-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.apk-btn__label { font-size: 1rem; font-weight: 700; }
.apk-btn__sub { font-size: .72rem; opacity: .7; }
.apk-btn--primary { background: var(--cyan); color: #06090F; }
.apk-btn--secondary { background: var(--glass-bg-2); color: var(--text); border: 1px solid var(--glass-border); }
.apk-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.apk-hint { font-size: .8rem; color: var(--text-faint); margin-top: .2rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: clamp(20px, 5vw, 40px); }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__actions, .hero__meta { justify-content: center; }
  .hero__icon img { width: min(300px, 60vw); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { gap: 12px; }
  .footer__coffee { margin-left: 0; }
}
@media (max-width: 460px) {
  .features { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .download__actions .btn { width: 100%; justify-content: center; }
}
