/* ============================================================
   SERVOGYM — main.css
   Réplica estructural estilo phive.pt · implementación propia
   ============================================================ */

:root {
  --ink: #0e0f0c;
  --ink-soft: #1a1b17;
  --bone: #f1efe8;
  --bone-dim: #e6e3d9;
  --volt: #d5f63c;
  --volt-dark: #b8dc1e;
  --grey: #8b8b83;
  --font-display: 'Big Shoulders Display', Impact, sans-serif;
  --font-body: 'Archivo', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.77, 0, .18, 1);
  --header-h: 4.5rem;
  --gutter: clamp(1rem, 3vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: initial; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--volt); color: var(--ink); }

/* ---------- Tipografía ---------- */
.t-display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: .005em;
}
.t-hero     { font-size: clamp(3.4rem, 12.5vw, 12rem); }
.t-title    { font-size: clamp(2.6rem, 8vw, 7.5rem); }
.t-mid      { font-size: clamp(2rem, 5.5vw, 4.6rem); }
.t-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.t-callout {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Secciones / temas ---------- */
section[data-theme] { position: relative; }
section[data-theme="dark"] { background: var(--ink); color: var(--bone); }
section[data-theme="light"] { background: var(--bone); color: var(--ink); }
section[data-theme="volt"] { background: var(--volt); color: var(--ink); }

.container { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Curtain de carga ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ease-inout);
}
.curtain.is-done { transform: translateY(-101%); }
.curtain__logo {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: var(--bone);
  overflow: hidden; display: block;
}
.curtain__logo span {
  display: inline-block;
  transform: translateY(110%);
  animation: curtain-up .9s var(--ease-out) .15s forwards;
}
.curtain__logo em { font-style: normal; color: var(--volt); }
.curtain__bar {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--volt); width: 0%;
  animation: curtain-bar 1.1s var(--ease-inout) .2s forwards;
}
@keyframes curtain-up { to { transform: translateY(0); } }
@keyframes curtain-bar { to { width: 100%; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: transform .5s var(--ease-out), color .4s, background .4s;
  color: var(--bone);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-light { color: var(--ink); }
.site-header.is-scrolled { backdrop-filter: blur(10px); }
.site-header.is-scrolled::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  opacity: 1;
}
.site-header.on-light.is-scrolled::before {
  background: color-mix(in srgb, var(--bone) 72%, transparent);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.65rem;
  text-transform: uppercase; letter-spacing: .01em;
  line-height: 1; z-index: 2;
}
.logo em { font-style: normal; color: var(--volt); }
.site-header.on-light .logo em,
.menu-overlay .logo em { color: var(--volt-dark); }
.menu-overlay .logo em { color: var(--volt); }

.main-nav { display: flex; gap: 2.2rem; align-items: center; }
@media (max-width: 900px) { .main-nav { display: none; } }

/* Roll-hover: dos etiquetas apiladas que ruedan */
.rollhover {
  position: relative; display: inline-block;
  overflow: hidden; height: 1.1em; line-height: 1.1;
}
.rollhover > span {
  display: block;
  transition: transform .45s var(--ease-out);
}
.rollhover > span::after {
  content: attr(data-text);
  position: absolute; top: 110%; left: 0;
}
.rollhover:hover > span { transform: translateY(-110%); }
.main-nav .rollhover { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.header-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--volt); color: var(--ink);
  padding: .7rem 1.3rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s var(--ease-out), background .3s;
}
.header-cta:hover { transform: scale(1.05); background: var(--bone); }
@media (max-width: 600px) { .header-cta { display: none; } }

/* Burger */
.burger {
  display: flex; flex-direction: column; gap: 6px;
  width: 34px; padding: 4px 0; z-index: 2;
}
.burger span {
  height: 2px; width: 100%; background: currentColor;
  transition: transform .4s var(--ease-out), opacity .3s;
  transform-origin: center;
}
body.menu-open .burger { color: var(--bone); }
body.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Menú overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-inout);
  visibility: hidden;
}
body.menu-open .menu-overlay { clip-path: inset(0 0 0% 0); visibility: visible; }
body.menu-open { overflow: hidden; }

