/* =====================================================================
   Gym Tonic · "Energía violeta"  (diseño propio de esta página)
   Anton (títulos, como el logo) + DM Sans (textos). Violeta y amarillo del logo.
   ===================================================================== */
@font-face { font-family: "Anton"; src: url("fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans-var.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --vio: #8b51fe;
  --vio-2: #6b2fe0;
  --deep: #1a0b38;
  --ink: #120726;
  --lav: #f1ebff;
  --yel: #faf166;
  --yel-2: #f5e43a;
  --white: #fff;
  --muted: #5b5077;
  --tilt: -3deg;
  --skew: polygon(0 0, 100% 0, 100% calc(100% - 3.2vw), 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.0625rem/1.55 "DM Sans", system-ui, sans-serif; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; padding: 10px 16px; background: var(--yel); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yel); outline-offset: 3px; }
.planes :focus-visible, .lugar :focus-visible, .faq :focus-visible, .acts :focus-visible, .grid-sec :focus-visible, .lugar-fotos :focus-visible, .resenas :focus-visible { outline-color: var(--vio-2); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 24px; font: 700 1rem/1 "DM Sans", sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; transform: skewX(-8deg); transition: transform .2s, box-shadow .2s, background .2s; }
.btn > * { transform: skewX(8deg); }
.btn .arrow, .plan-btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow, .plan-btn:hover .arrow { transform: translateX(5px); }
.btn-yel { background: var(--yel); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.btn-yel:hover { transform: skewX(-8deg) translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn-line { border: 2px solid var(--white); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--vio-2); }
.btn-vio { background: var(--vio); color: var(--white); box-shadow: 6px 6px 0 var(--yel); }
.btn-vio:hover { transform: skewX(-8deg) translate(-2px, -2px); box-shadow: 8px 8px 0 var(--yel); }
.wa-icon { display: inline-block; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: url("img/whatsapp.svg") center / contain no-repeat; mask: url("img/whatsapp.svg") center / contain no-repeat; }
.link { font-weight: 700; color: var(--vio-2); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yel-2); text-underline-offset: 5px; }
.link-dark { color: var(--ink); text-decoration-color: var(--vio); }

/* ---------- Promo (apagada por defecto) ---------- */
.promo { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; padding: 10px 20px; background: var(--yel); color: var(--ink); font-size: .95rem; text-align: center; }
.promo[hidden] { display: none; }
.promo strong { text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.promo-link { font-weight: 700; }

/* ---------- Barra ---------- */
.bar { position: sticky; top: 0; z-index: 40; background: var(--deep); border-bottom: 3px solid var(--yel); }
.bar-in { display: flex; align-items: center; gap: 16px; width: min(1160px, 100% - 32px); margin-inline: auto; height: 64px; }
.bar-logo img { width: 150px; }
.bar-nav { display: none; gap: 26px; margin-left: auto; }
.bar-nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px 0; border-bottom: 2px solid transparent; }
.bar-nav a:hover { border-color: var(--yel); }
.bar-cta { margin-left: auto; padding: 10px 16px; background: var(--yel); color: var(--ink); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; transform: skewX(-8deg); }
@media (min-width: 900px) {
  .bar-nav { display: flex; }
  .bar-cta { margin-left: 8px; }
  .bar-logo img { width: 180px; }
}

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: var(--vio); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: auto -10% -30% 35%; height: 70%; background: var(--vio-2); transform: skewY(-12deg); }
.hero-in { position: relative; z-index: 1; display: grid; gap: 34px; width: min(1160px, 100% - 40px); margin-inline: auto; padding: 36px 0 70px; }
.kicker { margin-top: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: var(--yel); }
.hero-title { margin-top: 12px; font-size: clamp(3.2rem, 15vw, 5.8rem); line-height: .92; }
.hero-title .hl { display: inline-block; color: var(--ink); background: var(--yel); padding: .02em .12em 0; transform: rotate(var(--tilt)); margin-bottom: .08em; }
.hero-title .unit { text-transform: none; }
.hero-lead { max-width: 34rem; margin-top: 20px; font-size: 1.15rem; color: #f3edff; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 18px 20px; margin-top: 30px; padding-left: 6px; }
@media (min-width: 900px) {
  .hero-in { padding: 80px 0 130px; }
  .hero-text { max-width: 760px; }
  .hero::after { content: "Tonic"; position: absolute; right: -2%; top: 50%; transform: translateY(-58%) rotate(-6deg); font: 400 clamp(12rem, 24vw, 22rem)/1 "Anton", sans-serif; text-transform: uppercase; color: transparent; -webkit-text-stroke: 3px rgba(250, 241, 102, .45); pointer-events: none; }
}

/* Abierto ahora */
.open-now { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(18, 7, 38, .55); color: var(--white); font-weight: 600; font-size: .92rem; border-left: 4px solid var(--yel); }
.open-now[hidden] { display: none; }
.open-now .dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa0a6; }
.open-now.is-open .dot { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulso 1.8s infinite; }
.open-now.is-closed .dot { background: #ff6b6b; }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* Cinta */
.ribbon { position: relative; z-index: 2; margin: -26px -4% 0; background: var(--yel); color: var(--ink); transform: rotate(-2deg); border-block: 3px solid var(--ink); overflow: hidden; }
.ribbon-track { display: flex; width: max-content; animation: cinta 26s linear infinite; }
.ribbon span { padding: 12px 0; font: 400 1.35rem/1 "Anton", sans-serif; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; padding-right: .3em; }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } .open-now.is-open .dot { animation: none; } }

