/* =========================================================
   SMART GYM — VISUAL SYSTEM
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --paper:  #f1eee7;
  --ink:    #171715;
  --orange: #ff4b1f;
  --muted:  #77756e;
  --line:   rgba(23, 23, 21, .22);
  --display: "Anton", Impact, sans-serif;
  --body:    "Inter", Arial, sans-serif;
  --mono:    "DM Mono", monospace;
  --pad:     clamp(22px, 5.2vw, 86px);
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* Tipografía utilitaria */
.mono,
.eyebrow,
.section-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
}

/* Wrapper general del sitio */
.site {
  opacity: 0;
  transition: opacity .7s ease;
}

.site.is-visible {
  opacity: 1;
}

/* =========================================================
   INTRO / PRELOADER
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--orange);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px var(--pad);
  transition: transform 1s cubic-bezier(.77, 0, .18, 1);
}

.intro.is-done {
  transform: translateY(-105%);
}

.intro__top,
.intro__bottom {
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  letter-spacing: .08em;
}

.intro__center {
  margin: auto 0;
}

.intro__small {
  font: 10px var(--mono);
  letter-spacing: .15em;
}

.intro h1 {
  font: clamp(90px, 19vw, 280px)/.76 var(--display);
  letter-spacing: -.045em;
  margin: 25px 0 0;
}

.intro h1 span {
  color: var(--paper);
}

.intro__bar {
  height: 2px;
  background: rgba(0, 0, 0, .2);
}

.intro__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  animation: loadbar 1.45s ease forwards;
}

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  height: 34px;
  background: var(--orange);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  font: 11px var(--mono);
  letter-spacing: .12em;
}

.ticker b {
  font-size: 15px;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  height: 76px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(241, 238, 231, .94);
  backdrop-filter: blur(12px);
  z-index: 30;
}

/* Logo */
.logo {
  font: 27px/.8 var(--display);
  letter-spacing: -.03em;
}

.logo span {
  color: var(--orange);
}

.logo sup {
  font: 9px var(--mono);
  vertical-align: top;
  margin-left: 3px;
}

/* Navegación */
.nav {
  display: flex;
  gap: clamp(18px, 3vw, 48px);
}

.nav a,
.header__cta {
  font: 10px var(--mono);
  letter-spacing: .04em;
  transition: color .2s;
}

.nav a:hover,
.header__cta:hover {
  color: var(--orange);
}

.header__cta {
  border: 1px solid var(--ink);
  padding: 13px 16px;
}

.header__cta span {
  color: var(--orange);
  padding-left: 15px;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.menu-toggle i {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink);
  margin: 6px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 25px var(--pad) 0;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.hero__title-wrap {
  position: relative;
  z-index: 2;
  margin: 48px 0 -5.5vw;
}

.eyebrow {
  margin: 0 0 15px;
}

.hero__title {
  font: clamp(110px, 21vw, 310px)/.72 var(--display);
  letter-spacing: -.035em;
  margin: 0;
  position: relative;
}

.outline {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}

.hero__dot {
  color: var(--orange);
}

/* Imagen principal */
.hero__visual {
  height: clamp(360px, 59vw, 790px);
  position: relative;
  overflow: hidden;
  background: #222;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .7s;
}

.hero__visual:hover .hero__image {
  transform: scale(1);
  filter: grayscale(.45) contrast(1.08);
}

.hero__image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 65%);
}

/* Stamp circular "SG" */
.hero__stamp {
  position: absolute;
  left: 5%;
  top: 12%;
  width: clamp(95px, 13vw, 180px);
  aspect-ratio: 1;
  border: 1px solid var(--orange);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transform: rotate(-12deg);
}

.hero__stamp span {
  font: clamp(35px, 6vw, 75px)/.8 var(--display);
  color: var(--orange);
}

.hero__stamp small {
  font: 8px var(--mono);
  text-align: center;
  margin-top: 10px;
}

/* Texto vertical + botón play */
.hero__vertical {
  position: absolute;
  right: 22px;
  top: 20px;
  writing-mode: vertical-rl;
  color: white;
  font-size: 9px;
}

