/* =====================================================================
   GripFit — estilos compartidos de la landing
   ---------------------------------------------------------------------
   Los usan las tres páginas: la home (`index.html`), la de personal
   trainers (`pt/`) y la de gimnasios (`gimnasios/`). Una sola hoja para que
   las tres se vean como la misma marca y un cambio de color sea uno solo.
   (`pauta/` y `demo/` siguen con sus estilos propios.)
   ===================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --card: #151518;
  --card-2: #1b1b1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f4;
  --mid: #a1a1aa;
  --dim: #71717a;
  --orange: #ff5a1f;
  --orange-2: #ff7a45;
  --orange-soft: rgba(255, 90, 31, 0.12);
  --cream: #f5d9ae;
  --good: #4ade80;

  --paper: #f6f4f0;
  --paper-card: #ffffff;
  --paper-text: #17171a;
  --paper-mid: #52525b;
  --paper-line: #e7e3dc;

  --r: 16px;
  --r-lg: 24px;
  --wrap: 1160px;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* Sin esto, cualquier componente con `display` propio (el formulario de
   gimnasios es flex) ignora el atributo `hidden`. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}

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

.grad {
  background: linear-gradient(100deg, var(--orange) 10%, var(--cream) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--mid);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 760px) {
  .nav-link.hide-sm {
    display: none;
  }
}

/* ---------- Botones ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.2s, border-color 0.15s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--orange);
  color: #0a0a0b;
  box-shadow: 0 12px 32px -12px rgba(255, 90, 31, 0.8);
}
.btn-primary:hover {
  background: var(--orange-2);
  box-shadow: 0 16px 40px -12px rgba(255, 90, 31, 0.9);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-dark {
  background: var(--paper-text);
  color: #fff;
}
.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px;
}
.btn-lg {
  height: 58px;
  padding: 0 28px;
  font-size: 17px;
  border-radius: 14px;
}
.btn-block {
  width: 100%;
}
.arrow {
  transition: transform 0.15s;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.22), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mid);
  font-size: 13.5px;
  font-weight: 600;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.display {
  margin-top: 20px;
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
}
.lead {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--mid);
  max-width: 34em;
}
.lead strong {
  color: var(--text);
  font-weight: 600;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.micro {
  margin-top: 14px;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
}
.micro span::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
  margin-right: 6px;
}

/* El campo "¿Cómo se llama tu marca?" con el botón pegado. Es el corazón del
   hero de PT: lo que escribe acá aparece en el celular de al lado. */
.brand-form {
  margin-top: 28px;
  max-width: 540px;
}
.brand-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.brand-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.brand-row:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.brand-input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  outline: none;
}
.brand-input::placeholder {
  color: var(--dim);
}
@media (max-width: 520px) {
  .brand-row {
    flex-direction: column;
  }
  /* En columna, `flex: 1` (base 0) pisaba el alto del campo y el texto
     quedaba pegado al borde de arriba. */
  .brand-input {
    flex: none;
  }
  .brand-row .btn {
    width: 100%;
  }
}

