/* Fitness Place Arganda — estilos
   Paleta: azul del logo + colores oficiales de discos olímpicos (IWF) */
:root {
  --azul: #1C72BB;         /* logo · disco de 20 kg */
  --azul-claro: #D6E6F5;
  --navy: #0E2F52;         /* texto y fondos oscuros */
  --navy-2: #163E68;
  --hormigon: #E8EBEE;     /* suelo de sala */
  --gris: #808388;         /* "SPORT CENTER" del logo */
  --gris-texto: #4A5562;
  --blanco: #FFFFFF;
  --rojo: #D7262E;         /* disco 25 kg */
  --amarillo: #F2C230;     /* disco 15 kg */
  --verde: #2E9B4F;        /* disco 10 kg */

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--navy);
  background: var(--blanco);
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amarillo); color: var(--navy); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { left: 8px; }

/* Tipografía de titulares: Archivo expandida, eco del "PLACE" del logo */
.h2, .hero__title, .tier__name, .tour__name, .ctype h3, .fact__k, .faq summary, .extra h3 {
  font-family: var(--display);
}
.h2 {
  font-size: var(--step-3);
  font-weight: 850;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.4rem;
  font-weight: 750; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; border-radius: 6px;
  transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn--light { background: var(--blanco); color: var(--azul); }
.btn--light:hover { background: var(--amarillo); color: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--blanco); }
.btn--ghost:hover { background: var(--blanco); color: var(--azul); }
.btn--dark { background: var(--navy); color: var(--blanco); }
.btn--dark:hover { background: var(--navy-2); }
.btn--blue { background: var(--azul); color: var(--blanco); }
.btn--blue:hover { background: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--blanco); }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: var(--azul); color: var(--blanco); transition: box-shadow .2s; }
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.15), 0 8px 24px rgba(14,47,82,.25); }
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .975rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-color: var(--blanco); }
.nav__cta { min-height: 42px; padding: .55rem 1.1rem; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .2s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: flex; flex-direction: column; padding: .5rem var(--gutter) 1.5rem; gap: .25rem; border-top: 1px solid rgba(255,255,255,.2); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) { padding: .85rem 0; font-weight: 650; font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.15); }
.nav__mobile .btn { margin-top: 1rem; }

/* HERO — foto a pantalla completa con escenas del gimnasio */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(calc(100svh - 72px), 900px); color: var(--blanco); background: var(--navy); overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: var(--azul); isolation: isolate; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12); mix-blend-mode: luminosity; opacity: 0; transform: scale(1.1); transition: opacity 1s ease, transform 0s linear 1s; }
.hero__slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1s ease, transform 4.5s cubic-bezier(.25,.1,.25,1); }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(14,47,82,.88) 0%, rgba(14,47,82,.55) 45%, rgba(14,47,82,.08) 80%),
    linear-gradient(0deg, rgba(14,47,82,.75) 0%, rgba(14,47,82,0) 45%); }