.hero__play {
  position: absolute;
  right: 5%;
  bottom: 8%;
  width: 65px;
  height: 65px;
  background: var(--orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  transition: transform .3s;
}

.hero__play:hover {
  transform: scale(1.12) rotate(45deg);
}

/* Pie del hero */
.hero__foot {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 65px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.hero__foot p {
  margin: 0;
}

.hero__foot .mono {
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}

/* =========================================================
   UTILIDADES DE SECCIÓN
   ========================================================= */
.section-pad {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   MANIFESTO / CONCEPTO
   ========================================================= */
.manifesto {
  padding-top: 85px;
  padding-bottom: 90px;
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 8%;
  padding: 65px 0 50px;
}

.manifesto h2,
.plans__heading h2,
.space h2,
.visit h2 {
  font: clamp(65px, 11vw, 160px)/.82 var(--display);
  letter-spacing: -.025em;
  margin: 0;
}

.manifesto h2 span,
.plans__heading h2 span,
.space h2 span,
.visit h2 span {
  color: var(--orange);
}

.manifesto__copy {
  max-width: 360px;
  padding-top: 8px;
}

.cross {
  font-size: 30px;
  color: var(--orange);
}

.lead {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  margin: 25px 0 18px;
}

.manifesto__copy > p:not(.lead) {
  font-size: 13px;
  line-height: 1.8;
  color: #64625d;
}

.text-link {
  display: inline-flex;
  gap: 45px;
  margin-top: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font: 10px var(--mono);
}

.text-link span {
  color: var(--orange);
}

.manifesto__note {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
   EXPERIENCE
   ========================================================= */
.experience {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 780px;
}

.experience__image {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}

.experience__image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: grayscale(1);
  opacity: .82;
}

/* Trama de puntos (halftone) */
.halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 75, 31, .7) .8px, transparent .9px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
  opacity: .17;
  pointer-events: none;
  transition: opacity .4s;
}

.experience__image:hover .halftone {
  opacity: .45;
}

.experience__image-label {
  position: absolute;
  bottom: 25px;
  left: var(--pad);
  font-size: 9px;
}

.experience__content {
  padding: 60px var(--pad) 65px 7%;
  display: flex;
  flex-direction: column;
}

.experience .section-kicker {
  border-color: #4a4945;
  color: #aaa;
}

.experience .eyebrow {
  margin-top: 75px;
  color: var(--orange);
}

.experience h2 {
  font: clamp(70px, 9vw, 130px)/.82 var(--display);
  letter-spacing: -.02em;
  margin: 0;
}

.experience h2 span {
  color: var(--orange);
}

.experience__desc {
  font-size: 13px;
  line-height: 1.8;
  color: #b4b1aa;
  max-width: 400px;
  margin: 25px 0 40px;
}

/* Lista de features */
.feature-list {
  margin-top: auto;
}

.feature-list article {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  gap: 15px;
  align-items: start;
  border-top: 1px solid #4a4945;
  padding: 19px 0;
}

.feature-number {
  font-size: 9px;
  color: var(--orange);
}

.feature-list h3 {
  font-size: 12px;
  margin: 0 0 7px;
}

.feature-list p {
  font-size: 11px;
  color: #aaa;
  margin: 0;
  line-height: 1.5;
}

.feature-arrow {
  color: var(--orange);
}

/* =========================================================
   PLANS
   ========================================================= */
.plans {
  padding-top: 90px;
  padding-bottom: 100px;
}

.plans__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 60px 0 50px;
}

.plans__heading p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 8% 5px 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}

.plan-card {
  padding: 25px 25px 30px;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  transition: background .3s, color .3s;
}

.plan-card-price {
  font: 20px var(--mono);
  margin: 15px 0 0;
}

.plan-card:last-child {
  border: 0;
}

.plan-card:hover {
  background: var(--ink);
  color: var(--paper);
}

.plan-card--featured {
  background: var(--orange);
}

.plan-card--featured:hover {
  background: #e9431c;
  color: var(--ink);
}

