/* Libo — landing v6 (Figma «Web · Landing v6», frame 320:3). */

@font-face { font-family: 'Manrope'; font-weight: 300; font-display: swap; src: url('/assets/fonts/Manrope_300Light.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Manrope_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('/assets/fonts/Manrope_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('/assets/fonts/Manrope_600SemiBold.ttf') format('truetype'); }

:root {
  --club: #007D8E;
  --club-2: #CDEBEF;
  --live: #2CCAD8;
  --ink: #0B1722;
  --ink-2: #3F515C;
  --ink-3: #6C7C84;
  --ground: #F4F6F6;
  --paper: #FFFFFF;
  --rule: #D6DEE1;
  --track: #E3EAEC;
  --night-2: #B6C6CD;
  --bezel: #05090C;
  --gutter: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

.sec { padding: 130px 0; }
.sec--ground { background: var(--ground); }
.sec--paper { background: var(--paper); }
.sec--club { background: var(--club); color: #fff; }
.sec--night { background: var(--ink); color: #fff; }

.h-xl { font-size: clamp(46px, 7.2vw, 104px); font-weight: 500; line-height: .96; letter-spacing: -.05em; }
.h-l { font-size: clamp(40px, 5vw, 72px); font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.light { font-weight: 300; color: var(--club); display: block; }
.lead { font-size: 20px; line-height: 1.52; color: var(--ink-2); }
.num { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.h-item { font-size: 28px; font-weight: 500; letter-spacing: -.015em; margin: 6px 0 8px; }
.p-item { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border-radius: 28px;
  font-size: 17px; font-weight: 600; text-decoration: none;
  background: var(--club); color: #fff;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); }
.btn--sm { height: 48px; border-radius: 24px; }

/* Cabecera */
.top { display: flex; align-items: center; gap: 14px; padding-top: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { width: 40px; height: 41px; }
.wordmark { font-size: 22px; font-weight: 400; letter-spacing: .4em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { margin-left: 60px; }

/* 1 · Hero */
.hero { padding: 100px 0 150px; }
.hero .lead { font-size: 21px; line-height: 1.5; max-width: 520px; margin-top: 40px; }
.hero-cta { display: flex; align-items: center; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.sports { font-size: 14px; font-weight: 500; color: var(--ink-3); }

/* 2 · Métodos */
.methods-head { display: grid; grid-template-columns: 900px 1fr; gap: 0; align-items: start; }
.methods-head .h-xl { font-size: clamp(44px, 5.8vw, 84px); letter-spacing: -.045em; max-width: 800px; }
.methods-head p { font-size: 20px; line-height: 1.52; color: var(--club-2); margin-top: 16px; max-width: 420px; }
.trace { display: block; width: 100%; height: 194px; margin: 140px 0 90px; }
.methods { display: grid; grid-template-columns: 350px 250px 310px 1fr; }
.methods .num, .methods .p-item { color: var(--club-2); }
.methods .p-item { font-size: 15px; line-height: 1.45; }
.methods .h-item { color: #fff; }

/* 3 · En el gimnasio */
.gym .lead { max-width: 600px; margin-top: 24px; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 115px; justify-items: center; }
.phone {
  width: 100%; max-width: 336px; padding: 8px; border-radius: 51px; background: var(--bezel);
  box-shadow: 0 40px 70px rgba(5, 9, 12, .18);
}
.phone img { width: 100%; aspect-ratio: 320 / 696; object-fit: cover; object-position: top; border-radius: 46px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; max-width: 420px; }
ol.steps, ul.steps { list-style: none; margin: 30px 0 0; padding: 0; }

/* 4 · Planificación */
.plan .lead { max-width: 640px; margin-top: 50px; }
.week { position: relative; margin-top: 30px; aspect-ratio: 1320 / 560; display: grid; grid-template-columns: repeat(7, 1fr); }
.day { position: relative; border-left: 1px solid var(--rule); }
.day b {
  position: absolute; top: -20px; left: 10px;
  font-size: clamp(48px, 9.7vw, 140px); font-weight: 300; letter-spacing: -.05em; line-height: 1.36;
  color: rgba(11, 23, 34, .14);
}
.day span { position: absolute; left: 16px; bottom: 33px; font-size: 20px; font-weight: 500; }
.day--rest span { color: var(--ink-3); }
.day--match b, .day--match span { color: var(--club); }
.week svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); }
.dot--match { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--club); }

/* 5 · Se adapta */
.adapt { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 128px; }
.adapt div { border-top: 1px solid var(--rule); padding: 28px 0 70px; }
.adapt h3 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.025em; line-height: 1.2; }
.adapt p { font-size: 18px; font-weight: 500; color: var(--club); margin-top: 6px; }

/* 5b · Otras actividades */
.other-head { display: grid; grid-template-columns: 800px 1fr; align-items: start; }
.other-head .lead { margin-top: 16px; max-width: 520px; }
.other { display: grid; grid-template-columns: 520px 1fr; gap: 180px; margin-top: 168px; }
.done ul { list-style: none; margin: 21px 0 0; padding: 0; }
.done li { border-top: 1px solid var(--rule); padding: 20px 0 14px; }
.done h3 { font-size: 40px; font-weight: 300; letter-spacing: -.02em; line-height: 1.3; }
.done p { font-size: 16px; font-weight: 500; color: var(--ink-3); }
.bars { list-style: none; margin: 25px 0 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 240px 1fr 80px; align-items: center; gap: 20px; height: 62px; }
.bars span:first-child { font-size: 18px; font-weight: 500; }
.bars em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.bar { height: 4px; border-radius: 2px; background: var(--track); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--club); }
.bars .missing .bar i { background: var(--ink); }
.bars .missing em { color: var(--ink); }
.friday { border-top: 1px solid var(--ink); margin-top: 62px; padding-top: 24px; }
.friday .eyebrow { color: var(--club); }
.friday p:last-child { font-size: 34px; font-weight: 300; line-height: 1.2; letter-spacing: -.015em; margin-top: 12px; }

/* 6 · Equipo */
.team { display: grid; grid-template-columns: 700px 1fr; align-items: start; }
.team .h-l { font-size: clamp(40px, 4.45vw, 64px); margin-top: 30px; }
.team .lead { max-width: 480px; margin-top: 34px; }
.team-phones { position: relative; height: 700px; }
.team-phones .phone { position: absolute; width: 286px; border-radius: 43px; box-shadow: 0 40px 70px rgba(5, 9, 12, .25); }
.team-phones .phone img { border-radius: 39px; }
.team-phones .phone:first-child { left: 0; top: 0; transform: rotate(-3deg); }
.team-phones .phone:last-child { left: 300px; top: 70px; transform: rotate(3deg); }

/* 7 · Ciencia */
.science .h-xl { font-size: clamp(44px, 6.4vw, 92px); }
.science .light { color: var(--live); }
.science .steps { margin-top: 200px; }
.science .steps li { border-top-color: rgba(255, 255, 255, .3); padding-top: 30px; }
.science .h-item { color: #fff; margin: 0 0 12px; }
.science .p-item { font-size: 17px; line-height: 1.55; color: var(--night-2); max-width: 400px; }

/* 8 · Coach */
.coach { display: grid; grid-template-columns: 760px 1fr; }
.coach .lead { max-width: 460px; margin-top: 88px; }
.ask { display: inline-block; background: var(--ink); color: #fff; border-radius: 28px; padding: 26px 30px; font-size: 22px; font-weight: 500; margin-top: 20px; }
.answer { display: grid; grid-template-columns: 30px 1fr; gap: 20px; margin-top: 44px; }
.answer svg { width: 30px; height: 31px; margin-top: 4px; }
.answer p { font-size: 21px; line-height: 1.55; }
.answer p + p { margin-top: 33px; }

/* 9 · Cierre */
.close { padding: 150px 0 0; overflow: hidden; }
.close .h-xl { max-width: 1100px; }
.close .lead { color: var(--club-2); max-width: 560px; margin-top: 50px; }
.close .btn { margin-top: 40px; }
.close-trace { display: block; width: 100%; height: 63px; margin-top: 54px; }
.foot { display: flex; align-items: center; gap: 14px; padding: 70px 0 60px; flex-wrap: wrap; }
.foot .brand svg { width: 30px; height: 31px; }
.foot .wordmark { font-size: 18px; color: #fff; }
.foot nav { margin-left: auto; font-size: 13px; color: var(--club-2); display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* Intermedio */
@media (max-width: 1380px) {
  .methods-head, .other-head, .team, .coach { grid-template-columns: 1fr 1fr; gap: 60px; }
  .methods { grid-template-columns: repeat(4, 1fr); gap: 30px; }
  .other { grid-template-columns: 1fr 1fr; gap: 80px; }
  .bars li { grid-template-columns: 170px 1fr 80px; }
  .team-phones { height: 640px; }
  .team-phones .phone { width: 250px; }
  .team-phones .phone:last-child { left: 220px; }
}

/* Tableta */
@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .sec { padding: 96px 0; }
  .nav a:not(.btn) { display: none; }
  .nav .btn { margin-left: 0; }
  .methods-head, .other-head, .team, .coach, .other { grid-template-columns: 1fr; gap: 0; }
  .methods-head p, .other-head .lead { margin-top: 32px; }
  .trace { margin: 80px 0 60px; height: 140px; }
  .methods { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .phones, .steps { grid-template-columns: 1fr; }
  .phones { gap: 56px; margin-top: 64px; }
  .gym .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 60px; justify-content: flex-start; }
  .gym .phones .phone { flex: 0 0 min(300px, 76vw); scroll-snap-align: center; }
  .gym .steps { margin-top: 0; gap: 32px; }
  .other { margin-top: 80px; row-gap: 72px; }
  .team-phones { margin-top: 56px; height: auto; display: flex; gap: 16px; justify-content: center; }
  .team-phones .phone { position: static; width: min(260px, 44vw); transform: none !important; border-radius: 32px; padding: 6px; }
  .team-phones .phone img { border-radius: 27px; }
  .team-phones .phone:last-child { margin-top: 60px; }
  .science .steps { margin-top: 96px; gap: 40px; }
  .coach .lead { margin-top: 32px; }
  .coach > div:last-child { margin-top: 56px; }
}

/* Móvil */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .sec { padding: 80px 0; }
  .wordmark { font-size: 18px; }
  .brand svg { width: 32px; height: 33px; }
  .hero { padding: 64px 0 96px; }
  .hero .lead { font-size: 18px; margin-top: 28px; }
  .hero-cta { gap: 18px; }
  .lead { font-size: 18px; }
  .methods { grid-template-columns: 1fr; row-gap: 28px; }
  .trace { height: 100px; margin: 56px 0 48px; }
  .week { aspect-ratio: auto; height: 340px; margin-top: 40px; }
  .day span { font-size: 12px; left: 6px; writing-mode: vertical-rl; transform: rotate(180deg); bottom: 16px; }
  .day b { left: 4px; top: 0; }
  .adapt { grid-template-columns: 1fr; margin-top: 64px; }
  .adapt div { padding: 22px 0 36px; }
  .adapt p { font-size: 16px; }
  .done h3 { font-size: 32px; }
  .bars li { grid-template-columns: 1fr 72px; grid-template-rows: auto auto; height: auto; padding: 10px 0; row-gap: 8px; }
  .bars span:first-child { grid-column: 1 / -1; font-size: 16px; }
  .friday p:last-child { font-size: 26px; }
  .ask { font-size: 18px; padding: 20px 24px; }
  .answer { grid-template-columns: 24px 1fr; gap: 14px; }
  .answer svg { width: 24px; }
  .answer p { font-size: 18px; }
  .close { padding-top: 96px; }
  .foot nav { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