/* ---------- Celular de muestra (mismo dibujo que AltaPt.jsx en la app) -- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.phone {
  position: relative;
  width: 300px;
  max-width: 78vw;
  aspect-ratio: 9 / 18.5;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(145deg, #3a3a3e, #121214);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 0 140px -30px rgba(255, 90, 31, 0.55);
  transform: rotate(-2deg);
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 25px;
  border-radius: 20px;
  background: #000;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 35px;
  background: #0b0b0c;
  padding: 54px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.ph-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ph-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), #ff9a5a);
  color: #0b0b0c;
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
}
.ph-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ph-hello {
  font-size: 13px;
  color: var(--mid);
  margin-top: 2px;
}
.ph-streak {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.24), rgba(255, 90, 31, 0.05));
  border: 1px solid rgba(255, 90, 31, 0.35);
}
.ph-flame {
  font-size: 26px;
  animation: flame 2.4s ease-in-out infinite;
}
@keyframes flame {
  0%,
  100% {
    transform: scale(1) rotate(-3deg);
  }
  50% {
    transform: scale(1.12) rotate(3deg);
  }
}
.ph-streak b {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}
.ph-streak small {
  color: var(--mid);
  font-size: 11px;
}
.ph-section {
  margin-top: 4px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--dim);
  font-weight: 700;
}
.ph-ex {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: #18181b;
}
.ph-thumb {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #27272a, #3f3f46);
  color: var(--orange);
  font-size: 11px;
  flex-shrink: 0;
}
.ph-ex p {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.ph-ex small {
  display: block;
  font-size: 10.5px;
  color: var(--dim);
  font-weight: 500;
}
.ph-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
  font-weight: 600;
}
.ph-tabs .on {
  color: var(--orange);
}

/* Las tarjetitas que flotan alrededor del celular: lo que pasa en el día a
   día del PT (un pago que entra solo, un alumno que registra su peso). */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.float-card b {
  display: block;
  font-size: 13px;
}
.float-card small {
  color: var(--mid);
  font-size: 11.5px;
}
.float-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  flex-shrink: 0;
}
.float-ico.green {
  background: rgba(74, 222, 128, 0.14);
}
.float-ico.orange {
  background: var(--orange-soft);
}
/* Nunca arriba del celular: ahí está la marca del PT, que es justo lo que
   tiene que ver cambiar mientras escribe. */
.fc-1 {
  top: 46%;
  left: -6%;
}
.fc-2 {
  bottom: 12%;
  right: -4%;
  animation-delay: -3s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media (max-width: 1000px) {
  .fc-1 {
    left: 0;
  }
  .fc-2 {
    right: 0;
  }
}
@media (max-width: 520px) {
  .phone {
    width: 260px;
  }
}
@media (max-width: 520px) {
  .float-card {
    font-size: 12px;
    padding: 8px 10px 8px 8px;
  }
  .float-card small {
    display: none;
  }
  .float-ico {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 32px 0 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Franja de confianza --------------------------------------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding: 22px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 32px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mid);
}
.trust-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--card-2);
}

/* ---------- Secciones -------------------------------------------------- */
.section {
  padding: 100px 0;
}
.section-tight {
  padding: 72px 0;
}
.section-paper {
  background: var(--paper);
  color: var(--paper-text);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left {
  margin-left: 0;
  text-align: left;
}
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
}
.sub {
  margin-top: 16px;
  color: var(--mid);
  font-size: 18px;
  line-height: 1.6;
}
.section-paper .sub {
  color: var(--paper-mid);
}
@media (max-width: 700px) {
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
}

/* ---------- Antes / Después ------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-col {
  border-radius: var(--r-lg);
  padding: 32px;
}
.compare-before {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
}
.compare-after {
  background: var(--ink);
  color: var(--text);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.compare-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
}
.compare-list li::before {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}
.compare-before li {
  color: var(--paper-mid);
}
.compare-before li::before {
  content: "✕";
  background: #fde2e2;
  color: #c0392b;
}
.compare-after li::before {
  content: "✓";
  background: var(--orange);
  color: var(--ink);
}
@media (max-width: 760px) {
  .compare {
    grid-template-columns: 1fr;
  }
  .compare-col {
    padding: 24px;
  }
}

/* ---------- Pasos ------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: paso;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.step p {
  color: var(--mid);
}
.step-time {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Bloques de funcionalidad (texto + dibujo) ----------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature + .feature {
  margin-top: 112px;
}
.feature.flip .feature-visual {
  order: -1;
}
.feature h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
}
.feature-text p {
  margin-top: 16px;
  color: var(--mid);
  font-size: 17.5px;
}
.checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
}
.checks li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 800;
}
.feature-visual {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(500px 300px at 70% 0%, rgba(255, 90, 31, 0.16), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  padding: 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
@media (max-width: 860px) {
  /* `minmax(0, 1fr)` y no `1fr`: con `1fr` la columna no baja del ancho
     mínimo de su contenido (las filas con un badge que no se corta) y a
     320px la página se iba de costado. */
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .feature.flip .feature-visual {
    order: 0;
  }
  .feature + .feature {
    margin-top: 72px;
  }
  .feature-visual {
    padding: 20px;
    min-height: 0;
  }
}

