/* ---------- Base común (se usa igual en todas las páginas) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 0; padding: 10px 14px; z-index: 100; background: #000; color: #fff; }
.saltar:focus { left: 8px; top: 8px; }
.form__error:empty { display: none; }
[hidden] { display: none !important; }

/* Botón flotante de WhatsApp con menú */
.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 10px; transition: transform .3s ease, opacity .3s ease; }
.wa.oculto { transform: translateY(110px); opacity: 0; pointer-events: none; }
.wa__boton { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #1F8A4C; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .2s ease; }
.wa__boton:hover { transform: scale(1.06); }
.wa__boton:active { transform: scale(.95); }
.wa__boton .ico { width: 30px; height: 30px; }
.wa__menu { display: grid; gap: 6px; min-width: 230px; padding: 8px; border-radius: 16px; background: #fff; color: #1d1d1f; box-shadow: 0 14px 40px rgba(0,0,0,.25);
  transform-origin: bottom right; transform: scale(.85) translateY(10px); opacity: 0; visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s .22s; }
.wa.abierto .wa__menu { transform: none; opacity: 1; visibility: visible; transition: transform .22s ease, opacity .22s ease; }
.wa__menu p { font-size: .8125rem; color: #555; padding: 6px 10px 2px; }
.wa__menu a { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; background: #F1F4F2; }
.wa__menu a:hover, .wa__menu a:focus-visible { background: #DCF1E3; }

/* Movimiento al hacer scroll: solo si la persona no pidió reducirlo */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js [data-reveal].visto { opacity: 1; transform: none; }
  .js [data-cascada] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-cascada].visto > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Gimnasio Aconcagua ---------- */
:root {
  --negro: #121212;
  --carbon: #1E1E1E;
  --naranja: #F07A1A;
  --naranja-osc: #C95E0A;
  --amarillo: #FFC629;
  --hueso: #F4F1EC;
  --gris: #A9A49D;
  --titulo: "Bebas Neue", "Arial Narrow", sans-serif;
  --pincel: "Permanent Marker", cursive;
  --texto: "Rubik", system-ui, sans-serif;
  --max: 1140px;
  --g: 20px;
}
body { background: var(--negro); color: #F2EFEA; font: 400 1.0625rem/1.6 var(--texto); }
h1, h2, h3 { font-family: var(--titulo); font-weight: 400; line-height: .95; letter-spacing: .01em; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 26px; border: 2px solid transparent; border-radius: 6px;
  font: 400 1.5rem/1 var(--titulo); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.boton:hover { transform: translateY(-2px) rotate(-1deg); }
.boton:active { transform: scale(.97); }
.boton--naranja { background: var(--naranja); color: var(--negro); }
.boton--naranja:hover { background: #FF8A2A; }
.boton--linea { border-color: #fff; color: #fff; }
.boton--linea:hover { background: #fff; color: var(--negro); }
.titulo { font-size: clamp(3rem, 14vw, 5.6rem); }

/* Hero: la cordillera que se dibuja */
.hero { position: relative; min-height: 0; padding-top: 190px; display: grid; align-items: end; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 60% 100%, #3A1E08 0%, var(--negro) 60%); }
.cordillera { position: absolute; left: 0; right: 0; top: 40px; width: 100%; height: 210px; z-index: -1; }
.cordillera__fondo { fill: #1C1410; }
.cordillera__linea { fill: none; stroke: var(--naranja); stroke-width: 3; stroke-linejoin: round; }
.cordillera__nieve { fill: #F4F1EC; }
.hero__cont { padding: 40px var(--g) 44px; max-width: var(--max); margin: 0 auto; width: 100%; display: grid; gap: 14px; justify-items: start; }
.hero__marca { display: grid; line-height: .85; }
.hero__gim { font: 400 1.4rem/1 var(--titulo); letter-spacing: .5em; color: var(--naranja); display: flex; align-items: center; gap: 12px; }
.hero__gim::before, .hero__gim::after { content: ""; width: 26px; height: 3px; background: var(--naranja); }
.hero__nombre { font: 400 clamp(4.2rem, 21vw, 10rem)/.85 var(--titulo); color: #fff; letter-spacing: .01em; }
.hero__titulo { font: 400 clamp(1.7rem, 7.5vw, 2.8rem)/1.05 var(--pincel); color: var(--naranja); transform: rotate(-2deg); }
.hero__texto { color: #D8D2CA; max-width: 30em; }
.hero__cont .boton { width: 100%; max-width: 380px; }
.hero__nota { color: var(--gris); font-size: .95rem; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.hero__num { font: 400 2rem/1 var(--titulo); color: #fff; }
.estrellas { color: var(--naranja); letter-spacing: 1px; }

@media (prefers-reduced-motion: no-preference) {
  .cordillera__linea { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazar 1.3s cubic-bezier(.6,0,.3,1) forwards; }
  .cordillera__fondo { animation: aparecer 1s .4s ease both; }
  .cordillera__nieve { animation: aparecer .6s 1.1s ease both; }
  .hero__gim { animation: subir .6s .2s ease both; }
  .hero__nombre { animation: golpe .7s .3s cubic-bezier(.2,.9,.3,1.2) both; }
  .hero__titulo { animation: pincelada .7s .65s ease both; }
  .hero__texto, .hero__nota { animation: subir .6s .8s ease both; }
  .hero__cont .boton { animation: subir .6s .95s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes trazar { to { stroke-dashoffset: 0; } }
  @keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
  @keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes golpe { from { opacity: 0; transform: translateY(30px) scale(1.05); } to { opacity: 1; transform: none; } }
  @keyframes pincelada { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
}

/* Beneficios: franja */
.beneficios { list-style: none; margin: 0; padding: 14px var(--g); background: var(--naranja); color: var(--negro); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.beneficios li { font: 400 1.5rem/1.1 var(--titulo); letter-spacing: .03em; display: flex; align-items: center; gap: 22px; }
.beneficios li:not(:last-child)::after { content: ""; width: 7px; height: 7px; background: var(--negro); transform: rotate(45deg); }

/* Promos */
.promos { max-width: var(--max); margin: 0 auto; padding: 64px var(--g); }
.promos__cab { display: grid; gap: 8px; margin-bottom: 22px; }
.promos__cab p { color: var(--gris); max-width: 32em; }
.promos__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promo { --c: var(--naranja); --t: var(--negro); background: var(--c); color: var(--t); padding: 22px 20px; border-radius: 6px; display: grid; gap: 6px; justify-items: start;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); transition: transform .2s ease; }
.promo:hover { transform: rotate(-1deg) scale(1.01); }
.promo.amarillo { --c: var(--amarillo); }
.promo.claro { --c: var(--hueso); }
.promo__etiqueta { font: 400 1.3rem/1 var(--pincel); }
.promo__titulo { font-size: clamp(3rem, 15vw, 5rem); line-height: .9; }
.promo__detalle { max-width: 28em; font-weight: 500; }
.promo__link { margin-top: 6px; font: 400 1.3rem/1 var(--titulo); letter-spacing: .05em; color: var(--t); text-decoration: none; border-bottom: 3px solid var(--t); padding: 6px 0; }

/* Sala */
.sala { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) 64px; }
.sala .titulo { margin-bottom: 18px; }
.sala__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sala__fotos figure { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; }
.sala__fotos figure.ancha { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.sala__fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sala__fotos figure:hover img { transform: scale(1.05); }

/* Reseñas */
.resenas { background: var(--carbon); padding: 64px var(--g); }
.resenas .titulo, .resenas__lista { max-width: var(--max); margin-left: auto; margin-right: auto; }
.resenas .titulo { margin-bottom: 20px; font-size: clamp(2.4rem, 11vw, 4.4rem); }
.resenas__lista { list-style: none; padding: 0; display: grid; gap: 16px; }
.cita { border-left: 5px solid var(--naranja); padding: 4px 0 4px 18px; }
.cita blockquote { margin: 0; }
.cita p { font-size: 1.2rem; font-weight: 500; }
.cita__fuente { font-size: .85rem !important; color: var(--gris); font-weight: 400 !important; margin-top: 6px; }

/* Visita */
.visita { max-width: var(--max); margin: 0 auto; padding: 64px var(--g) 72px; display: grid; gap: 24px; }
.visita__info { display: grid; gap: 16px; align-content: start; }
address { font-style: normal; font-size: 1.15rem; font-weight: 500; }
.horarios { width: 100%; border-collapse: collapse; }
.horarios th, .horarios td { text-align: left; padding: 11px 0; border-bottom: 1px solid #333; font-weight: 400; }
.horarios td { text-align: right; }
.horarios .hoy th, .horarios .hoy td { color: var(--naranja); font-weight: 700; }
.hoy__marca { font-size: .72rem; background: var(--naranja); color: var(--negro); border-radius: 4px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; font-weight: 700; }
.abierto { color: var(--gris); font-size: .95rem; }
.abierto--si { color: #7BE0A1; font-weight: 700; }
.visita__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visita__acciones .boton { padding: 12px 8px; font-size: 1.3rem; }
.visita__mapa { aspect-ratio: 4 / 3; background: var(--carbon); border-radius: 6px; overflow: hidden; }
.visita__mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.pie { border-top: 4px solid var(--naranja); text-align: center; padding: 40px var(--g) 110px; display: grid; gap: 4px; color: var(--gris); }
.pie__marca { font: 400 2.2rem/1 var(--titulo); color: #fff; }
.pie__marca span { color: var(--naranja); }
.pie a { color: #fff; text-underline-offset: 4px; }
.pie__brito { margin-top: 12px; font-size: .85rem; }

.wa__boton { background: var(--naranja); color: var(--negro); }
.wa__menu a { background: var(--hueso); }
.wa__menu a:hover, .wa__menu a:focus-visible { background: #FFE2C8; }

@media (min-width: 820px) {
  :root { --g: 40px; }
  .hero { min-height: min(100svh, 820px); padding-top: 0; }
  .cordillera { top: 4%; height: 62%; }
  .hero__cont { padding-bottom: 72px; }
  .hero__cont .boton { width: auto; }
  .promos__lista { grid-template-columns: repeat(3, 1fr); }
  .sala__fotos { grid-template-columns: 2fr 1.4fr 1fr; grid-auto-rows: 340px; }
  .sala__fotos figure, .sala__fotos figure.ancha { grid-column: auto; aspect-ratio: auto; }
  .resenas__lista { grid-template-columns: 1fr 1fr; gap: 40px; }
  .visita { grid-template-columns: 1fr 1.3fr; }
  .visita__mapa { aspect-ratio: auto; min-height: 380px; }
  .pie { padding-bottom: 48px; }
}
