/* Jarlon — studio de apps móviles. Monocromo sobre negro, profesional. */

:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-2: #0c0c0e;
  --surface: #111113;
  --surface-2: #17171a;
  --line: #222226;
  --line-soft: #1a1a1d;
  --ink: #f4f4f6;
  --muted: #a2a2aa;
  --dim: #6b6b73;
  --accent: #2ec4b6;          /* usado con cuentagotas (solo cosas de Respira) */

  --font: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1120px;
  --z-nav: 20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; max-width: 60ch; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 44px); }
.mono { font-family: var(--mono); letter-spacing: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }
.nav-links a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  color: var(--ink) !important; font-size: 0.9rem; transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: var(--surface-2); border-color: #33333a; }
@media (max-width: 620px) { .nav-links .hide-sm { display: none; } }

/* ---------- Section scaffolding ---------- */
.sec { padding-block: clamp(70px, 11vh, 130px); }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: clamp(32px, 6vh, 60px);
}
.sec-head .label { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.sec-head .idx { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); }

.eyebrow { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-top: clamp(40px, 7vh, 76px); }
.constellation {
  position: relative; height: clamp(230px, 34vh, 340px); margin-bottom: clamp(18px, 4vh, 40px);
}
.tile {
  position: absolute; border-radius: 20%;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: float var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
/* Icono de tienda: Google Play (triángulo) sobre tile blanco */
.tile.store-play { background: #ffffff; }
.tile.store-play img { width: 46%; height: 46%; object-fit: contain; }
/* Tuile « Your app? » — placeholder de próxima app, con estilo */
.tile.next {
  background: radial-gradient(120% 120% at 50% 15%, rgba(255,255,255,0.07), var(--bg-2) 70%);
  border: 1.5px dashed #3a3a44; box-shadow: none;
  grid-auto-flow: row; place-content: center; gap: 7px; transition: border-color 0.3s, transform 0.3s;
}
.tile.next:hover { border-color: #55555f; transform: translateY(-3px); }
.tile.next .plus {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #d9d9de; font-size: 1.25rem; line-height: 1; font-weight: 300;
  background: rgba(255,255,255,0.06); box-shadow: 0 0 22px rgba(255,255,255,0.10);
  animation: nextpulse 3.4s ease-in-out infinite;
}
@keyframes nextpulse { 0%,100% { box-shadow: 0 0 16px rgba(255,255,255,0.08); } 50% { box-shadow: 0 0 30px rgba(255,255,255,0.18); } }
@media (prefers-reduced-motion: reduce) { .tile.next .plus { animation: none; } }
.tile.next .t { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.02em; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }

.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  font-weight: 600; max-width: 16ch; letter-spacing: -0.045em;
}
.hero h1 .dim { color: var(--dim); }
.hero .lede { margin-top: 26px; font-size: clamp(1.12rem, 1.7vw, 1.35rem); color: var(--muted); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--bg); font-weight: 550; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }

.reveal { animation: rise 0.85s cubic-bezier(0.16,1,0.3,1) both; }
.reveal.d1 { animation-delay: 0.06s; } .reveal.d2 { animation-delay: 0.12s; } .reveal.d3 { animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cap { background: var(--bg); padding: clamp(24px, 3vw, 34px); }
.cap .n { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); }
.cap h3 { margin-top: 14px; font-size: 1.35rem; font-weight: 550; letter-spacing: -0.02em; }
.cap p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 780px) { .caps { grid-template-columns: 1fr; } }

/* ---------- Work / feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }
.app-id { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.app-id img { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line); }
.app-id .name { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.app-id .tag { color: var(--muted); font-size: 0.92rem; }
.feature h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600; }
.feature .sub { color: var(--muted); margin-top: 16px; }
.meta-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 11px; }
.meta-list li { display: flex; gap: 11px; align-items: center; color: var(--ink); font-size: 0.98rem; }
.meta-list .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.feature-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tag-soon { align-self: center; font-family: var(--mono); font-size: 0.8rem; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }

.shots { position: relative; min-height: 440px; }
.shots img {
  position: absolute; width: min(56%, 246px); border-radius: 26px;
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}
.shots .a { left: 2%; top: 0; rotate: -5deg; }
.shots .b { right: 2%; top: 70px; rotate: 4deg; z-index: 2; }

/* ---------- Approach (unequal rows) ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 90px minmax(150px, 240px) 1fr; gap: clamp(16px, 3vw, 48px); padding-block: 28px; align-items: start; }
.row + .row { border-top: 1px solid var(--line); }
.row .k { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); padding-top: 5px; }
.row h3 { font-size: 1.2rem; font-weight: 550; letter-spacing: -0.02em; }
.row p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 680px) { .row { grid-template-columns: 1fr; gap: 8px; } .row .k { display: none; } }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; padding-block: clamp(90px, 15vh, 170px); position: relative; overflow: clip; }
.closing::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 40%, rgba(255,255,255,0.05), transparent 70%);
  pointer-events: none;
}
.closing h2 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 600; letter-spacing: -0.04em; position: relative; }
.closing h2 .dim { color: var(--dim); }
.closing p { color: var(--muted); margin: 20px auto 0; font-size: 1.1rem; }
.closing .btn { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px 44px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px 30px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer .brand { margin-bottom: 16px; }
.footer-blurb { color: var(--muted); font-size: 0.94rem; max-width: 34ch; }
.footer h4 { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; color: var(--dim); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.footer nav a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.footer-base p { color: var(--dim); font-size: 0.86rem; }

/* ---------- Respira page specifics ---------- */
.hero-app { text-align: center; padding-block: clamp(56px, 9vh, 104px) clamp(30px, 5vh, 56px); position: relative; overflow: clip; }
.hero-app .halo { position: absolute; top: -120px; left: 50%; translate: -50% 0; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46,196,182,0.18), transparent 70%); pointer-events: none; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.14); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-app .halo { animation: none; } }
.hero-app .mascot { width: clamp(140px, 22vw, 196px); margin-inline: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.5)); position: relative; }
.hero-app h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); margin-top: 22px; }
.hero-app .lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 50ch; margin: 18px auto 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 0.88rem; color: var(--muted); }
.chip .accent { color: var(--accent); }

/* Marquee de capturas: desfile continuo, pausa al pasar el cursor */
.marquee { overflow: hidden; padding-block: 12px 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: scroll-x 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  width: 248px; flex: none; border-radius: 26px;
  border: 1px solid var(--line); box-shadow: 0 22px 50px rgba(0,0,0,0.55);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.marquee-track img:hover { transform: translateY(-8px) scale(1.02); }
@keyframes scroll-x { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

.help { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.help p { color: var(--muted); margin: 0; }
.help strong { color: var(--ink); font-size: 1.15rem; display: block; margin-bottom: 4px; font-weight: 600; }