.hero__content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; padding-block: clamp(4rem, 10vw, 8rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero__title {
  font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6.5rem);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  line-height: .93;
  letter-spacing: -0.035em;
  margin: 1.25rem 0 1.5rem;
  max-width: 12ch;
  text-wrap: balance;
}
.hero__lead { font-size: var(--step-1); max-width: 38ch; margin: 0 0 2rem; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.status { display: inline-flex; align-items: center; gap: .6rem; margin: 0; padding: .45rem .85rem .45rem .7rem; background: rgba(255,255,255,.14); border-radius: 999px; font-size: var(--step--1); font-weight: 600; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gris); flex: none; }
.status.is-open .status__dot { background: #53E08A; box-shadow: 0 0 0 4px rgba(83,224,138,.25); }
.status.is-closed .status__dot { background: var(--amarillo); }

/* DATOS RÁPIDOS */
.facts { background: var(--navy); color: var(--blanco); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.75rem 1.5rem 1.75rem 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.14); }
.fact__k { font-size: var(--step--1); font-weight: 800; font-variation-settings: "wdth" 115; color: #8FBDE6; margin: 0 0 .35rem; }
.fact p { margin: 0; font-size: 1rem; line-height: 1.45; }
.fact a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.fact a:hover { border-color: var(--blanco); }

/* SECCIONES */
.section { padding-block: var(--section); }
.section__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__intro { margin: 0; max-width: 46ch; color: var(--gris-texto); font-size: var(--step-1); line-height: 1.5; }
.section__intro a { color: var(--azul); font-weight: 650; }


/* CLASES */
.classes { background: var(--hormigon); }
.classes__types { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--navy); margin-bottom: 3.5rem; }
.ctype { padding: 1.25rem 1.25rem 1.5rem 0; }
.ctype + .ctype { padding-left: 1.25rem; border-left: 1px solid #C3CAD2; }
.ctype h3 { margin: 0 0 .5rem; font-size: var(--step-1); font-weight: 850; font-variation-settings: "wdth" 120; }
.ctype p { margin: 0; color: var(--gris-texto); font-size: .975rem; }

.schedule { background: var(--blanco); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.schedule__days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.5rem; scrollbar-width: none; }
.schedule__days button { flex: none; border: 2px solid var(--hormigon); background: none; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; min-height: 44px; }
.schedule__days button:hover { border-color: var(--azul); }
.schedule__days button[aria-selected="true"] { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.schedule__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.slot { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; align-items: baseline; padding: 1rem 1.1rem; border: 1px solid #DCE1E6; border-radius: 8px; border-left: 5px solid var(--slot, var(--azul)); }
.slot time { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 110; font-size: 1.15rem; font-variant-numeric: tabular-nums; grid-row: span 2; }
.slot strong { font-weight: 750; }
.slot span { color: var(--gris-texto); font-size: .9rem; }
.schedule__note { margin: 1.25rem 0 0; font-size: var(--step--1); color: var(--gris-texto); }
.schedule__note a { color: var(--azul); }

/* PRECIOS */



.extras { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; border-top: 2px solid var(--navy); }
.extra { padding: 1.25rem 1.25rem 0 0; }
.extra + .extra { padding-left: 1.25rem; border-left: 1px solid #D5DBE1; }
.extra h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; font-variation-settings: "wdth" 115; }
.extra p { margin: 0; color: var(--gris-texto); font-size: .95rem; }
.extra strong { display: block; color: var(--navy); font-size: 1.35rem; font-weight: 850; }

/* GALERÍA — organizada por espacios */
:root {
  --cat-sala: var(--azul);
  --cat-cardio: var(--verde);
  --cat-peso: var(--rojo);
  --cat-clases: var(--amarillo);
  --cat-entrenador: var(--navy);
}
.gallery { padding-top: 0; }
.gallery__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid #D5DBE1; }
.gallery__filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.gfilter { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem .5rem .85rem; border: 2px solid var(--hormigon); border-radius: 999px; background: var(--blanco); font-weight: 700; font-size: .95rem; transition: border-color .2s, background-color .2s, color .2s; }
.gfilter::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c, conic-gradient(var(--azul) 0 25%, var(--rojo) 0 50%, var(--amarillo) 0 75%, var(--verde) 0)); box-shadow: inset 0 0 0 .18rem rgba(0,0,0,.12); }
.gfilter span { min-width: 1.6rem; padding: .05rem .4rem; border-radius: 999px; background: var(--hormigon); font-size: .8rem; font-variant-numeric: tabular-nums; text-align: center; transition: background-color .2s, color .2s; }
.gfilter:hover { border-color: var(--navy); }
.gfilter.is-active { background: var(--navy); border-color: var(--navy); color: var(--blanco); }
.gfilter.is-active span { background: rgba(255,255,255,.18); color: var(--blanco); }
.gallery__count { margin: 0; color: var(--gris-texto); font-weight: 600; font-variant-numeric: tabular-nums; }

.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 210px); grid-auto-flow: dense; gap: 12px; }
.tile { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: var(--hormigon); }
.tile--w { grid-column: span 2; }
.tile--t { grid-row: span 2; }
.tile--b { grid-column: span 2; grid-row: span 2; }
.tile[hidden] { display: none; }
.tile__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tile__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,47,82,0) 50%, rgba(14,47,82,.82)); opacity: 0; transition: opacity .35s; pointer-events: none; }
.tile::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); z-index: 2; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tile__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; color: var(--blanco); font-weight: 750; font-size: 1.05rem; line-height: 1.2; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tile--b .tile__cap { font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 120; font-size: var(--step-2); }
.tile__tag { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem .2rem .45rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--navy); font-family: var(--text); font-size: .75rem; font-weight: 750; font-variation-settings: "wdth" 100; }
.tile__tag::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }
.tile:hover .tile__btn img, .tile:focus-within .tile__btn img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-within::after, .tile:hover .tile__cap, .tile:focus-within .tile__cap { opacity: 1; }
.tile:hover .tile__cap, .tile:focus-within .tile__cap { transform: none; }
.tile:hover::before, .tile:focus-within::before { transform: scaleX(1); }
.tile__btn:focus-visible { outline-offset: -4px; }
@media (hover: none) {
  .tile::after, .tile__cap { opacity: 1; transform: none; }
  .tile__cap { font-size: .9rem; left: 10px; right: 10px; bottom: 10px; }
}