.menu-overlay__links { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 3rem; }
.menu-overlay__links a {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.8rem, 9vh, 6rem); line-height: .95;
  display: flex; align-items: baseline; gap: 1rem;
  overflow: hidden;
}
.menu-overlay__links a i {
  font-style: normal; font-family: var(--font-body);
  font-size: .75rem; font-weight: 600; color: var(--grey);
}
.menu-overlay__links a > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .7s var(--ease-out), color .3s;
}
body.menu-open .menu-overlay__links a > span { transform: translateY(0); }
.menu-overlay__links a:hover > span { color: var(--volt); }
.menu-overlay__links a:nth-child(1) > span { transition-delay: .10s; }
.menu-overlay__links a:nth-child(2) > span { transition-delay: .16s; }
.menu-overlay__links a:nth-child(3) > span { transition-delay: .22s; }
.menu-overlay__links a:nth-child(4) > span { transition-delay: .28s; }
.menu-overlay__links a:nth-child(5) > span { transition-delay: .34s; }
.menu-overlay__meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid rgba(241, 239, 232, .18); padding-top: 1.5rem;
  font-size: .8rem; color: var(--grey);
}
.menu-overlay__meta a:hover { color: var(--volt); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; color: var(--bone);
}
.hero__media, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 15, 12, .78) 0%, rgba(14, 15, 12, .15) 45%, rgba(14, 15, 12, .35) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(1.5rem, 4vh, 3rem); }
.hero__title { margin-bottom: 1.2rem; }
.hero__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
  border-top: 1px solid rgba(241, 239, 232, .3); padding-top: 1.3rem;
}
.hero__tagline { max-width: 34ch; font-size: .95rem; color: rgba(241, 239, 232, .85); }
.hero__scroll {
  display: flex; align-items: center; gap: .8rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 2.4rem; background: var(--volt);
  animation: scroll-pulse 1.6s var(--ease-inout) infinite;
}
@keyframes scroll-pulse { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- Reveal genérico ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }

/* Títulos por líneas */
.split-lines .line { display: block; overflow: hidden; }
.split-lines .line > span {
  display: block; transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.split-lines.in-view .line > span { transform: translateY(0); }
.split-lines .line:nth-child(2) > span { transition-delay: .08s; }
.split-lines .line:nth-child(3) > span { transition-delay: .16s; }

/* Parallax media */
.parallax-wrap { overflow: hidden; position: relative; }
.parallax-wrap > img, .parallax-wrap > video {
  width: 100%; height: 110%; object-fit: cover;
  will-change: transform;
}

/* ---------- Rolling title (marquesina) ---------- */
.rolling {
  overflow: hidden; white-space: nowrap;
  padding: clamp(2rem, 6vh, 4.5rem) 0;
}
.rolling__track {
  display: inline-flex; gap: 3rem;
  animation: roll 22s linear infinite;
  will-change: transform;
}
.rolling__track > span {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.5rem, 10vw, 9rem); line-height: 1;
  display: inline-flex; align-items: center; gap: 3rem;
}
.rolling__track em {
  font-style: normal;
  -webkit-text-stroke: 2px currentColor;
  -webkit-text-fill-color: transparent;
}
.rolling__track i { font-style: normal; color: var(--volt); font-size: .5em; }
@keyframes roll { to { transform: translateX(-50%); } }

/* ---------- Sección intro (manifiesto) ---------- */
.intro { padding: clamp(4rem, 12vh, 8rem) var(--gutter); }
.intro__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.intro__label { grid-column: 1 / 3; }
.intro__text { grid-column: 4 / 12; }
.intro__text .t-mid { margin-bottom: 2rem; }
.intro__text .t-mid em { font-style: normal; color: var(--volt-dark); }
.intro__cta-row { display: flex; gap: 1.5rem; align-items: center; }
@media (max-width: 900px) {
  .intro__grid { display: block; }
  .intro__label { margin-bottom: 1.5rem; }
}

