/* CDC · página del gimnasio (landing v4). Una sola letra: Montserrat (OFL, desde este servidor).
   Paleta CDC: navy #0b1220, dorados #d4a94f #ffd978 #b8892f, superficies #16213b #1b2847.
   Día y Noche: sigue al celular o la PC; el botón lo fija (llave «cdc-tema», la misma del panel).
   Ojo: en la PC con mouse el sitio entero tiene zoom (pwa/escala_pc.css): no usar 100vh para llenar pantalla. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fuentes/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fuentes/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fuentes/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fuentes/montserrat-latin-700-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------ colores */
:root {
  --navy: #0b1220; --sup-1: #16213b; --sup-2: #1b2847;
  --oro: #d4a94f; --oro-claro: #ffd978; --oro-oscuro: #b8892f;
  --degrade-oro: linear-gradient(135deg, #ffd978 0%, #d4a94f 55%, #b8892f 100%);
  /* noche (por defecto) */
  --fondo: #0b1220; --fondo-alt: #0f1930;
  --tinta: #eaf1fb; --tinta-2: #c6d2e6; --tinta-3: #9fb1cf;
  --acento: #ffd978; --acento-texto: #ffd978;
  --vidrio: rgba(27, 40, 71, .62); --vidrio-borde: rgba(212, 169, 79, .22); --vidrio-brillo: rgba(255, 255, 255, .06);
  --sombra: 0 14px 40px rgba(0, 0, 0, .38);
  --resplandor-1: rgba(212, 169, 79, .16); --resplandor-2: rgba(41, 80, 160, .22);
  --barra: rgba(11, 18, 32, .78);
  --degrade-titulo: var(--degrade-oro);
  --filtro-logo: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-tema="noche"]) {
    --fondo: #f6f4ee; --fondo-alt: #efebe1;
    --tinta: #0b1220; --tinta-2: #33405c; --tinta-3: #4f5b73;
    --acento: #8a6416; --acento-texto: #7a5812;
    --vidrio: rgba(255, 255, 255, .72); --vidrio-borde: rgba(184, 137, 47, .28); --vidrio-brillo: rgba(255, 255, 255, .7);
    --sombra: 0 14px 34px rgba(11, 18, 32, .12);
    --resplandor-1: rgba(212, 169, 79, .22); --resplandor-2: rgba(120, 150, 210, .18);
    --barra: rgba(246, 244, 238, .84);
    --degrade-titulo: linear-gradient(135deg, #b8892f 0%, #8a6416 100%);
    --filtro-logo: brightness(.72) saturate(1.25);
    color-scheme: light;
  }
}
:root[data-tema="dia"] {
  --fondo: #f6f4ee; --fondo-alt: #efebe1;
  --tinta: #0b1220; --tinta-2: #33405c; --tinta-3: #4f5b73;
  --acento: #8a6416; --acento-texto: #7a5812;
  --vidrio: rgba(255, 255, 255, .72); --vidrio-borde: rgba(184, 137, 47, .28); --vidrio-brillo: rgba(255, 255, 255, .7);
  --sombra: 0 14px 34px rgba(11, 18, 32, .12);
  --resplandor-1: rgba(212, 169, 79, .22); --resplandor-2: rgba(120, 150, 210, .18);
  --barra: rgba(246, 244, 238, .84);
  --degrade-titulo: linear-gradient(135deg, #b8892f 0%, #8a6416 100%);
  --filtro-logo: brightness(.72) saturate(1.25);
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body.gym {
  margin: 0; font-family: "Montserrat", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--tinta); background: var(--fondo); overflow-x: hidden;
  background-image: radial-gradient(900px 600px at 100% -10%, var(--resplandor-1), transparent 65%),
                    radial-gradient(800px 600px at -10% 40%, var(--resplandor-2), transparent 65%);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acento-texto); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.caja { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.caja-angosta { max-width: 820px; }
.centrado { text-align: center; }
.suave { color: var(--tinta-2); }
.oro { background: var(--degrade-titulo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--oro); color: var(--navy);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.saltar:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--oro-claro); outline-offset: 3px; border-radius: 8px; }
.solo-dia { display: none; }
:root[data-tema="dia"] .solo-dia { display: block; }
:root[data-tema="dia"] .solo-noche { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-tema]) .solo-dia { display: block; }
  :root:not([data-tema]) .solo-noche { display: none; }
}