/* Al filtrar: las fotos que entran aparecen escalonadas */
.motion .tile.is-entering { animation: tile-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes tile-in { from { opacity: 0; transform: scale(.94); } }

/* Visor de fotos */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--blanco); overflow: hidden; }
.lightbox::backdrop { background: rgba(9,30,53,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: min(1200px, calc(100vw - 160px)); }
.lightbox__fig img { max-height: calc(100vh - 150px); max-width: 100%; width: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.lightbox__fig img.is-out { opacity: 0; transform: translateX(calc(var(--dir, 1) * -24px)); }
.lightbox__cap { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; font-weight: 650; }
.lightbox__tag { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem .2rem .5rem; border-radius: 999px; background: var(--blanco); color: var(--navy); font-size: .8rem; font-weight: 750; }
.lightbox__tag::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c, var(--azul)); }
.lightbox__title { font-size: 1.1rem; }
.lightbox__count { color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.lightbox__nav { position: fixed; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); transition: background-color .2s, border-color .2s; }
.lightbox__nav:hover { background: var(--blanco); border-color: var(--blanco); }
.lightbox__nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--blanco); border-right: 3px solid var(--blanco); transition: border-color .2s; }
.lightbox__nav:hover::before { border-color: var(--navy); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lightbox__nav--next { right: 24px; }
.lightbox__nav--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.lightbox__close { position: fixed; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--blanco); color: var(--navy); font-size: 1.75rem; line-height: 1; }

/* PRUEBA */
.trial { background: var(--azul); color: var(--blanco); padding-block: var(--section); }
.trial__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.trial__copy p { font-size: var(--step-1); color: rgba(255,255,255,.9); max-width: 40ch; margin: 1.5rem 0 2rem; }
.trial__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.trial__steps li { display: flex; align-items: center; gap: .9rem; font-weight: 650; }
.trial__steps span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blanco); color: var(--azul); font-family: var(--display); font-weight: 900; font-size: .95rem; }