/* Botón círculo */
.btn-round {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 8.5rem; height: 8.5rem; border-radius: 50%;
  border: 1px solid currentColor;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; line-height: 1.5;
  transition: background .4s var(--ease-out), color .4s, border-color .4s, transform .4s var(--ease-out);
  overflow: hidden;
}
.btn-round:hover { background: var(--ink); color: var(--volt); border-color: var(--ink); transform: scale(1.07); }
[data-theme="dark"] .btn-round:hover { background: var(--volt); color: var(--ink); border-color: var(--volt); }

.btn-pill {
  display: inline-flex; align-items: center; gap: .7rem;
  border: 1px solid currentColor; border-radius: 100px;
  padding: .85rem 1.7rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background .35s var(--ease-out), color .35s, border-color .35s;
}
.btn-pill:hover { background: var(--ink); color: var(--volt); border-color: var(--ink); }
[data-theme="dark"] .btn-pill:hover, .btn-pill.inverse:hover { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.btn-pill.solid { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.btn-pill.solid:hover { background: var(--bone); border-color: var(--bone); }

/* ---------- Clubes ---------- */
.clubs { padding: clamp(4rem, 10vh, 7rem) 0 clamp(5rem, 12vh, 8rem); }
.clubs__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 var(--gutter) 2.5rem; gap: 2rem; flex-wrap: wrap;
}
.clubs__list { border-top: 1px solid rgba(14, 15, 12, .18); position: relative; }
.club-row {
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 2rem;
  padding: 2rem var(--gutter);
  border-bottom: 1px solid rgba(14, 15, 12, .18);
  position: relative;
  transition: background .4s, color .4s;
}
.club-row:hover { background: var(--ink); color: var(--bone); }
.club-row__index { font-size: .75rem; font-weight: 600; color: var(--grey); }
.club-row__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 3.6rem);
  text-transform: uppercase; line-height: 1;
}
.club-row__meta { font-size: .8rem; color: var(--grey); text-align: right; }
.club-row__arrow {
  width: 3rem; height: 3rem; border: 1px solid currentColor; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, transform .4s var(--ease-out);
}
.club-row:hover .club-row__arrow { background: var(--volt); color: var(--ink); border-color: var(--volt); transform: rotate(45deg); }

/* Imagen flotante que sigue al cursor */
.club-float {
  position: fixed; z-index: 60; pointer-events: none;
  width: clamp(220px, 24vw, 360px); aspect-ratio: 4 / 3;
  border-radius: 6px; overflow: hidden;
  opacity: 0; transform: scale(.85) rotate(-3deg);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.club-float.is-active { opacity: 1; transform: scale(1) rotate(0deg); }
.club-float img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .3s;
}
.club-float img.is-current { opacity: 1; }
@media (hover: none) { .club-float { display: none; } }
@media (max-width: 700px) {
  .club-row { grid-template-columns: auto 1fr auto; }
  .club-row__meta { display: none; }
}

/* ---------- Bold typography (vídeo + declaración) ---------- */
.bold-typo {
  position: relative; padding: clamp(5rem, 15vh, 10rem) var(--gutter);
  overflow: hidden;
}
.bold-typo__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38;
}
.bold-typo__content { position: relative; z-index: 2; text-align: center; }
.bold-typo__content .t-title em { font-style: normal; color: var(--volt); }
.bold-typo__sub { margin: 2rem auto 0; max-width: 52ch; color: rgba(241, 239, 232, .75); }