/* vidrio */
.vidrio {
  background: var(--vidrio); border: 1px solid var(--vidrio-borde); border-radius: 20px;
  box-shadow: var(--sombra), inset 0 1px 0 var(--vidrio-brillo);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}

/* etiquetas */
.etiqueta { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acento-texto); margin-bottom: .7em; }
.intro { font-size: 1.08rem; color: var(--tinta-2); max-width: 640px; }

/* ------------------------------------------------------------------ botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem/1.2 "Montserrat", sans-serif; color: var(--navy); background: var(--degrade-oro);
  box-shadow: 0 8px 22px rgba(212, 169, 79, .32); transition: transform .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 169, 79, .42); }
.boton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }
.boton-grande { min-height: 60px; font-size: 1.08rem; padding: 14px 28px; }
.boton-chico { min-height: 44px; padding: 8px 20px; font-size: .95rem; }
.boton-vidrio { background: var(--vidrio); color: var(--tinta); border: 1px solid var(--vidrio-borde);
  box-shadow: inset 0 1px 0 var(--vidrio-brillo); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.boton-vidrio:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.enlace { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }

/* ------------------------------------------------------------------ barra */
.barra { position: sticky; top: 0; z-index: 50; background: var(--barra); border-bottom: 1px solid var(--vidrio-borde);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.barra-fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca-iso { width: 40px; height: auto; }
.marca-nombre { width: 76px; height: auto; }
.barra-menu { display: none; gap: 28px; }
.barra-menu a { color: var(--tinta-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.barra-menu a:hover { color: var(--acento-texto); }
.barra-acciones { display: flex; align-items: center; gap: 10px; }
.tema { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--vidrio-borde); background: var(--vidrio);
  color: var(--tinta); display: grid; place-items: center; cursor: pointer; padding: 0; }
.tema svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tema .ic-luna { display: none; }
:root[data-tema="dia"] .tema .ic-sol { display: none; }
:root[data-tema="dia"] .tema .ic-luna { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-tema]) .tema .ic-sol { display: none; }
  :root:not([data-tema]) .tema .ic-luna { display: block; }
}