.form { background: var(--blanco); color: var(--navy); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem; box-shadow: 0 30px 60px -30px rgba(14,47,82,.6); }
.field { display: grid; gap: .4rem; }
.field span { font-weight: 700; font-size: .95rem; }
.field input, .field select { font: inherit; min-height: 50px; padding: .7rem .9rem; border: 2px solid #CDD4DB; border-radius: 6px; background: var(--blanco); color: var(--navy); width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(28,114,187,.25); }
.field input[aria-invalid="true"] { border-color: var(--rojo); }
.form__submit { width: 100%; min-height: 54px; font-size: 1.05rem; margin-top: .25rem; }
.form__msg { margin: 0; font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.form__msg.is-error { color: var(--rojo); }
.form__msg.is-ok { color: var(--verde); }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem 4rem; align-items: start; }
.faq__list { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid #C9D0D7; }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-size: var(--step-1); font-weight: 750; font-variation-settings: "wdth" 108; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(var(--azul), var(--azul)) center / 100% 3px no-repeat, linear-gradient(var(--azul), var(--azul)) center / 3px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; color: var(--gris-texto); max-width: 58ch; }

/* CONTACTO */
.contact { background: var(--hormigon); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.contact__info { padding: var(--section) var(--gutter); max-width: calc(var(--max) / 2); margin-left: auto; width: 100%; }
.contact address { font-style: normal; font-size: var(--step-1); margin: 1.5rem 0 2rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin-bottom: 2rem; }
.hours caption { text-align: left; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 115; padding-bottom: .5rem; }
.hours th, .hours td { text-align: left; padding: .7rem 0; border-bottom: 1px solid #C9D0D7; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--azul); font-weight: 800; }
.hours tr.is-today th::after { content: " (hoy)"; font-weight: 600; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact__map { position: relative; min-height: 360px; }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.6); }

/* FOOTER */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 3rem 0 6rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.footer__logo { height: 54px; width: auto; }
.footer p { margin: .15rem 0; }
.footer a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.footer a:hover { color: var(--blanco); border-color: var(--blanco); }
.footer__legal { font-size: var(--step--1); }

/* CTA fijo en móvil */
.sticky-cta { display: none; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .nav__links { gap: 1.25rem; }
  .classes__types { grid-template-columns: repeat(3, 1fr); }
  .ctype:nth-child(4) { padding-left: 0; border-left: 0; }
  .ctype:nth-child(n+4) { border-top: 1px solid #C3CAD2; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero { min-height: min(calc(100svh - 72px), 760px); }
  .hero__media::after { background: linear-gradient(0deg, rgba(14,47,82,.92) 0%, rgba(14,47,82,.6) 55%, rgba(14,47,82,.25) 100%); }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .section__head { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr 1fr; }
  .extra:nth-child(3) { padding-left: 0; border-left: 0; }
  .extra:nth-child(n+3) { margin-top: 1.25rem; }
  .trial__grid, .faq__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { max-width: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .sticky-cta {
    display: flex; justify-content: center; align-items: center;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
    min-height: 54px; border-radius: 8px;
    background: var(--amarillo); color: var(--navy); font-weight: 800; text-decoration: none;
    box-shadow: 0 12px 30px -10px rgba(14,47,82,.6);
    transform: translateY(150%); transition: transform .25s ease;
  }
  .sticky-cta.is-visible { transform: none; }
}
@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .gallery__filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .gfilter { flex: none; }
  .gallery__count { display: none; }
  .tile--b .tile__cap { font-size: 1.1rem; }
  .lightbox__fig { max-width: 100vw; padding-inline: 12px; }
  .lightbox__fig img { max-height: calc(100vh - 220px); }
  .lightbox__nav { top: auto; bottom: 20px; margin-top: 0; width: 52px; height: 52px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .classes__types { grid-template-columns: 1fr 1fr; }
  .ctype, .ctype + .ctype { padding: 1rem 1rem 1.25rem 0; border-left: 0; border-top: 1px solid #C3CAD2; }
  .ctype:nth-child(even) { padding-left: 1rem; border-left: 1px solid #C3CAD2; }
  .ctype:first-child { border-top: 0; }
  .ctype:nth-child(2) { border-top: 0; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 1.1rem 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid rgba(255,255,255,.14); }
  .extras { grid-template-columns: 1fr; }
  .extra, .extra + .extra { padding: 1rem 0; border-left: 0; margin-top: 0; }
  .extra + .extra { border-top: 1px solid #D5DBE1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.footer__sep { display: inline-block; width: 1.25rem; }

/* INSTALACIONES — recorrido por la sala */
.tour__layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); }
.tour__stage { position: relative; }
.tour__frame { position: sticky; top: 96px; margin: 0; height: min(calc(100vh - 140px), 640px); border-radius: 12px; overflow: hidden; background: var(--navy); }
.tour__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.tour__img.is-active { opacity: 1; transform: none; }
.tour__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,47,82,.45) 0, rgba(14,47,82,0) 22%, rgba(14,47,82,0) 60%, rgba(14,47,82,.8)); pointer-events: none; }
.tour__bars { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; gap: 6px; z-index: 2; }
.tour__bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.tour__bar i { display: block; height: 100%; background: var(--blanco); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s ease; }
.tour__bar.is-done i, .tour__bar.is-active i { transform: scaleX(1); }
.tour__label { position: absolute; left: 28px; bottom: 22px; z-index: 2; color: var(--blanco); font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 125; font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; }
.motion .tour__label.is-changing { animation: label-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes label-in { from { opacity: 0; transform: translateY(16px); } }

.tour__steps { list-style: none; margin: 0; padding: 0; }
.tour__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; opacity: .28; transition: opacity .45s ease; }
.tour__step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 3rem; }
.tour__step.is-active { opacity: 1; }
.tour__photo-m { display: none; }
.tour__verb { display: flex; align-items: center; gap: .75rem; margin: 0 0 .75rem; color: var(--azul); font-weight: 750; }
.tour__n { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: .9rem; transition: background-color .3s, color .3s; }
.tour__step.is-active .tour__n { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.tour__name { font-size: var(--step-3); font-weight: 900; font-variation-settings: "wdth" 125; line-height: 1; letter-spacing: -0.02em; margin: 0 0 1rem; }
.tour__desc { margin: 0 0 1.25rem; color: var(--gris-texto); font-size: var(--step-1); line-height: 1.5; max-width: 38ch; }
.tour__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tour__tags li { padding: .4rem .85rem; border-radius: 999px; background: var(--hormigon); font-size: .9rem; font-weight: 650; }

/* PRECIOS — paneles que se expanden */
.tiers { display: flex; gap: 12px; height: 620px; }
.tier { container-type: inline-size; position: relative; flex: 1 1 0; min-width: 0; border-radius: 12px; overflow: hidden; color: var(--blanco); isolation: isolate; transition: flex-grow .65s cubic-bezier(.2,.8,.2,1); }
.tier--manana { background: var(--navy-2); }
.tier--libre { background: var(--azul); }
.tier--total { background: var(--navy); }
.tier__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; opacity: .45; transform: scale(1.08); transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .6s ease; }
.tier::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,47,82,.55) 0%, rgba(14,47,82,.15) 38%, rgba(14,47,82,.35) 55%, rgba(14,47,82,.92) 100%); }
.tier__inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.tier__tag { align-self: flex-start; margin: 0 0 1rem; padding: .3rem .8rem; border-radius: 999px; background: var(--amarillo); color: var(--navy); font-size: .85rem; font-weight: 800; }
.tier__head { margin-bottom: auto; }
.tier__name { margin: 0 0 .5rem; font-size: clamp(1.75rem, 13cqi, 3.25rem); font-weight: 900; font-variation-settings: "wdth" 125; line-height: .95; letter-spacing: -0.02em; }
.tier__for { margin: 0; max-width: 24ch; color: rgba(255,255,255,.85); }
.tier__price { margin: 0 0 .9rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem; }
.tier__from { width: 100%; font-weight: 650; color: rgba(255,255,255,.8); }
.tier__price strong { font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 112; font-size: clamp(2rem, 14cqi, 3.6rem); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.tier__per { font-weight: 650; }
.tier__toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0; background: none; border: 0; color: var(--blanco); font-weight: 700; }
.tier__toggle::after { content: ""; width: .5em; height: .5em; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-3px) rotate(45deg); transition: transform .3s; }
.tier.is-open .tier__toggle::after { transform: translateY(2px) rotate(-135deg); }
.tier__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1); }
.tier__more > div { overflow: hidden; min-width: 300px; }
.tier__list { list-style: none; margin: .5rem 0 1.5rem; padding: 0; display: grid; gap: .65rem; }
.tier__list li { position: relative; padding-left: 1.75rem; opacity: 0; transform: translateX(-12px); transition: opacity .3s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.tier__list li::before { content: ""; position: absolute; left: .25rem; top: .2em; width: .42rem; height: .8rem; border-right: 3px solid var(--amarillo); border-bottom: 3px solid var(--amarillo); transform: rotate(45deg); }
.tier__cta { width: 100%; }

.tier.is-open { flex-grow: 1.8; }
.tier.is-open .tier__bg { opacity: .55; transform: none; }
.tier.is-open .tier__more { grid-template-rows: 1fr; }
.tier.is-open .tier__list li { opacity: 1; transform: none; }
.tier.is-open .tier__list li:nth-child(1) { transition-delay: .15s; }
.tier.is-open .tier__list li:nth-child(2) { transition-delay: .21s; }
.tier.is-open .tier__list li:nth-child(3) { transition-delay: .27s; }
.tier.is-open .tier__list li:nth-child(4) { transition-delay: .33s; }
.tier.is-open .tier__list li:nth-child(5) { transition-delay: .39s; }
.tiers.has-open .tier:not(.is-open) .tier__for { opacity: .7; }

@media (min-width: 961px) {
  .tier.is-open .tier__toggle { display: none; }
}
@media (max-width: 960px) {
  .tour__layout { grid-template-columns: 1fr; }
  .tour__stage { display: none; }
  .tour__step, .tour__step:first-child { min-height: 0; opacity: 1; padding: 0 0 3rem; justify-content: flex-start; }
  .tour__photo-m { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 1.25rem; }
  .tiers { flex-direction: column; height: auto; }
  .tier { flex: none; min-height: 300px; }
  .tier__more > div { min-width: 0; }
  .tier__head { margin-bottom: 3rem; }
}

/* ============================================================
   MOVIMIENTO — solo con la clase .motion (se omite si el
   usuario pide reducir movimiento)
   ============================================================ */

/* Barra de progreso de lectura */
.nav__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--amarillo); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* Menú que se esconde al bajar y vuelve al subir */
.motion .nav { transition: transform .35s ease, box-shadow .2s; }
.motion .nav.is-hidden { transform: translateY(-100%); }