/* ---------- Showcase de clases (sticky horizontal) ---------- */
.showcase { position: relative; }
.showcase__tall { height: 340vh; position: relative; }
.showcase__sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.showcase__head {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 0;
  z-index: 5;
}
.showcase__progress { display: flex; gap: .5rem; align-items: center; }
.showcase__progress i {
  width: 2.4rem; height: 2px; background: rgba(241, 239, 232, .25);
  position: relative; overflow: hidden; font-style: normal;
}
.showcase__progress i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--volt); transform: scaleX(0); transform-origin: left;
  transition: transform .3s linear;
}
.showcase__progress i.done::after { transform: scaleX(1); }
.showcase__track {
  display: flex; gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--gutter);
  will-change: transform;
}
.class-card {
  flex: 0 0 clamp(300px, 38vw, 520px);
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 3 / 4; max-height: 68vh;
}
.class-card img, .class-card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.class-card:hover img, .class-card:hover video { transform: scale(1.06); }
.class-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 15, 12, .8), transparent 55%);
}
.class-card__body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1.5rem; color: var(--bone);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
}
.class-card__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem); text-transform: uppercase; line-height: .95;
}
.class-card__tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--volt); }
.class-card__num {
  position: absolute; top: 1.2rem; left: 1.4rem; z-index: 2;
  font-size: .75rem; font-weight: 600; color: rgba(241, 239, 232, .8);
}

/* ---------- Stats ---------- */
.stats { padding: clamp(4rem, 12vh, 8rem) var(--gutter); }
.stats__head { margin-bottom: 3rem; max-width: 800px; }
.stats__table { border-top: 1px solid rgba(14, 15, 12, .18); }
[data-theme="dark"] .stats__table { border-color: rgba(241, 239, 232, .18); }
.stat-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(14, 15, 12, .18);
}
[data-theme="dark"] .stat-row { border-color: rgba(241, 239, 232, .18); }
.stat-row__label { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.stat-row__value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1;
  text-transform: uppercase;
}
.stat-row__value small { font-size: .35em; color: var(--volt-dark); vertical-align: super; }
[data-theme="dark"] .stat-row__value small { color: var(--volt); }

/* ---------- Amenities (bullets + fotos) ---------- */
.amenities { padding: clamp(4rem, 12vh, 8rem) var(--gutter); }
.amenities__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .amenities__grid { grid-template-columns: 1fr; } }
.amenities__sticky { position: sticky; top: 15vh; }
.amenities__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden;
}
.amenities__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out);
  transform: scale(1.06);
}
.amenities__media img.is-current { opacity: 1; transform: scale(1); }
.amenities__list { display: flex; flex-direction: column; }
.amenity {
  padding: 2.2rem 0; border-bottom: 1px solid rgba(14, 15, 12, .16);
  cursor: pointer; transition: opacity .3s;
}
.amenity__head { display: flex; align-items: baseline; gap: 1.2rem; }
.amenity__index { font-size: .72rem; font-weight: 600; color: var(--grey); }
.amenity__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); text-transform: uppercase; line-height: 1;
  transition: color .3s;
}
.amenity.is-active .amenity__name, .amenity:hover .amenity__name { color: var(--volt-dark); }
.amenity__desc {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease-out), opacity .4s, margin .4s;
  font-size: .92rem; color: #55554e; max-width: 46ch;
}
.amenity.is-active .amenity__desc { max-height: 8rem; opacity: 1; margin-top: .9rem; }