.plan-card__top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}

.plan-tag {
  background: var(--ink);
  color: var(--paper);
  padding: 5px 8px;
}

.plan-card h3 {
  font: clamp(50px, 7vw, 90px)/.9 var(--display);
  margin: 55px 0 13px;
}

.plan-card > p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 260px;
  min-height: 40px;
}

.plan-card ul {
  padding: 18px 0 22px;
  margin: 10px 0 20px;
  border-top: 1px solid currentColor;
  list-style: none;
}

.plan-card li {
  font-size: 11px;
  margin: 10px 0;
}

.plan-card li:before {
  content: "+";
  color: var(--orange);
  padding-right: 10px;
}

.plan-card--featured li:before {
  color: var(--ink);
}

.plan-link {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid currentColor;
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
}

.plan-link span {
  color: var(--orange);
}

.plan-card--featured .plan-link span {
  color: var(--ink);
}

.plans__disclaimer {
  font-size: 8px;
  color: var(--muted);
  margin-top: 15px;
}

/* =========================================================
   SPACE / GALERÍA
   ========================================================= */
.space {
  background: #e5e1d8;
  padding: 0 0 90px;
}

.space__top {
  padding-top: 75px;
}

.space h2 {
  padding: 55px 0 45px;
}

.gallery {
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 25px;
}

.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #aaa;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform .8s, filter .6s;
}

.gallery__item:hover img {
  transform: scale(1.045);
  filter: grayscale(0);
}

.gallery__item--large { height: 480px; }
.gallery__item--small { height: 480px; }
.gallery__item--wide  { grid-column: 1 / -1; height: 420px; }

.gallery figcaption {
  position: absolute;
  left: 17px;
  bottom: 15px;
  background: var(--orange);
  padding: 8px 10px;
  font-size: 9px;
}

/* =========================================================
   VISIT / CTA
   ========================================================= */
.visit {
  background: var(--orange);
  padding-top: 75px;
  padding-bottom: 75px;
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 5%;
  min-height: 640px;
}

.visit .section-kicker {
  border-color: rgba(0, 0, 0, .3);
  color: #4d261c;
}

.visit__left > .eyebrow {
  margin-top: 65px;
}

.visit h2 {
  font-size: clamp(75px, 12vw, 170px);
}

.visit h2 span {
  color: var(--paper);
}

.visit__desc {
  max-width: 390px;
  font-size: 13px;
  line-height: 1.7;
  margin: 25px 0;
}

.big-link {
  display: flex;
  justify-content: space-between;
  max-width: 310px;
  border-bottom: 1px solid var(--ink);
  padding: 18px 0;
  font: 15px var(--mono);
  margin-top: 35px;
}

.big-link span {
  font-size: 20px;
}

