/* Juaneri · página principal (las páginas internas siguen usando styles.css) */
:root {
  --night: #12182e;
  --night-2: #1b2340;
  --night-3: #2b3558;
  --coral: #e2553c;
  --mango: #f5b730;
  --teal: #0f7a6b;
  --green: #1f7a5a;
  --violet: #8b6cf0;
  --sky: #5b9bff;
  --ground: #f4f5f9;
  --card: #ffffff;
  --ink: #141a30;
  --muted: #5a6178;
  --soft: #aeb6cf;
  --line: rgba(20, 26, 48, .09);
  --r: 28px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; line-height: 1.02; margin: 0; letter-spacing: -0.03em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: 8px; }

/* ---------- Navegación flotante ---------- */
.bar {
  position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none;
}
.bar .in {
  pointer-events: auto;
  max-width: 980px; margin: 0 auto; width: calc(100% - 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(18, 24, 46, .62);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.bar.solid .in { background: rgba(18, 24, 46, .9); box-shadow: 0 12px 40px rgba(10, 14, 30, .25); }
.logo { font-family: "Nunito", "DM Sans", sans-serif; font-weight: 900; font-size: 25px; letter-spacing: -0.3px; text-decoration: none; }
.logo .a { color: var(--sky); }
.logo .b { color: #c27ad6; }
.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a { color: #d4d9ea; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.bar nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.bar nav a.cta { background: #fff; color: var(--night); font-weight: 700; }
.bar nav a.cta:hover { background: var(--mango); }
@media (max-width: 620px) { .bar nav a:not(.cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: #fff;
  padding: 150px 0 0;
  border-radius: 0 0 44px 44px;
}
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.glow span:nth-child(1) { width: 520px; height: 520px; background: var(--coral); left: -140px; top: 40px; }
.glow span:nth-child(2) { width: 460px; height: 460px; background: var(--violet); right: -120px; top: -60px; animation-delay: -6s; opacity: .45; }
.glow span:nth-child(3) { width: 420px; height: 420px; background: var(--green); right: 18%; bottom: -220px; animation-delay: -12s; opacity: .5; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.grain {
  position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero .grid { display: grid; gap: 40px; align-items: end; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #dfe3f1;
}
.pill b { background: var(--mango); color: var(--night); border-radius: 999px; padding: 2px 9px; font-size: 12px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(46px, 8.4vw, 104px); font-weight: 800; margin: 22px 0 22px; max-width: 11ch; }
.rotor { display: inline-grid; vertical-align: bottom; }
.rotor > span {
  grid-area: 1 / 1; background: linear-gradient(90deg, var(--mango), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(.4em); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.rotor > span.on { opacity: 1; transform: none; }
.rotor > span:nth-child(2) { background-image: linear-gradient(90deg, #7fe0b8, var(--green)); }
.rotor > span:nth-child(3) { background-image: linear-gradient(90deg, var(--sky), var(--violet)); }
.hero .lead { color: #c3c9de; font-size: clamp(18px, 2vw, 21px); max-width: 44ch; margin: 0 0 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .25s var(--ease), background .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--coral); color: #fff; box-shadow: 0 10px 30px rgba(226, 85, 60, .35); }
.btn.light { background: #fff; color: var(--night); }
.btn.ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .22); }
.btn.dark { background: var(--night); color: #fff; }
.btn.line { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 36px 0 0; padding: 0; list-style: none; color: #aeb6cf; font-size: 14px; }
.facts strong { display: block; color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-size: 28px; letter-spacing: -0.02em; }

/* Teléfonos del hero */
.stage { position: relative; height: 520px; }
.phone {
  position: absolute; width: 230px; border-radius: 38px; padding: 8px; background: #0b0f1f;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }
.stage .p1 { left: 4%; bottom: -70px; transform: rotate(-7deg); z-index: 2; }
.stage .p2 { right: 4%; bottom: -10px; transform: rotate(6deg); }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  animation: bob 5s ease-in-out infinite;
}
.chip img { width: 32px; height: 32px; border-radius: 9px; }
.chip small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.chip.c1 { left: -2%; top: 90px; }
.chip.c2 { right: -2%; top: 30px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (min-width: 960px) {
  .hero .grid { grid-template-columns: 1.05fr .95fr; }
  .stage { height: 600px; }
  .phone { width: 260px; }
}
@media (max-width: 959px) {
  .stage { height: 440px; max-width: 480px; margin: 0 auto; width: 100%; }
  .phone { width: 200px; }
  .chip.c1 { left: 0; } .chip.c2 { right: 0; }
}

/* ---------- Cinta ---------- */
.ticker { overflow: hidden; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ticker .track { display: flex; width: max-content; gap: 44px; animation: slide 36s linear infinite; }
.ticker span { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.ticker span::after { content: "✦"; margin-left: 44px; color: var(--coral); font-size: .7em; vertical-align: middle; }
.ticker span:nth-child(3n+2)::after { color: var(--green); }
.ticker span:nth-child(3n)::after { color: var(--violet); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
section { padding: 100px 0; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.head { display: grid; gap: 18px; margin-bottom: 44px; }
.head h2 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; max-width: 14ch; }
.head p { color: var(--muted); margin: 0; max-width: 52ch; font-size: 18px; }
@media (min-width: 960px) { .head { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; text-decoration: none; color: inherit;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
a.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(20, 26, 48, .12); }
.tile h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; }
.tile p { margin: 0; color: var(--muted); max-width: 40ch; }
.tile .icon { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.tile .go { margin-top: auto; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.tag.live { background: #ddf1ee; color: var(--teal); }
.tag.green { background: #dcefe5; color: var(--green); }
.tag.dim { background: rgba(255, 255, 255, .14); color: #fff; }

.t-split { background: var(--night-2); color: #fff; border: 0; }
.t-split p { color: #c3c9de; }
.t-split .shots { display: flex; gap: 12px; margin-top: 18px; justify-content: center; }
.t-split .shots img { width: 31%; max-width: 170px; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transition: transform .5s var(--ease); }
.t-split .shots img:nth-child(2) { transform: translateY(-16px); }
.t-split:hover .shots img:nth-child(1) { transform: translateY(-6px) rotate(-2deg); }
.t-split:hover .shots img:nth-child(3) { transform: translateY(-6px) rotate(2deg); }
.t-split .go { color: var(--mango); }

.t-myluka { background: linear-gradient(160deg, #e6f4ec, #f7fbf8 60%); }
.t-myluka .go { color: var(--green); }
.t-myluka .peek { margin: 10px -28px -28px; display: flex; justify-content: center; }
.t-myluka .peek img { width: 62%; max-width: 250px; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(31, 122, 90, .18); transition: transform .5s var(--ease); }
.t-myluka:hover .peek img { transform: translateY(-8px); }

.t-gym { background: linear-gradient(160deg, #eef0ff, #fbfbff 70%); }
.t-gym .go { color: #5148c9; }

.t-stat { justify-content: space-between; }
.t-stat .big { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(54px, 6vw, 80px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.t-stat.coral { background: var(--coral); color: #fff; border: 0; }
.t-stat.coral p { color: #ffe1d9; }
.t-stat.mango { background: var(--mango); border: 0; }
.t-stat.mango p { color: #5e4300; }
.langs { display: flex; gap: 8px; flex-wrap: wrap; }
.langs span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .25); font-weight: 700; font-size: 14px; }

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-split { grid-column: span 2; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); }
  .t-split { grid-column: span 2; grid-row: span 2; }
  .t-myluka { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Detalle de cada app ---------- */
.feature { padding: 40px 0 100px; }
.feature .card {
  border-radius: 40px; overflow: hidden; display: grid; gap: 0;
  background: var(--card); border: 1px solid var(--line);
}
.feature .text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.feature h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; }
.feature .text > p { color: var(--muted); margin: 0; font-size: 18px; max-width: 46ch; }
.points { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.points li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; background: var(--dot, var(--coral)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.feature .gallery { position: relative; display: flex; gap: 16px; align-items: center; justify-content: center; padding: 48px 24px; min-height: 420px; }
.feature .gallery img { width: 30%; max-width: 210px; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.feature .gallery img:nth-child(2) { transform: translateY(-22px) scale(1.06); z-index: 1; }
.f-split .gallery { background: radial-gradient(120% 90% at 50% 0%, var(--night-3), var(--night)); }
.f-myluka { --dot: var(--green); }
.f-myluka .gallery { background: radial-gradient(120% 90% at 50% 0%, #2f9a73, #0f4a37); }
.f-myluka h2 .acc { color: var(--green); }
.f-split h2 .acc { color: var(--coral); }
.mini { font-size: 14px; color: var(--muted); margin: 0; }
@media (min-width: 960px) {
  .feature .card { grid-template-columns: 1fr 1fr; }
  .feature.flip .gallery { order: -1; }
}

/* ---------- GymTrack ---------- */
.gym { display: grid; gap: 24px; align-items: center; border-radius: 40px; padding: clamp(28px, 4vw, 48px); background: linear-gradient(135deg, #2a2577, #4b3fd1); color: #fff; }
.gym h2 { font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; }
.gym p { color: #dcd9ff; margin: 0; }
.gym img { border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
@media (min-width: 960px) { .gym { grid-template-columns: .9fr 1.1fr; } }

/* ---------- Nosotros ---------- */
.about .statement { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: clamp(30px, 4.2vw, 54px); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 56px; max-width: 22ch; }
.about .statement em { font-style: normal; color: var(--coral); }
.values { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { border-top: 2px solid var(--ink); padding-top: 18px; }
.value .n { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; color: var(--coral); font-size: 15px; }
.value h3 { font-size: 26px; margin: 8px 0; }
.value p { margin: 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 44px; padding: clamp(36px, 6vw, 80px);
  background: var(--night); color: #fff; text-align: center; display: grid; justify-items: center; gap: 18px;
}
.cta h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; max-width: 14ch; }
.cta p { color: #c3c9de; margin: 0 0 8px; max-width: 46ch; font-size: 18px; }
.cta .glow span { opacity: .4; }

/* ---------- Pie ---------- */
footer { padding: 60px 0 36px; }
footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-bottom: 40px; border-bottom: 1px solid var(--line); }
footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--coral); }
.wordmark { font-family: "Nunito", sans-serif; font-weight: 900; font-size: clamp(80px, 21vw, 300px); line-height: .8; letter-spacing: -0.05em; margin: 40px 0 10px; text-align: center; }
.wordmark .a { color: var(--sky); } .wordmark .b { color: #c27ad6; }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2) { transition-delay: .08s; }
.js .bento .reveal:nth-child(3) { transition-delay: .16s; }
.js .bento .reveal:nth-child(4) { transition-delay: .24s; }
.js .bento .reveal:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Recortes de capturas: se muestra la parte de arriba de cada pantalla */
.t-split .shots img, .feature .gallery img, .t-myluka .peek img { aspect-ratio: 9 / 16; height: auto; object-fit: cover; object-position: top; }
.t-myluka .peek img { aspect-ratio: 4 / 5; }
.t-split .shots img { max-width: 150px; }
.feature .gallery img { max-width: 230px; width: 31%; }
.feature .gallery { padding: 56px 20px; }
@media (max-width: 959px) {
  .feature .gallery { min-height: 0; padding: 36px 16px; }
  .feature .gallery img { width: 44%; }
  .feature .gallery img:nth-child(3) { display: none; }
  .feature .gallery img:nth-child(2) { transform: translateY(-14px); }
}