/* ---------- Números ---------- */
.nums { background: var(--ink); color: var(--white); padding: 70px 0 56px; margin-top: -14px; }
.nums-grid { display: grid; gap: 28px; }
.num { display: grid; gap: 4px; padding-left: 18px; border-left: 6px solid var(--vio); }
.num strong { font: 400 clamp(3.6rem, 16vw, 6rem)/.95 "Anton", sans-serif; color: var(--yel); }
.num small { font-size: .45em; margin-left: .12em; color: var(--white); }
.num span { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #cfc2f2; font-size: .9rem; }
@media (min-width: 760px) { .nums-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(64px, 11vw, 116px) 0; }
.sec-head { margin-bottom: 34px; }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.tag { display: inline-block; margin-bottom: 14px; padding: 6px 12px; background: var(--vio); color: var(--white); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; transform: skewX(-8deg); }
.tag-yel { background: var(--yel); color: var(--ink); }
.h2 { font-size: clamp(2.8rem, 11vw, 5.2rem); }
.sec-lead { margin-top: 14px; font-size: 1.15rem; font-weight: 500; color: var(--muted); }

/* ---------- Actividades ---------- */
.acts { background: var(--lav); }
.acts-grid { display: grid; gap: 16px; }
.act { position: relative; padding: 26px 24px 24px; background: var(--white); border-top: 6px solid var(--vio); box-shadow: 0 10px 30px -18px rgba(60, 20, 140, .45); overflow: hidden; }
.act-n { position: absolute; right: 14px; top: 6px; font: 400 3.4rem/1 "Anton", sans-serif; color: var(--lav); }
.act h3 { position: relative; font-size: 2rem; }
.act p { position: relative; margin-top: 10px; color: var(--muted); }
.act-big { background: var(--vio); color: var(--white); border-top-color: var(--yel); }
.act-big .act-n { color: rgba(255, 255, 255, .15); }
.act-big h3 { font-size: clamp(2.2rem, 9vw, 3.2rem); color: var(--yel); }
.act-big p { color: #f1eaff; font-size: 1.1rem; }
@media (min-width: 760px) {
  .acts-grid { grid-template-columns: repeat(4, 1fr); }
  .act-big { grid-column: 1 / -1; padding: 34px 36px; }
}

/* ---------- Grilla de clases ---------- */
.grilla { padding: 22px; background: var(--deep); color: var(--white); box-shadow: 10px 10px 0 var(--yel); }
.dias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dias button { min-height: 48px; border: 0; background: rgba(255, 255, 255, .08); color: var(--white); font: 400 1.15rem/1 "Anton", sans-serif; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: background .15s; }
.dias button:hover { background: rgba(255, 255, 255, .18); }
.dias button[aria-selected="true"] { background: var(--yel); color: var(--ink); }
.filtros { display: flex; gap: 8px; margin: 16px 0 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.filtros button { flex: none; min-height: 40px; padding: 0 14px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: var(--white); font: 600 .9rem/1 "DM Sans", sans-serif; cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--vio); border-color: var(--vio); }
.clases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.clases[hidden] { display: none; }
.clase { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .06); border-left: 5px solid var(--vio); }
.clase-hora { font: 400 1.3rem/1 "Anton", sans-serif; color: var(--yel); }
.clase-act { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.clase-gap { border-color: #ff8fd8; } .clase-cycling { border-color: #5fd0ff; } .clase-pilates { border-color: #7ef0b0; }
.clase-nada { padding: 18px; color: #cfc2f2; }
@media (min-width: 760px) { .clases { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .clase { grid-template-columns: 4.2rem 1fr; } }
.clases-vacio { padding: 28px 18px; border: 2px dashed rgba(255, 255, 255, .35); color: #e2d8ff; text-align: center; font-weight: 500; }
.clases-vacio[hidden] { display: none; }
.grid-note { margin-top: 34px; font-weight: 500; color: var(--muted); }
.grid-note .link { margin-left: 4px; }

/* ---------- Profes ---------- */
.profes { background: var(--vio); color: var(--white); clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 calc(100% - 3vw)); padding-block: calc(clamp(64px, 11vw, 116px) + 3vw); }
.profes .h2 { color: var(--white); }
.profes-grid { display: grid; gap: 34px; }
.profe-foto { position: relative; margin-bottom: 18px; }
.profe-foto::after { content: ""; position: absolute; inset: 14px -10px -10px 14px; z-index: 0; background: var(--ink); }
.profe-foto img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; }
@media (min-width: 760px) { .profe-foto img { aspect-ratio: 4 / 5; object-position: 50% 50%; } }
.profe h3 { font-size: 3rem; color: var(--yel); }
.profe-rol { display: inline-block; margin: 6px 0 12px; padding: 4px 10px; background: var(--ink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.profe p:last-child { color: #f3edff; font-size: 1.05rem; max-width: 24rem; }
@media (min-width: 760px) {
  .profes-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .profe:nth-child(2) { margin-top: 50px; }
}

/* ---------- El gimnasio (carrusel) ---------- */
.carousel-count { font: 400 1.8rem/1 "Anton", sans-serif; color: var(--vio); }
.carousel { position: relative; outline-offset: 6px; }
.carousel-track { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track li { flex: 0 0 86%; scroll-snap-align: start; }
.ph { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 20px; background: repeating-linear-gradient(135deg, var(--lav) 0 18px, #e6dcff 18px 36px); color: var(--vio-2); font-weight: 700; text-align: center; border: 3px solid var(--vio); }
.ph-yours { background: var(--yel); border: 3px dashed var(--ink); color: var(--ink); }
.ph-yours span { font: 400 2.2rem/1 "Anton", sans-serif; text-transform: uppercase; }
.carousel-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.carousel-arrow { width: 52px; height: 52px; border: 0; background: var(--ink); color: var(--yel); font-size: 1.4rem; cursor: pointer; transform: skewX(-8deg); }
.carousel-arrow:disabled { opacity: .3; cursor: default; }
.carousel-arrow[hidden], .carousel-dots[hidden] { display: none; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 26px; height: 8px; padding: 0; border: 0; background: #d6c8ff; cursor: pointer; transform: skewX(-20deg); transition: width .2s, background .2s; }
.carousel-dots button[aria-current="true"] { width: 44px; background: var(--vio); }
@media (min-width: 760px) { .carousel-track li { flex-basis: calc((100% - 28px) / 2.4); } }

/* ---------- Horario ---------- */
.horario { background: var(--ink); color: var(--white); }
.horario-in { display: grid; gap: 30px; }
.horario .open-now { margin-top: 20px; background: rgba(255, 255, 255, .08); }
.tabla-horario { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.tabla-horario th, .tabla-horario td { padding: 15px 12px; border-bottom: 1px solid rgba(255, 255, 255, .14); text-align: left; }
.tabla-horario th { font-weight: 600; }
.tabla-horario td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tabla-horario .r { white-space: nowrap; }
.tabla-horario .y { font-weight: 400; color: #bfb2e6; margin-inline: 4px; }
.tabla-horario .cerrado td { color: #ff8a8a; }
.tabla-horario tr.hoy { background: var(--yel); color: var(--ink); }
.tabla-horario tr.hoy .y { color: var(--muted); }
.tabla-horario tr.hoy.cerrado td { color: #b3261e; }
.hoy-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; background: var(--ink); color: var(--yel); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; vertical-align: 2px; }
@media (min-width: 900px) { .horario-in { grid-template-columns: .8fr 1.2fr; align-items: start; } }

/* ---------- Planes ---------- */
.planes { background: var(--lav); }
.planes-grid { display: grid; gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 24px; background: var(--white); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--vio); transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--vio); }
.plan-dur { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--vio-2); font-size: .85rem; }
.plan h3 { font-size: 2.5rem; }
.plan-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; background: var(--yel); color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem; }
.plan-btn:hover { background: var(--yel-2); }
@media (min-width: 760px) { .planes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .planes-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Reseñas ---------- */
.resenas { background: var(--yel); }
.resenas-in { display: grid; gap: 36px; align-items: center; }
.score { justify-self: start; display: grid; justify-items: center; padding: 26px 34px 22px; background: var(--ink); color: var(--white); transform: rotate(var(--tilt)); box-shadow: 10px 10px 0 var(--vio); }
.score strong { font: 400 6.5rem/.9 "Anton", sans-serif; color: var(--yel); }
.stars { margin-top: 6px; font-size: 1.5rem; letter-spacing: .12em; color: var(--yel); }
.score p { margin-top: 6px; font-weight: 600; }
.resenas .h2 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
.destacan { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; padding: 0; list-style: none; }
.destacan li { padding: 10px 16px; background: var(--white); border: 2px solid var(--ink); font-weight: 700; }
.destacan li::before { content: "✓"; margin-right: 8px; color: var(--vio-2); }
@media (min-width: 900px) { .resenas-in { grid-template-columns: auto 1fr; gap: 70px; } }

/* ---------- Lugar ---------- */
.lugar-in { display: grid; gap: 30px; }
.lugar-dir { margin: 18px 0 26px; font-size: 1.35rem; font-weight: 600; }
.mapa { border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--vio); }
.mapa iframe { display: block; width: 100%; height: 340px; border: 0; }
@media (min-width: 900px) { .lugar-in { grid-template-columns: .8fr 1.2fr; align-items: center; } .mapa iframe { height: 420px; } }

/* ---------- Sumate ---------- */
.sumate { position: relative; overflow: hidden; background: var(--vio-2); color: var(--white); padding: 90px 0 96px; text-align: center; clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%); }
.sumate-in { position: relative; display: grid; justify-items: center; gap: 18px; }
.sumate-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); font: 400 clamp(7rem, 34vw, 20rem)/1 "Anton", sans-serif; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(250, 241, 102, .35); white-space: nowrap; pointer-events: none; }
.sumate .h2 { position: relative; max-width: 14ch; color: var(--yel); }
.sumate p:not(.sumate-big) { position: relative; max-width: 30rem; font-size: 1.15rem; }
.sumate .btn { position: relative; margin-top: 8px; }

/* ---------- Preguntas frecuentes ---------- */
.faq-in { max-width: 820px; }
.faq .h2 { font-size: clamp(2.4rem, 9vw, 4rem); margin-bottom: 28px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border: 2px solid var(--ink); background: var(--white); }
.faq details[open] { box-shadow: 6px 6px 0 var(--yel); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--vio-2); border-bottom: 3px solid var(--vio-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Pie ---------- */
.pie { background: var(--deep); color: #d9cdfa; padding: 56px 0 110px; font-size: .95rem; }
.pie-in { display: grid; gap: 14px; }
.pie-logo { width: 200px; margin-bottom: 8px; }
.pie a { color: var(--white); }
.firma { margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); }
.firma a { color: var(--yel); font-weight: 700; text-decoration: none; }
.firma a:hover { text-decoration: underline; }

/* ---------- WhatsApp flotante ---------- */
.float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; place-items: center; width: 62px; height: 62px; background: var(--yel); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--vio); transform: skewX(-8deg); transition: transform .2s; }
.float-wa:hover { transform: skewX(-8deg) translate(-2px, -2px); }
.float-wa .wa-icon { width: 30px; height: 30px; transform: skewX(8deg); }

/* ---------- Nosotros ---------- */
.about { padding: clamp(56px, 10vw, 110px) 0; background: var(--lav); min-height: 60vh; }
.about-box { max-width: 42rem; margin: 30px 0; padding: 26px; background: var(--white); border: 3px dashed var(--vio); font-size: 1.15rem; color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }

/* ---------- Aparición al bajar ---------- */
.reveal-pending { opacity: 0; transform: translateY(26px); transition: opacity .55s ease var(--d, 0s), transform .55s ease var(--d, 0s); }
.reveal-pending.is-visible { opacity: 1; transform: none; }
.score.reveal-pending.is-visible { transform: rotate(var(--tilt)); }