.visit__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.visit__orb {
  width: min(33vw, 350px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  animation: orbit 18s linear infinite;
}

.visit__orb span {
  font: clamp(70px, 11vw, 150px) var(--display);
  letter-spacing: -.08em;
}

.visit__orb i {
  position: absolute;
  right: 4%;
  top: 12%;
  font-style: normal;
  font-size: 45px;
}

.visit__coordinates {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  font-size: 9px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 45px var(--pad) 22px;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 80px;
}

.logo--footer {
  font-size: 55px;
}

.footer__top p {
  font: clamp(28px, 4vw, 55px)/.9 var(--display);
  margin: 0;
}

.back-top {
  font-size: 9px;
  border-bottom: 1px solid #777;
  padding-bottom: 8px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #484743;
  padding-top: 18px;
  font-size: 8px;
  color: #aaa;
}

.footer__bottom div {
  display: flex;
  gap: 20px;
}

.footer__bottom a:hover {
  color: var(--orange);
}

/* =========================================================
   CURSOR PERSONALIZADO
   ========================================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
  transition: width .2s, height .2s, opacity .2s;
}

.cursor.is-active {
  width: 48px;
  height: 48px;
}

/* =========================================================
   REVEAL (animación on-scroll)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes loadbar {
  to { width: 100%; }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

/* =========================================================
   RESPONSIVE — hasta 800px
   ========================================================= */
@media (max-width: 800px) {
  .nav { gap: 15px; }
  .nav a { font-size: 9px; }
  .header__cta { font-size: 9px; padding: 11px; }

  .experience { grid-template-columns: 1fr; }
  .experience__image { min-height: 480px; }
  .experience__content { padding: 45px var(--pad) 55px; }
  .experience .eyebrow { margin-top: 45px; }
  .feature-list { margin-top: 35px; }

  .gallery__item--large,
  .gallery__item--small { height: 350px; }

  .visit { grid-template-columns: 1fr .65fr; }
  .visit__orb { width: 28vw; }
}

/* =========================================================
   RESPONSIVE — hasta 620px
   ========================================================= */
@media (max-width: 620px) {
  :root { --pad: 22px; }

  .ticker { height: 29px; }

  /* Header / menú mobile */
  .header { height: 65px; }
  .logo { font-size: 24px; }
  .header__cta { display: none; }
  .menu-toggle { display: block; z-index: 42; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s, padding .4s;
  }
  .nav.is-open {
    max-height: 300px;
    padding: 15px 22px 25px;
  }
  .nav a {
    font-size: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  /* Hero */
  .hero { padding-top: 20px; }
  .hero__meta { font-size: 8px; }
  .hero__title-wrap { margin: 55px 0 -3vw; }
  .hero__title { font-size: clamp(100px, 24vw, 160px); }
  .hero__visual { height: 520px; }
  .hero__stamp { top: 8%; left: 5%; }
  .hero__foot { padding: 18px 0 45px; font-size: 9px; }
  .hero__foot .mono { font-size: 8px; }

  /* Manifesto */
  .manifesto { padding-top: 55px; padding-bottom: 60px; }
  .section-kicker { font-size: 8px; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 35px; padding: 45px 0; }
  .manifesto h2 { font-size: clamp(68px, 16vw, 105px); }
  .manifesto__copy { max-width: 100%; }
  .manifesto__note { font-size: 7px; }

  /* Experience */
  .experience__image { min-height: 380px; }
  .experience h2 { font-size: clamp(72px, 17vw, 110px); }

  /* Plans */
  .plans { padding-top: 60px; padding-bottom: 65px; }
  .plans__heading { display: block; padding: 45px 0 35px; }
  .plans__heading h2 { font-size: clamp(75px, 18vw, 115px); }
  .plans__heading p { margin: 25px 0 0; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .plan-card h3 { margin-top: 35px; }
  .plan-card--featured { border-bottom: 1px solid var(--ink); }

  /* Space */
  .space__top { padding-top: 55px; }
  .space h2 { font-size: clamp(70px, 16vw, 110px); padding: 45px 0 35px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery__item--large { grid-column: 1 / -1; height: 340px; }
  .gallery__item--small { height: 260px; }
  .gallery__item--wide  { height: 260px; }
  .gallery__item img { min-height: 0; }
  .gallery figcaption { font-size: 7px; left: 8px; bottom: 8px; padding: 6px; }

  /* Visit */
  .visit { grid-template-columns: 1fr; padding-top: 55px; padding-bottom: 55px; }
  .visit__left > .eyebrow { margin-top: 45px; }
  .visit h2 { font-size: clamp(80px, 19vw, 125px); }
  .visit__right { padding-top: 55px; }
  .visit__orb { width: 65vw; }
  .visit__coordinates { font-size: 8px; }

  /* Footer */
  .footer__top { padding-bottom: 55px; gap: 25px; flex-wrap: wrap; }
  .logo--footer { font-size: 43px; }
  .footer__top p { font-size: 35px; }
  .back-top { margin-left: auto; }
  .footer__bottom { flex-direction: column; font-size: 7px; }
  .footer__bottom div { order: -1; flex-wrap: wrap; }

  .cursor { display: none; }
}

/* =========================================================
   ACCESIBILIDAD — reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .intro { display: none; }
  .site  { opacity: 1; }
}