/* Piezas de interfaz dibujadas dentro de los bloques */
.ui-card {
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ui-row + .ui-row {
  margin-top: 10px;
}
.ui-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 90, 31, 0.25), transparent 60%),
    linear-gradient(160deg, #2a2a2e, #141416);
  display: grid;
  place-items: center;
}
.ui-play {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 18px;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.ui-title {
  font-weight: 700;
  font-size: 15px;
}
.ui-muted {
  color: var(--mid);
  font-size: 13px;
}
.ui-pill {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ui-pill.ok {
  background: rgba(74, 222, 128, 0.14);
  color: var(--good);
}
.ui-pill.warn {
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
}
.ui-pill.orange {
  background: var(--orange-soft);
  color: var(--orange-2);
}
/* En celulares chicos el badge no entra al lado del nombre: baja a su propia
   línea en vez de partir el nombre en pedacitos o salirse de la tarjeta. */
@media (max-width: 420px) {
  .ui-row {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  /* El texto se queda al lado del avatar (36px + 12px de gap). */
  .ui-avatar + div {
    flex: 1 1 calc(100% - 48px);
    min-width: 0;
  }
}
.ui-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #27272a;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.ui-sets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ui-set {
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.ui-set b {
  display: block;
  font-size: 17px;
}
.ui-set.done {
  border-color: rgba(255, 90, 31, 0.5);
  background: var(--orange-soft);
}
.ui-login {
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
  padding: 28px 22px;
  border-radius: 22px;
  background: #0b0b0c;
  border: 1px solid var(--line-2);
}
.ui-login .ph-logo {
  width: 56px;
  height: 56px;
  font-size: 20px;
  border-radius: 16px;
  margin: 0 auto 14px;
}
.ui-login-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.ui-input {
  margin-top: 18px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--dim);
  font-size: 13px;
}
.ui-btn {
  margin-top: 10px;
  height: 42px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Grilla de extras ------------------------------------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mini {
  padding: 24px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
}
.section-paper .mini {
  background: var(--paper-card);
  border-color: var(--paper-line);
}
.mini-ico {
  font-size: 24px;
  margin-bottom: 14px;
}
.mini h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.mini p {
  color: var(--mid);
  font-size: 15px;
  line-height: 1.55;
}
.section-paper .mini p {
  color: var(--paper-mid);
}
@media (max-width: 960px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gamificación (lo que engancha al alumno) ------------------ */
.levels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}
.level {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--line-2);
  background: var(--card);
}
.level.bronce { color: #d9a066; }
.level.plata { color: #d4d4d8; }
.level.oro { color: #facc15; }
.level.platino { color: #a5f3fc; }
.level.diamante { color: #93c5fd; }
.level.leyenda {
  color: var(--ink);
  background: linear-gradient(100deg, var(--orange), var(--cream));
  border-color: transparent;
}

/* ---------- Precio ----------------------------------------------------- */
.price-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.price-card {
  position: relative;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 90, 31, 0.2), transparent 70%),
    var(--card);
  border: 1px solid rgba(255, 90, 31, 0.4);
  box-shadow: 0 40px 80px -40px rgba(255, 90, 31, 0.45);
}
.price-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.price-name {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}
.price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-per {
  color: var(--mid);
  font-size: 16px;
}
.price-note {
  margin-top: 8px;
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
}
.price-card .checks {
  margin: 24px 0 28px;
}
.price-fine {
  margin-top: 12px;
  text-align: center;
  color: var(--dim);
  font-size: 13.5px;
}
@media (max-width: 860px) {
  .price-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .price-card {
    padding: 26px;
  }
}
/* Celulares chicos (320px): el precio a 56px no entraba en la tarjeta. */
@media (max-width: 380px) {
  .price-card {
    padding: 24px 20px;
  }
  .price-amount {
    font-size: 42px;
  }
  .price {
    flex-wrap: wrap;
  }
}

/* Planes de gimnasio: dos tarjetas lado a lado */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  display: flex;
  flex-direction: column;
}
.plan.featured {
  background: var(--ink);
  color: var(--text);
  border-color: transparent;
}
.plan .price-amount {
  font-size: 46px;
}
.plan .price-per {
  color: inherit;
  opacity: 0.6;
}
.plan-desc {
  margin-top: 8px;
  color: var(--paper-mid);
  font-size: 15px;
}
.plan.featured .plan-desc {
  color: var(--mid);
}
.plan .checks {
  margin: 22px 0 28px;
  flex: 1;
}
.plan .checks li {
  color: inherit;
  font-size: 15px;
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 380px) {
  .plan {
    padding: 24px 20px;
  }
  .plan .price-amount {
    font-size: 40px;
  }
}

/* ---------- FAQ -------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.15s;
}
.section-paper .faq details {
  background: var(--paper-card);
  border-color: var(--paper-line);
}
.faq details[open] {
  border-color: var(--line-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 20px;
  font-weight: 600;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 22px 22px;
  color: var(--mid);
  font-size: 16px;
}
.section-paper .faq details p {
  color: var(--paper-mid);
}

/* ---------- CTA final -------------------------------------------------- */
.final {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 120%, rgba(255, 90, 31, 0.35), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--line);
}
.final .h2 {
  max-width: 14em;
  margin: 0 auto;
}
.final .sub {
  max-width: 34em;
  margin-inline: auto;
}
.final .brand-form {
  margin: 32px auto 0;
  text-align: left;
}

/* ---------- Puertas (home) -------------------------------------------- */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: 20px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line-2);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.door:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
}
.door-primary {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(255, 90, 31, 0.3), transparent 70%),
    var(--card);
  border-color: rgba(255, 90, 31, 0.45);
}
.door-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  color: var(--mid);
}
.door-primary .door-tag {
  background: var(--orange);
  color: var(--ink);
}
.door h2 {
  font-size: 26px;
  font-weight: 800;
}
.door p {
  color: var(--mid);
  font-size: 15.5px;
}
.door-cta {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  color: var(--orange-2);
}
@media (max-width: 640px) {
  .doors {
    grid-template-columns: 1fr;
  }
}