/* ---------- Photo grid ---------- */
.photogrid { padding: clamp(3rem, 8vh, 6rem) var(--gutter); }
.photogrid__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter); align-items: start;
}
.photogrid__item { border-radius: 6px; overflow: hidden; }
.photogrid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.photogrid__item:hover img { transform: scale(1.05); }
.photogrid__item:nth-child(1) { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.photogrid__item:nth-child(2) { grid-column: 7 / 13; aspect-ratio: 16 / 10; margin-top: 14%; }
.photogrid__item:nth-child(3) { grid-column: 2 / 7; aspect-ratio: 16 / 11; margin-top: -6%; }
.photogrid__item:nth-child(4) { grid-column: 8 / 12; aspect-ratio: 3 / 4; }
@media (max-width: 700px) {
  .photogrid__item { grid-column: 1 / 13 !important; margin-top: 0 !important; aspect-ratio: 4 / 3 !important; }
}

/* ---------- App ---------- */
.app-section { padding: clamp(4rem, 12vh, 8rem) var(--gutter); overflow: hidden; }
.app-section__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
@media (max-width: 900px) { .app-section__grid { grid-template-columns: 1fr; } }
.app-section h2 { margin: 1rem 0 1.5rem; }
.app-section h2 em { font-style: normal; color: var(--volt); }
.app-section__desc { color: rgba(241, 239, 232, .75); max-width: 44ch; margin-bottom: 2rem; }
.app-features { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2.5rem; }
.app-features li { display: flex; gap: .9rem; align-items: center; font-size: .95rem; }
.app-features li::before {
  content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%;
  background: var(--volt);
}
.store-badges { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Mock de teléfono */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before {
  content: ""; position: absolute; inset: 10% -20% 10% -20%;
  background: radial-gradient(closest-side, rgba(213, 246, 60, .16), transparent 70%);
}
.phone {
  position: relative; width: min(300px, 70vw); aspect-ratio: 9 / 19;
  border-radius: 2.6rem; border: 3px solid #2a2b26;
  background: #151612; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
  transform: rotate(4deg);
}
.phone__notch {
  position: absolute; top: .8rem; left: 50%; transform: translateX(-50%);
  width: 38%; height: 1.5rem; border-radius: 100px; background: #000; z-index: 3;
}
.phone__screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 3.2rem 1.2rem 1.2rem; }
.phone__brand { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; color: var(--bone); }
.phone__brand em { font-style: normal; color: var(--volt); }
.phone__stat {
  margin-top: 1rem; border-radius: 1rem; background: #1e201a;
  padding: 1rem; color: var(--bone);
}
.phone__stat b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--volt); }
.phone__stat span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.phone__img { margin-top: 1rem; border-radius: 1rem; overflow: hidden; flex: 1; }
.phone__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA final ---------- */
.final-cta {
  padding: clamp(5rem, 16vh, 11rem) var(--gutter);
  text-align: center; position: relative; overflow: hidden;
}
.final-cta .t-title { margin-bottom: 2.5rem; }
.final-cta .t-title em { font-style: normal; -webkit-text-stroke: 2px var(--ink); -webkit-text-fill-color: transparent; }

/* ---------- Ribbon ---------- */
.ribbon { border-top: 1px solid rgba(241, 239, 232, .15); border-bottom: 1px solid rgba(241, 239, 232, .15); overflow: hidden; }
.ribbon__track {
  display: inline-flex; white-space: nowrap; gap: 2.5rem;
  padding: 1.1rem 0;
  animation: roll 18s linear infinite;
}
.ribbon__track span {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  display: inline-flex; gap: 2.5rem; align-items: center;
}
.ribbon__track i { font-style: normal; color: var(--volt); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bone); }
.site-footer__main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; padding: clamp(3rem, 8vh, 5rem) var(--gutter);
}
@media (max-width: 900px) { .site-footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 550px) { .site-footer__main { grid-template-columns: 1fr; } }
.site-footer .logo { font-size: 2.4rem; }
.site-footer__col h4 {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 1.1rem; font-weight: 600;
}
.site-footer__col li { margin-bottom: .55rem; font-size: .92rem; }
.site-footer__col a:hover { color: var(--volt); }
.site-footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.4rem var(--gutter);
  border-top: 1px solid rgba(241, 239, 232, .14);
  font-size: .72rem; color: var(--grey);
}
.giant-logo {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(4rem, 17vw, 16rem); line-height: .8;
  text-align: center; padding: 2rem var(--gutter) 0;
  color: var(--ink-soft);
  -webkit-text-stroke: 1px rgba(241, 239, 232, .25);
  user-select: none;
}