/* ------------------------------------------------------------------ portada */
.portada { position: relative; overflow: hidden; padding: 64px 0 56px; color: #eaf1fb; isolation: isolate; }
.portada-foto { position: absolute; inset: 0; z-index: -2; }
.portada-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.portada::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 18, 32, .55) 0%, rgba(11, 18, 32, .78) 55%, rgba(11, 18, 32, .96) 100%); }
.portada .etiqueta { color: #ffd978; }
.portada h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); margin-bottom: .45em; color: #fff; }
.portada .oro { background: var(--degrade-oro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bajada { font-size: 1.12rem; color: #d6e0f0; max-width: 560px; }
.portada .botones { flex-direction: column; align-items: stretch; max-width: 420px; }
.portada .boton-vidrio { background: rgba(22, 33, 59, .6); color: #fff; border-color: rgba(255, 217, 120, .35); }
.portada-nota { font-size: .92rem; color: #b8c6dd; margin: 0; }
.portada-tarjeta { display: none; }

/* ------------------------------------------------------------------ secciones */
.seccion { padding: 72px 0; }
.seccion-alt { background: color-mix(in srgb, var(--fondo-alt) 80%, transparent); }

.pasos { list-style: none; margin: 28px 0 28px; padding: 0; display: grid; gap: 16px; }
.paso { position: relative; padding: 26px 22px 22px 22px; }
.paso .numero { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 12px;
  background: var(--degrade-oro); color: var(--navy); font-weight: 700; font-size: 1.3rem; }
.paso p { color: var(--tinta-2); }

.tarjetas { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.tarjeta { padding: 22px; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; }
.tarjeta .icono { grid-row: span 2; }
.tarjeta h3 { margin: 4px 0 4px; }
.tarjeta p { margin: 0; color: var(--tinta-2); }
.icono { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255, 217, 120, .22), rgba(184, 137, 47, .14));
  border: 1px solid var(--vidrio-borde); color: var(--acento-texto); }
.icono svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; }

.planes { display: grid; gap: 18px; margin-top: 28px; }
.plan { position: relative; padding: 28px 24px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.25rem; }
.plan .precio { font-size: 2.3rem; font-weight: 700; line-height: 1.1; color: var(--tinta); margin-bottom: .4em; }
.plan .por { font-size: .95rem; font-weight: 500; color: var(--tinta-3); }
.plan .boton { margin-top: auto; }
.plan-destacado { border: 2px solid var(--oro); }
.cinta { position: absolute; top: -14px; left: 22px; margin: 0; padding: 4px 14px; border-radius: 999px;
  background: var(--degrade-oro); color: var(--navy); font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; }
.nota-planes { margin-top: 18px; color: var(--tinta-3); font-size: .95rem; }
.aviso-planes { padding: 22px; margin-top: 24px; }

.servicios { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.servicio { padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.servicio h3 { margin: 2px 0 4px; }
.servicio p { margin: 0; color: var(--tinta-2); }
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.galeria img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 1px solid var(--vidrio-borde); }

.bajar { display: grid; gap: 16px; margin-top: 24px; }
.bajar-caja { padding: 24px; }
.bajar-caja ol { margin: 0; padding-left: 1.3em; color: var(--tinta-2); }
.bajar-caja li { margin-bottom: .45em; }
.bajar-caja li::marker { color: var(--acento-texto); font-weight: 700; }

.preguntas { display: grid; gap: 12px; margin-top: 24px; }
.preguntas details { padding: 0; border-radius: 16px; }
.preguntas summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; list-style: none; position: relative; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--acento-texto); }
.preguntas details[open] summary::after { content: "–"; }
.preguntas details p { padding: 0 20px 18px; margin: 0; color: var(--tinta-2); }

.contacto { display: grid; gap: 28px; align-items: center; }
.datos { margin: 18px 0 22px; display: grid; gap: 12px; }
.datos div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.datos dt { color: var(--tinta-3); font-weight: 600; font-size: .92rem; }
.datos dd { margin: 0; font-weight: 600; }
.datos a { color: var(--tinta); text-decoration-color: var(--oro); text-underline-offset: 3px; }
.contacto-logo { width: 150px; margin: 0 auto; opacity: .95; }
.contacto-logo, .marca-iso, .portada-insignia img { filter: var(--filtro-logo); }

/* ------------------------------------------------------------------ pie */
.pie { border-top: 1px solid var(--vidrio-borde); padding: 22px 0 96px; font-size: .85rem; color: var(--tinta-3); }
.pie p { margin: 0; }
.pie a { color: var(--tinta-3); }
.pie-fila { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.nexmvd { font-size: .78rem; }
.nexmvd span { font-weight: 700; background: linear-gradient(100deg, #2a6bff, #29c4ff); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* WhatsApp flotante (celular) */
/* ------------------------------------------------------------------ más ancho */
@media (min-width: 700px) {
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .planes-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
  .planes-3 { grid-template-columns: repeat(3, 1fr); }
  .servicios { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .bajar { grid-template-columns: 1fr 1fr; }
  .portada .botones { flex-direction: row; max-width: none; }
}
@media (min-width: 960px) {
  .barra-menu { display: flex; }
  .portada { padding: 72px 0 80px; color: var(--tinta); }
  .portada-foto, .portada::before { display: none; }
  .portada h1 { color: var(--tinta); }
  .portada .oro { background: var(--degrade-titulo); -webkit-background-clip: text; background-clip: text; }
  .portada .etiqueta { color: var(--acento-texto); }
  .bajada { color: var(--tinta-2); }
  .portada-nota { color: var(--tinta-3); }
  .portada .boton-vidrio { background: var(--vidrio); color: var(--tinta); border-color: var(--vidrio-borde); }
  .portada-grilla { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
  .portada-tarjeta { display: block; position: relative; margin: 0; }
  .portada-tarjeta > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px;
    border: 1px solid var(--vidrio-borde); box-shadow: var(--sombra); }
  .portada-insignia { position: absolute; left: -28px; bottom: 28px; display: flex; gap: 12px; align-items: center;
    padding: 14px 18px; font-size: .9rem; color: var(--tinta-2); border-radius: 16px; }
  .portada-insignia strong { color: var(--tinta); }
  .tarjetas { grid-template-columns: repeat(5, 1fr); }
  .tarjeta { display: flex; flex-direction: column; }
  .tarjeta .icono { grid-row: auto; margin-bottom: 14px; }
  .contacto { grid-template-columns: 1fr auto; }
  .contacto-logo { width: 190px; margin-right: 40px; }
  .pie { padding-bottom: 24px; }
}

/* ------------------------------------------------------------------ editor del panel (/panel/modificaciones/gimnasio) */
.editor { padding: 36px 0 64px; }
.editor h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.editor form { display: grid; gap: 18px; }
.bloque { padding: 22px; }
.bloque h2 { font-size: 1.15rem; margin-bottom: .8em; }
.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo label { font-weight: 600; font-size: .95rem; }
.campo small { color: var(--tinta-3); }
.campo input[type=text], .campo textarea {
  font: 500 1rem "Montserrat", sans-serif; color: var(--tinta); background: var(--fondo);
  border: 1px solid var(--vidrio-borde); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.campo textarea { min-height: 84px; resize: vertical; }
.dos { display: grid; gap: 0 14px; }
@media (min-width: 700px) { .dos { grid-template-columns: 1fr 1fr; } }
.marcar { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.marcar input { width: 22px; height: 22px; accent-color: var(--oro); }
.avisos { display: grid; gap: 10px; }
.aviso { padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.aviso.error { border-color: #c0392b; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
  .boton:hover { transform: none; }
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .seccion-alt { background: var(--fondo-alt); }
}

/* ------------------------------------------------------------------ pantallas grandes (Jorge, 08/11)
   En la compu la página se agranda con el ancho de la ventana: usa casi todo el ancho y las letras crecen,
   también si el navegador quedó con el zoom achicado. El celular no cambia. */
@media (min-width: 1200px) {
  html { font-size: max(16px, 1.05vw); }
  body.gym { font-size: max(17px, 1.12vw); }
  .caja { max-width: 88vw; }
  .caja-angosta { max-width: 60vw; }
  .portada h1 { font-size: max(4.2rem, 4.4vw); }
  h2 { font-size: max(2.5rem, 2.6vw); }
  .intro, .bajada { max-width: none; }
  .boton-grande { min-height: 3.4rem; }
  .boton-chico { min-height: 2.6rem; }
}

/* La página del gimnasio NO lleva la escala de la PC del sistema (pwa/escala_pc.css achica todo a 0,67 en pantallas
   de 1600 px o más): la página ya se agranda sola con el ancho (arriba). Sin esto se veía lejos y con bandas a los
   costados (Jorge, 08/11). */
html:has(> body.gym) { --escala-pc: 1 !important; zoom: 1 !important; }

/* ------------------------------------------------------------------ WhatsApp flotante (Jorge, 08/11)
   La pesa rusa de NexGYM con la paleta de CDC: dorado con el ícono en azul noche. Cada tanto «se levanta» (amaga, sube,
   cae con rebote y salta un rayo); con el mouse hace una repetición rápida. En el celular y en la compu. */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 68px; height: 76px; display: block; border-radius: 22px;
  -webkit-tap-highlight-color: transparent; outline: none; }
.wa:focus-visible { box-shadow: 0 0 0 3px var(--fondo), 0 0 0 5px var(--oro-claro); }
.wa__sombra { position: absolute; left: 14px; right: 14px; bottom: 0; height: 8px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); animation: wa-sombra 3.6s ease-in-out infinite; }
.wa__flota { position: absolute; left: 0; top: 0; width: 68px; height: 68px; animation: wa-flota 3.6s ease-in-out infinite; will-change: transform; }
.wa__forma { position: absolute; inset: 0; width: 68px; height: 68px; overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(184, 137, 47, .45)) drop-shadow(0 0 10px rgba(255, 217, 120, .35)); }
.wa__pesa { position: absolute; inset: 0; display: block; transform-origin: 50% 92%; animation: pesa-levanta 4.2s cubic-bezier(.3, .7, .3, 1) infinite; }
.wa__s1 { stop-color: #B8892F; } .wa__s2 { stop-color: #D4A94F; } .wa__s3 { stop-color: #FFD978; }
.wa__cuerpo { fill: url(#g-pesa); stroke: rgba(255, 255, 255, .75); stroke-width: 1.3; }
.wa__reflejo { fill: rgba(255, 255, 255, .5); }
.wa__glifo { fill: none; stroke: #1F2E4D; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.wa__glifo .wa__tel { fill: #1F2E4D; stroke-width: 1.1; }
.wa__lineas { position: absolute; left: 18px; right: 18px; bottom: -4px; height: 12px; display: flex; justify-content: space-between; opacity: 0; animation: pesa-lineas 4.2s ease-out infinite; }
.wa__lineas i { width: 3px; height: 100%; border-radius: 3px; background: linear-gradient(rgba(255, 217, 120, 0), rgba(212, 169, 79, .9)); }
.wa__rayo { position: absolute; right: -6px; top: -4px; width: 20px; height: 20px; fill: #FFE3A0; stroke: #B8892F; stroke-width: 1;
  filter: drop-shadow(0 0 4px rgba(255, 217, 120, .95)); opacity: 0; transform: scale(0); animation: pesa-rayo 4.2s ease-in-out infinite; }
.wa:hover .wa__pesa, .wa:focus-visible .wa__pesa { animation: pesa-rapida .8s cubic-bezier(.3, .7, .3, 1.2); }
.wa:active .wa__pesa { animation: none; transform: scale(1.06, .88); }
@keyframes wa-flota { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); } 50% { transform: translate3d(0, -6px, 0) rotate(2deg); } }
@keyframes wa-sombra { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.74); opacity: .5; } }
@keyframes pesa-levanta {
  0%, 52%, 100% { transform: none; }
  60% { transform: translateY(2px) scale(1.06, .92); }
  70% { transform: translateY(-14px) rotate(-6deg) scale(.97, 1.05); }
  78% { transform: translateY(-15px) rotate(4deg); }
  88% { transform: translateY(0) scale(1.08, .9); }
  94% { transform: scale(.98, 1.03); }
}
@keyframes pesa-rapida { 0%, 100% { transform: none; } 30% { transform: translateY(-12px) rotate(-7deg); } 55% { transform: translateY(-13px) rotate(5deg); } 80% { transform: translateY(0) scale(1.08, .9); } }
@keyframes pesa-lineas { 0%, 62%, 100% { opacity: 0; transform: translateY(-6px); } 70% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(6px); } }
@keyframes pesa-rayo { 0%, 66%, 100% { opacity: 0; transform: scale(0) rotate(0deg); } 74% { opacity: 1; transform: scale(1.15) rotate(12deg); } 84% { opacity: .9; transform: scale(.9) rotate(-6deg); } 92% { opacity: 0; transform: scale(0); } }
@media (min-width: 1200px) { .wa { right: 28px; bottom: 28px; transform: scale(1.15); transform-origin: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .wa__sombra, .wa__flota, .wa__pesa, .wa__lineas, .wa__rayo { animation: none; } }

/* ================================================================== v5 (Jorge, 12/11): más impacto, misma paleta
   Datos rápidos en la portada, cinta que corre, títulos con raya dorada, servicios numerados, galería en mosaico,
   plan destacado que brilla, aparecer al bajar (solo con JS y sin «menos movimiento») y Centrix. */
.etiqueta { display: inline-flex; align-items: center; gap: 10px; }
.etiqueta::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--degrade-oro); flex: none; }
.portada h1 { letter-spacing: -.025em; }
.portada .oro { background-size: 220% 100%; animation: oro-brilla 7s ease-in-out infinite; }
@keyframes oro-brilla { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.portada-datos { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.portada-datos li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: #eaf1fb; background: rgba(22, 33, 59, .62);
  border: 1px solid rgba(255, 217, 120, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.portada-datos svg { width: 18px; height: 18px; fill: none; stroke: #ffd978; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }

/* cinta que corre */
.cinta-mov { overflow: hidden; background: var(--degrade-oro); color: var(--navy); padding: 14px 0;
  border-block: 1px solid rgba(255, 255, 255, .25); }
.cinta-mov__pista { display: flex; align-items: center; gap: 28px; width: max-content; white-space: nowrap;
  animation: cinta-corre 38s linear infinite; }
.cinta-mov span { font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.cinta-mov i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); opacity: .7; flex: none; }
@keyframes cinta-corre { to { transform: translateX(-50%); } }

/* servicios numerados y tarjetas que se levantan */
.servicios { counter-reset: serv; }
.servicio { position: relative; overflow: hidden; counter-increment: serv; }
.servicio::after { content: "0" counter(serv); position: absolute; right: 14px; top: 6px; font-weight: 700;
  font-size: 2.6rem; line-height: 1; color: var(--oro); opacity: .16; pointer-events: none; }
.tarjeta, .servicio, .paso, .plan, .bajar-caja { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
@media (hover: hover) {
  .tarjeta:hover, .servicio:hover, .paso:hover, .bajar-caja:hover { transform: translateY(-4px);
    border-color: rgba(212, 169, 79, .55); }
  .plan:hover { transform: translateY(-4px); }
  .galeria img { transition: transform .35s ease, filter .35s ease; }
  .galeria img:hover { transform: scale(1.02); filter: saturate(1.15); }
}
.plan-destacado { box-shadow: var(--sombra), 0 0 0 1px rgba(255, 217, 120, .35), 0 18px 60px rgba(212, 169, 79, .28); }
.plan .precio { background: var(--degrade-titulo); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* aparecer al bajar (la clase con-js la pone gimnasio.js; sin JS se ve todo) */
.con-js .revela { opacity: 0; transform: translateY(26px); }
.con-js .revela.visto { opacity: 1; transform: none;
  transition: opacity .6s ease var(--demora, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--demora, 0ms); }

@media (min-width: 700px) {
  .galeria { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, 17vw); }
  .galeria img { aspect-ratio: auto; height: 100%; }
  .galeria img:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .galeria img:nth-child(6) { grid-column: 4; grid-row: 1 / span 2; }
}
@media (min-width: 960px) {
  .portada { padding: 88px 0 96px; }
  .portada h1 { font-size: clamp(3.2rem, 5.2vw, 4.6rem); }
  .portada-datos li { color: var(--tinta); background: var(--vidrio); border-color: var(--vidrio-borde); }
  .portada-datos svg { stroke: var(--acento-texto); }
  .portada-aro { position: absolute; inset: -9% -10% -6% -14%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(212, 169, 79, .34), rgba(212, 169, 79, .08) 60%, transparent 72%);
    filter: blur(6px); }
  .portada-tarjeta { isolation: isolate; }
  .portada-tarjeta > img:not(.portada-chica) { transform: rotate(1.5deg); }
  .portada-grilla { grid-template-columns: 1.2fr .8fr; }
  .portada-tarjeta > .portada-chica { position: absolute; z-index: 2; right: -26px; top: -30px; width: 34%; aspect-ratio: 3 / 4; object-fit: cover;
    border-radius: 20px; border: 3px solid var(--fondo); box-shadow: var(--sombra); transform: rotate(-5deg); }
  .portada-insignia { z-index: 3; }
  .servicios { grid-template-columns: repeat(4, 1fr); }
  .servicio { flex-direction: column; padding: 26px 22px; }
}
@media (min-width: 1200px) {
  .portada h1 { font-size: max(4.4rem, 4.6vw); }
  .cinta-mov span { font-size: max(1.05rem, .95vw); }
}
@media (max-width: 959px) { .portada-chica, .portada-aro { display: none; } }

/* ------------------------------------------------------------------ Centrix: la esfera (abajo a la derecha, arriba
   del WhatsApp) y su panel. Esfera azul noche de vidrio con borde y halo dorados: solo la esfera. */
.centrix-burbuja { position: fixed; right: 19px; bottom: calc(108px + env(safe-area-inset-bottom, 0px)); z-index: 61;
  width: 66px; height: 66px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid;
  place-items: center; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.centrix-burbuja:focus-visible { outline: 3px solid var(--oro-claro); outline-offset: 3px; }
.centrix-esfera { position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #c9d8f5 7%, #4a73c4 24%, #1b2847 58%, #0b1220 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 217, 120, .85), inset 0 -8px 16px rgba(212, 169, 79, .35),
              0 8px 20px rgba(11, 18, 32, .45), 0 0 24px rgba(255, 217, 120, .45);
  animation: centrix-respira 3.4s ease-in-out infinite; }
.centrix-esfera__halo { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(255, 217, 120, .55);
  animation: centrix-halo 3.4s ease-out infinite; }
.centrix-esfera__brillo { position: absolute; top: 8px; left: 12px; width: 22px; height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); transform: rotate(-25deg); }
.centrix-esfera__nombre { position: relative; font-weight: 700; font-size: 11px; letter-spacing: .02em; color: #ffd978;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.centrix-burbuja:hover .centrix-esfera { filter: brightness(1.12); }
.centrix-abierta .centrix-burbuja .centrix-esfera__halo { animation: none; opacity: 0; }
@keyframes centrix-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes centrix-halo { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.centrix-panel { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  width: min(400px, calc(100vw - 24px)); max-height: min(78dvh, 640px); display: flex; flex-direction: column;
  overflow: hidden; border-radius: 22px; color: var(--tinta); background: var(--fondo);
  border: 1px solid var(--vidrio-borde); box-shadow: 0 24px 60px rgba(4, 8, 16, .5), 0 0 0 1px rgba(255, 217, 120, .12);
  font-size: 1rem; line-height: 1.5; }
.centrix-panel[hidden] { display: none !important; }
.centrix-cab { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff;
  background: linear-gradient(135deg, #1b2847 0%, #0b1220 100%); border-bottom: 1px solid rgba(255, 217, 120, .35); }
.centrix-esfera--mini { width: 38px; height: 38px; flex: none; animation: none; }
.centrix-esfera--mini .centrix-esfera__brillo { top: 5px; left: 7px; width: 14px; height: 8px; }
.centrix-tit { margin: 0; flex: 1; font-size: 1.15rem; color: #ffd978; line-height: 1.2; }
.centrix-tit small { display: block; font-size: .82rem; font-weight: 500; color: #c6d2e6; letter-spacing: 0; }
.centrix-cerrar { min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1);
  color: #fff; font: 500 1.7rem/1 "Montserrat", sans-serif; cursor: pointer; }
.centrix-cerrar:hover { background: rgba(255, 217, 120, .22); }
.centrix-charla { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.centrix-msg { max-width: 92%; padding: 10px 14px; border-radius: 16px; }
.centrix-msg--centrix { align-self: flex-start; background: var(--vidrio); border: 1px solid var(--vidrio-borde);
  border-top-left-radius: 6px; }
.centrix-msg--yo { align-self: flex-end; background: var(--degrade-oro); color: var(--navy); font-weight: 600;
  border-top-right-radius: 6px; }
.centrix-msg__txt { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.centrix-msg__acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.centrix-ir { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--tinta); border: 1px solid var(--oro); }
.centrix-ir--wa { background: var(--degrade-oro); color: var(--navy); border-color: transparent; }
.centrix-sugeridas { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.centrix-sugeridas:empty { display: none; }
.centrix-chip { min-height: 40px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: 600 .86rem/1.2 "Montserrat", sans-serif;
  color: var(--acento-texto); background: transparent; border: 1px dashed var(--oro); }
.centrix-chip:hover { background: var(--vidrio); border-style: solid; }
.centrix-quedan { flex: none; margin: 0; padding: 4px 16px 6px; font-size: .84rem; font-weight: 600; color: var(--tinta-3); }
.centrix-sin-mas .centrix-quedan { color: var(--acento-texto); }
.centrix-form { flex: none; display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--vidrio-borde); }
.centrix-form input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 16px; border-radius: 999px;
  font: 500 1rem "Montserrat", sans-serif; color: var(--tinta); background: var(--fondo-alt); border: 1px solid var(--vidrio-borde); }
.centrix-form input:disabled { opacity: .6; }
.centrix-enviar { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid;
  place-items: center; background: var(--degrade-oro); color: var(--navy); }
.centrix-enviar:disabled { opacity: .45; cursor: default; }
.centrix-enviar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.centrix-piensa .centrix-charla::after { content: "…"; align-self: flex-start; padding: 2px 14px; font-weight: 700;
  font-size: 1.4rem; color: var(--acento-texto); }
.centrix-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 699px) {
  .centrix-panel { right: 8px; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: 82dvh; }
  .centrix-sugeridas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .centrix-chip { flex: none; }
}
@media (min-width: 1200px) {
  .centrix-burbuja { right: 30px; bottom: 132px; transform: scale(1.12); transform-origin: 100% 100%; }
  .centrix-panel { right: 28px; bottom: 28px; width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .portada .oro, .cinta-mov__pista, .centrix-esfera, .centrix-esfera__halo { animation: none; }
  .cinta-mov__pista { width: auto; flex-wrap: wrap; justify-content: center; white-space: normal; padding: 0 16px; }
  .cinta-mov__pista > :nth-child(n+11) { display: none; }
  .tarjeta, .servicio, .paso, .plan, .bajar-caja, .galeria img { transition: none; }
  .tarjeta:hover, .servicio:hover, .paso:hover, .bajar-caja:hover, .plan:hover, .galeria img:hover { transform: none; }
}