/* Titular palabra a palabra */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.hero__title .w > span { display: inline-block; }
.motion .hero__title .w > span { transform: translateY(105%); animation: word-up .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.1s + var(--i) * .07s); }
@keyframes word-up { to { transform: none; } }
.motion .hero .status,
.motion .hero__lead,
.motion .hero__actions { opacity: 0; animation: soft-in .7s ease forwards; }
.motion .hero .status { animation-delay: .05s; }
.motion .hero__lead { animation-delay: .55s; }
.motion .hero__actions { animation-delay: .7s; }
@keyframes soft-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.motion .status__dot { animation: pulse 2.4s ease-in-out infinite; }
.status:not(.is-open) .status__dot { animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(83,224,138,0); } }

/* El fondo del hero aparece desde azul */
.motion .hero__media { animation: fade 1.4s ease; }

/* Apariciones al hacer scroll */
.motion .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 80ms); }
.motion .rv.is-in { opacity: 1; transform: none; }

.motion .rv-wipe > :first-child { clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(.7,0,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.motion .rv-wipe img { transform: scale(1.15); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.motion .rv-wipe.is-in > :first-child { clip-path: inset(0 0 0 0); }
.motion .rv-wipe.is-in img { transform: none; }

/* Líneas que se trazan bajo los bloques */
.motion .classes__types, .motion .extras, .motion .faq__list { border-top-color: transparent; position: relative; }
.motion .classes__types::before, .motion .extras::before, .motion .faq__list::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--navy);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.7,0,.2,1);
}
.motion .is-drawn::before { transform: scaleX(1); }