/* ---------- Páginas interiores ---------- */
.page-hero {
  position: relative; min-height: 62vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) var(--gutter) 2.5rem;
  overflow: hidden; color: var(--bone);
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,15,12,.85), rgba(14,15,12,.25));
}
.page-hero__content { position: relative; z-index: 2; width: 100%; }
.page-hero__content .t-label { color: var(--volt); }

.club-detail { padding: clamp(4rem, 10vh, 7rem) var(--gutter); }
.club-detail + .club-detail { padding-top: 0; }
.club-detail__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .club-detail__grid { grid-template-columns: 1fr; } }
.club-detail__grid.flip > .parallax-wrap { order: 2; }
@media (max-width: 900px) { .club-detail__grid.flip > .parallax-wrap { order: 0; } }
.club-detail .parallax-wrap { aspect-ratio: 4 / 3; border-radius: 8px; }
.club-detail h2 { margin: .8rem 0 1.2rem; }
.club-detail__specs { margin: 1.5rem 0 2rem; border-top: 1px solid rgba(14,15,12,.15); }
.club-detail__specs li {
  display: flex; justify-content: space-between; padding: .7rem 0;
  border-bottom: 1px solid rgba(14,15,12,.15); font-size: .9rem;
}
.club-detail__specs span:first-child { color: var(--grey); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }

/* Grid de clases (página) */
.classes-grid { padding: clamp(3rem, 8vh, 6rem) var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
@media (max-width: 1000px) { .classes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .classes-grid { grid-template-columns: 1fr; } }
.classes-grid .class-card { flex: initial; max-height: none; }

/* Horario */
.schedule { padding: clamp(3rem, 8vh, 6rem) var(--gutter); overflow-x: auto; }
.schedule table { width: 100%; border-collapse: collapse; min-width: 760px; }
.schedule th {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
  text-align: left; padding: 1rem .8rem; border-bottom: 2px solid var(--ink); font-weight: 600;
}
.schedule td { padding: 1rem .8rem; border-bottom: 1px solid rgba(14,15,12,.14); font-size: .88rem; vertical-align: top; }
.schedule td b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; }
.schedule td span { color: var(--grey); font-size: .75rem; }
.schedule .slot { background: rgba(213, 246, 60, .16); border-radius: 4px; }

/* Únete / formulario */
.join { padding: clamp(3rem, 9vh, 7rem) var(--gutter); }
.join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
@media (max-width: 900px) { .join__grid { grid-template-columns: 1fr; } }
.join form { display: flex; flex-direction: column; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: .95rem 1.1rem;
  background: transparent; color: inherit;
  border: 1px solid rgba(14,15,12,.3); border-radius: 6px;
  transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea { border-color: rgba(241,239,232,.3); }
[data-theme="dark"] .field input:focus { border-color: var(--volt); }
.form-note { font-size: .78rem; color: var(--grey); }
.form-success {
  display: none; padding: 1.2rem 1.4rem; border: 1px solid var(--volt-dark);
  border-radius: 6px; background: rgba(213, 246, 60, .18); font-size: .92rem;
}
.form-success.is-visible { display: block; }

.plan-card {
  border: 1px solid rgba(14,15,12,.2); border-radius: 10px;
  padding: 2rem; margin-bottom: 1.2rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  transition: background .35s, color .35s, transform .35s var(--ease-out);
}
.plan-card:hover { background: var(--ink); color: var(--bone); transform: translateY(-3px); }
.plan-card h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; text-transform: uppercase; }
.plan-card p { font-size: .82rem; color: var(--grey); max-width: 30ch; }
.plan-card__price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; white-space: nowrap; }
.plan-card__price small { font-size: .78rem; font-family: var(--font-body); color: var(--grey); font-weight: 400; letter-spacing: .05em; }
.plan-card:hover .plan-card__price { color: var(--volt); }

/* Utilidades */
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden-mobile { }
@media (max-width: 700px) { .hidden-mobile { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rolling__track, .ribbon__track { animation: none; }
}