/* ---------- Formulario de contacto (gimnasios) ------------------------ */
.lead-form {
  padding: 28px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-form h2 {
  font-size: 24px;
  font-weight: 800;
}
.lead-form .ui-muted {
  margin-top: -6px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select {
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--mid) 50%),
    linear-gradient(135deg, var(--mid) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.form-fine {
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}
.form-ok {
  text-align: center;
  padding: 20px 0;
}
.form-ok h2 {
  margin-bottom: 8px;
}

/* ---------- Footer ----------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 120px;
  color: var(--dim);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer a {
  text-decoration: none;
  color: var(--mid);
}
.footer a:hover {
  color: var(--text);
}

/* ---------- CTA fija en el celular ------------------------------------ */
/* Aparece cuando el hero sale de pantalla: en el celular, el botón tiene que
   estar siempre a un toque, sin tener que volver arriba a buscarlo. */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.show {
  transform: translateY(0);
}
.sticky-cta-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--mid);
}
.sticky-cta-text b {
  display: block;
  color: var(--text);
  font-size: 14.5px;
}
@media (min-width: 861px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- WhatsApp flotante ----------------------------------------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.15s, bottom 0.25s;
}
.wa-float:hover {
  transform: scale(1.06);
}
/* Con la barra fija abierta, el botón sube para no taparla. */
body.has-sticky .wa-float {
  bottom: 96px;
}
@media (min-width: 861px) {
  body.has-sticky .wa-float {
    bottom: 18px;
  }
}

/* ---------- Aparición al hacer scroll --------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-card,
  .ph-flame {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