/* Botones: respuesta al pulsar */
.btn { transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: scale(.97); }

/* Horario de clases al cambiar de día */
.motion .slot { animation: slot-in .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes slot-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.slot { transition: transform .2s ease, box-shadow .2s ease; }
.slot:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(14,47,82,.45); }

/* Cinta de ventajas */
.tape { background: var(--amarillo); color: var(--navy); overflow: hidden; padding: 1.05rem 0; border-block: 2px solid var(--navy); }
.tape__track { display: flex; width: max-content; }
.motion .tape__track { animation: tape 38s linear infinite; }
.tape:hover .tape__track { animation-play-state: paused; }
.tape__group { display: flex; list-style: none; margin: 0; padding: 0; }
.tape__group li { display: flex; align-items: center; white-space: nowrap; font-family: var(--display); font-weight: 850; font-variation-settings: "wdth" 120; font-size: clamp(1.05rem, .9rem + .7vw, 1.5rem); }
.tape__group li::after { content: ""; width: .7em; height: .7em; margin: 0 1.6rem; border-radius: 50%; background: var(--c, var(--azul)); box-shadow: inset 0 0 0 .2em rgba(0,0,0,.15); }
.tape__group li:nth-child(4n+1) { --c: var(--azul); }
.tape__group li:nth-child(4n+2) { --c: var(--rojo); }
.tape__group li:nth-child(4n+3) { --c: var(--verde); }
.tape__group li:nth-child(4n+4) { --c: var(--navy); }
@keyframes tape { to { transform: translateX(-50%); } }

/* Lightbox */
.motion .lightbox[open] .lightbox__fig { animation: lb-in .4s cubic-bezier(.2,.8,.2,1); }
.motion .lightbox[open]::backdrop { animation: fade .3s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* Mensaje del formulario */
.motion .form__msg.is-ok, .motion .form__msg.is-error { animation: soft-in .4s ease; }
.motion .form__msg.is-error { animation: shake .4s ease; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* Respeta la preferencia de reducir movimiento también en hovers */
@media (prefers-reduced-motion: reduce) {
  .tape__track { flex-wrap: wrap; }
  .tape__group[aria-hidden="true"] { display: none; }
}

/* Los paneles de precio conservan su transición de ancho al aparecer */
.motion .tier.rv { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1), flex-grow .65s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 80ms), calc(var(--d, 0) * 80ms), 0s; }

/* Galería filtrada: composición según cuántas fotos quedan */
.gallery__grid[data-count] .tile { grid-column: auto; grid-row: auto; }
.gallery__grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(260px, 32vw, 460px); }
.gallery__grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(260px, 32vw, 460px); }
.gallery__grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(260px, 32vw, 460px); }
.gallery__grid[data-count="5"] .tile.is-lead { grid-column: span 2; grid-row: span 2; }
@media (max-width: 640px) {
  .gallery__grid[data-count] { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery__grid[data-count="3"] .tile.is-lead,
  .gallery__grid[data-count="5"] .tile.is-lead { grid-column: span 2; grid-row: auto; }
}

/* El zoom al pasar el ratón sigue funcionando tras la animación de entrada */
.motion .tile.rv-wipe.is-in:hover .tile__btn img,
.motion .tile.rv-wipe.is-in:focus-within .tile__btn img { transform: scale(1.06); transition-delay: 0s; transition-duration: .7s; }
