/* ===== Paleta del usuario ===== */
:root{
  --brand-orange:#F75C03;   /* Naranja Energía */
  --dark:#1E1E1E;           /* Gris muy oscuro */
  --blue-dark:#243140;      /* Azul oscuro */
  --white:#FFFFFF;          /* Blanco */
  --green:#00C896;          /* Verde Confirmación */
  --danger-red:#FF0000;     /* Rojo Cancelación */

  --bg:var(--dark);
  --text:var(--white);
  --muted:#C9C9CE;
  --primary:var(--brand-orange);
  --primary-2:#ff7e33;
  --ring:rgba(247,92,3,.35);
}

/* ===== Base ===== */
*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
  overflow-x:hidden;
}

/* ===== Barra roja con marquee ===== */
.promo{
  background:var(--danger-red);
  color:var(--white);
  font-weight:700;
  padding:10px 0;
  overflow:hidden;
  white-space:nowrap;
}
.promo .track{
  display:inline-block;
  padding-left:100%;
  animation:marquee 18s linear infinite;
}
@keyframes marquee{
  0%{transform:translateX(0)}
  100%{transform:translateX(-100%)}
}

/* ===== Navbar ===== */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 24px;
  max-width:1120px;
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:20px;
  color:var(--white);
  text-decoration:none;
  font-weight:800;
}
.logo-svg{
  width:100px;
  height:100px;
}
.menu{
  display:flex;
  gap:26px;
}
.menu a{
  color:#E7E7EB;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}
.menu a.active{
  border-bottom:2px solid var(--brand-orange);
  padding-bottom:4px;
}
.cta{
  border:2px solid rgba(255,255,255,.35);
  color:#fff;
  background:transparent;
  border-radius:28px;
  padding:10px 18px;
  font-weight:700;
  text-decoration:none;
  font-size:14px;
}
.cta:hover{
  border-color:hsl(27, 85%, 47%);
  transform:translateY(-1px);
}

/* ===== Hero ===== */
.hero{
  position:relative;
  max-width:1440px;
  margin:24px  40px;
  padding:24px;
  min-height:68vh;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(90deg, rgba(30,30,30,.82) 0%, rgba(30,30,30,.55) 40%, transparent 55%),
    url("../img/hero.png") center right/cover no-repeat;
  z-index:-1;
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:28px 0 48px;
  max-width:720px;
}
.kicker{
  color:var(--brand-orange);
  font-weight:900;
  letter-spacing:.6px;
  margin:0 0 10px;
  font-size:13px;
}
.title{
  font-family:Anton,Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;
  font-size:clamp(36px,6vw,88px);
  line-height:.94;
  margin:0 0 16px;
  text-transform:uppercase;
}
.subtitle{
  font-size:clamp(16px,2.4vw,20px);
  color:var(--muted);
  margin:4px 0 28px;
  max-width:52ch;
}
.btns{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.btn{
  border:0;
  cursor:pointer;
  font-weight:800;
  padding:14px 18px;
  border-radius:12px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:14px;

  /* Animaciones suaves para todos los botones */
  transition:
    transform .15s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  box-shadow:0 16px 40px rgba(247,92,3,.35);
}

/* Hover botón principal */
.btn.primary:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 20px 45px rgba(247,92,3,.5);
  background:linear-gradient(135deg,#ff8a3a,#ffb15f);
}

/* Estado clic (feedback rápido) */
.btn.primary:active,
.btn.secondary:active{
  transform:translateY(0) scale(0.97);
  box-shadow:0 10px 24px rgba(0,0,0,.4);
}

.btn.secondary{
  background:#15151a;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}

/* Hover botón secundario */
.btn.secondary:hover{
  transform:translateY(-2px);
  background:#1f2933;
  border-color:rgba(255,255,255,.4);
  color:#ffffff;
}

.note{
  margin-top:18px;
  color:#bdbdc5;
  font-size:13px;
}

/* ===== Sección de accesos rápidos ===== */
.quick{
  max-width:1120px;
  margin:32px auto 80px;
  padding:0 24px;
}

.quick-head h2{
  margin:0 0 6px;
  font-size:clamp(22px, 3.2vw, 28px);
  font-weight:800;
  letter-spacing:.5px;
}
.quick-head p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:14px;
}

/* Grid responsive: 4 columnas desktop, 2 en móvil */
.quick-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
}
@media (max-width:700px){
  .quick-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

.quick-item{
  display:grid;
  place-items:center;
  gap:10px;
  padding:18px 12px;
  text-decoration:none;
  color:var(--text);
  background:#15151a;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;

  /* Transiciones suaves para hover */
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    border-color .16s ease,
    background .18s ease,
    color .18s ease;
}

/* Hover: efecto “módulo de sistema” */
.quick-item:hover{
  transform:translateY(-3px) scale(1.02);
  border-color:rgba(255,255,255,.32);
  background:radial-gradient(circle at top left, rgba(247,92,3,.22), transparent 55%),
             #111319;
  box-shadow:0 18px 38px rgba(0,0,0,.55);
}

/* Enfoque accesible con anillo de color marca */
.quick-item:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px var(--ring);
}

/* Icono */
.quick-icon{
  width:64px;
  height:64px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow:0 10px 24px rgba(247,92,3,.35);

  transition:
    transform .18s ease,
    box-shadow .22s ease,
    background .2s ease;
}

.quick-icon svg{
  width:28px;
  height:28px;
  fill:#fff;
}

/* Hover sobre la tarjeta impacta también el icono */
.quick-item:hover .quick-icon{
  transform:translateY(-2px);
  background:linear-gradient(135deg,#ff8a3a,#ffb15f);
  box-shadow:0 16px 36px rgba(247,92,3,.55);
}

/* Etiqueta */
.quick-label{
  font-weight:800;
  letter-spacing:.3px;
  font-size:14px;
  text-align:center;
  transition:color .18s ease;
}

.quick-item:hover .quick-label{
  color:#ffffff;
}


/* ===== WhatsApp flotante ===== */
.wa{
  position:fixed;
  right:18px;
  bottom:18px;
  width:58px;
  height:58px;
  border-radius:50%;
  background:var(--green);
  display:grid;
  place-items:center;
  box-shadow:0 10px 26px rgba(0,0,0,.35);
  text-decoration:none;
  color:#00331f;
  font-size:28px;
  font-weight:1440;
  z-index:50;
}

/* ===== Responsive general ===== */
@media (max-width:1000px){
  .nav{
    padding:12px 16px;
    gap:12px;
  }
  .menu{
    gap:16px;
  }
  .hero{
    grid-template-columns:1fr;
    min-height:70vh;
    padding:24px 18px 40px;
  }
  .hero::after{
    background:
      linear-gradient(180deg, rgba(30,30,30,.8), rgba(30,30,30,.55) 40%, transparent 70%),
      url("../img/hero.jpg") center/cover no-repeat;
    opacity:.95;
  }
}
/* ===== Página genérica ===== */
.page{
  max-width:1120px;
  margin:24px auto 60px;
  padding:0 24px;
}

.page-header h1{
  margin:0 0 8px;
  font-size:clamp(26px, 3.5vw, 32px);
  font-weight:800;
}
.page-header p{
  margin:0 0 24px;
  color:var(--muted);
  font-size:14px;
}

/* ===== Filtros de rutinas ===== */
.routine-filters{
  margin-bottom:20px;
}
.routine-filters h2{
  margin:0 0 10px;
  font-size:16px;
  font-weight:700;
  color:#E7E7EB;
}

.pill-group{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.pill{
  border:1px solid rgba(255,255,255,.18);
  background:#15151a;
  color:#fff;
  border-radius:999px;
  padding:8px 16px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, transform .1s ease;
}
.pill:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.35);
}
.pill.active{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  border-color:transparent;
}

/* ===== Grid de rutinas (videos) ===== */
.routine-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
}
@media (max-width:800px){
  .routine-grid{
    grid-template-columns:1fr;
  }
}

.routine-card{
  background:#15151a;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  padding:16px 16px 18px;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}
.routine-card h3{
  margin:0 0 6px;
  font-size:15px;
  font-weight:700;
}
.routine-card p{
  margin:0 0 12px;
  font-size:13px;
  color:var(--muted);
}

/* Contenedor para mantener relación 16:9 en el video */
.video-wrapper{
  position:relative;
  width:100%;
  padding-top:56.25%; /* 16:9 */
  border-radius:14px;
  overflow:hidden;
  background:#000;
}
.video-wrapper iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

/* Utilidad para ocultar tarjetas según tipo */
.hidden{
  display:none;
}
/* ===== Panel de entrenador ===== */
.trainer-section{
  margin-top:32px;
  margin-bottom:32px;
}

.trainer-head h2{
  margin:0 0 4px;
  font-size:18px;
  font-weight:700;
}
.trainer-head p{
  margin:0 0 18px;
  font-size:13px;
  color:var(--muted);
}

/* Formulario */
.trainer-form{
  background:#15151a;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  padding:18px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:14px;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
}

.field-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.field-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}
@media (max-width:800px){
  .field-row{
    grid-template-columns:1fr;
  }
}

.field-group label{
  font-size:13px;
  font-weight:600;
}
.field-group input,
.field-group select,
.field-group textarea{
  background:#09090d;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  padding:8px 10px;
  font-size:13px;
  color:var(--text);
  font-family:inherit;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 2px var(--ring);
}
.field-group textarea{
  resize:vertical;
  min-height:70px;
}
.field-hint{
  font-size:11px;
  color:var(--muted);
}

/* Tabla de rutinas */
.table-wrapper{
  background:#15151a;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  padding:14px 14px 6px;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
  overflow-x:auto;
}

.trainer-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.trainer-table thead{
  background:#111118;
}
.trainer-table th,
.trainer-table td{
  padding:8px 10px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.trainer-table th{
  font-weight:700;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.4px;
  color:#d3d3dd;
}
.trainer-table tbody tr:hover{
  background:rgba(255,255,255,.02);
}

/* Badges de tipo */
.badge-type{
  font-weight:700;
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  text-align:center;
  display:inline-block;
}
.badge-fuerza{
  background:rgba(247,92,3,.15);
  color:#ffb38a;
}
.badge-cardio{
  background:rgba(0,200,150,.15);
  color:#9bf3d8;
}
.badge-hiit{
  background:rgba(255,255,255,.08);
  color:#ffffff;
}
.badge-movilidad{
  background:rgba(148,163,255,.15);
  color:#c7d2ff;
}

/* Botones y enlaces de tabla */
.link-video{
  color:#7dd3ff;
  text-decoration:none;
  font-weight:600;
  font-size:12px;
}
.link-video:hover{
  text-decoration:underline;
}

.table-btn{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  font-weight:600;
}
.table-btn-danger{
  background:rgba(255,0,0,.14);
  color:#ffb4b4;
}

/* Estado vacío */
.empty-state{
  margin:10px 4px 4px;
  font-size:12px;
  color:var(--muted);
}
/* ===== Página de autenticación (login / registro) ===== */
.auth-body{
  background: radial-gradient(circle at 0% 0%, rgba(247,92,3,.28), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(0,200,150,.18), transparent 50%),
              var(--dark);
}

.auth-wrapper{
  min-height:calc(100vh - 40px);
  max-width:1120px;
  margin:0 auto;
  padding:24px;
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:24px;
  align-items:center;
}

.auth-side{
  padding:24px 18px;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(0,0,0,.85), rgba(12,18,28,.96));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 45px rgba(0,0,0,.6);
}

.auth-logo-block{
  margin-bottom:18px;
}
.auth-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--white);
}
.auth-logo{
  width:56px;
  height:56px;
}
.auth-brand-text{
  font-family:Anton,Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;
  font-size:26px;
  letter-spacing:1px;
}
.auth-tagline{
  margin:8px 0 10px;
  color:var(--muted);
  font-size:13px;
  max-width:34rem;
}

.auth-bullets{
  list-style:none;
  padding:0;
  margin:0 0 18px;
  color:#E7E7EB;
  font-size:13px;
}
.auth-bullets li{
  display:flex;
  align-items:flex-start;
  gap:6px;
  margin-bottom:6px;
}
.auth-bullets li::before{
  content:"•";
  color:var(--primary);
  font-size:16px;
  line-height:1;
  margin-top:-1px;
}

.auth-footnote{
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.auth-footnote a{
  color:#7dd3ff;
  text-decoration:none;
  font-weight:600;
}
.auth-footnote a:hover{
  text-decoration:underline;
}

/* Tarjeta login/registro */
.auth-card{
  background:#15151a;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.16);
  padding:18px 18px 24px;
  box-shadow:0 18px 45px rgba(0,0,0,.7);
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Tabs (Iniciar sesión / Crear cuenta) */
.auth-toggle{
  display:flex;
  background:#09090d;
  padding:4px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  margin-bottom:6px;
}
.auth-tab{
  flex:1;
  border:0;
  background:transparent;
  color:#d4d4de;
  font-size:13px;
  font-weight:600;
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, transform .08s ease;
}
.auth-tab:hover{
  transform:translateY(-1px);
}
.auth-tab.active{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
}

/* Formularios */
.auth-form{
  display:none;
  flex-direction:column;
  gap:12px;
}
.auth-form.active{
  display:flex;
}

.auth-title{
  margin:4px 0 0;
  font-size:20px;
  font-weight:800;
}
.auth-subtitle{
  margin:2px 0 8px;
  font-size:13px;
  color:var(--muted);
}

.auth-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin:4px 0 6px;
}

.auth-check{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--muted);
}
.auth-check input[type="checkbox"]{
  width:14px;
  height:14px;
}

.auth-link{
  font-size:12px;
  color:#7dd3ff;
  text-decoration:none;
  font-weight:600;
}
.auth-link:hover{
  text-decoration:underline;
}

.auth-btn{
  width:100%;
  justify-content:center;
  margin-top:4px;
}

.auth-helper{
  margin:6px 0 0;
  font-size:12px;
  color:var(--muted);
}
.auth-inline-link{
  border:0;
  background:none;
  color:#7dd3ff;
  font-weight:600;
  font-size:12px;
  cursor:pointer;
  padding:0 2px;
}
.auth-inline-link:hover{
  text-decoration:underline;
}

/* Reuso de field-group / field-row del panel de entrenador */
.auth-form .field-group input,
.auth-form .field-group select,
.auth-form .field-group textarea{
  background:#09090d;
}

/* Responsive */
@media (max-width:900px){
  .auth-wrapper{
    grid-template-columns:1fr;
    padding:16px;
  }
  .auth-side{
    order:2;
  }
  .auth-card{
    order:1;
  }
}
@media (max-width:600px){
  .auth-side{
    padding:18px 14px;
  }
}
/* ===== Layout responsivo global (PC y pantallas grandes) ===== */

/* Contenedor general para secciones principales */
.nav,
.hero,
.quick,
.page {
  width: 100%;
  max-width: 1120px;          /* Ancho cómodo para monitores */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Ajuste de padding en pantallas más pequeñas */
@media (max-width: 900px){
  .nav,
  .hero,
  .quick,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Imágenes y iframes siempre adaptables al ancho disponible */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Evitar que nada se desborde horizontalmente */
body {
  overflow-x: hidden;
}

/* Tipografía ligeramente ajustada en pantallas muy grandes */
@media (min-width: 1600px){
  body {
    font-size: 15px;
  }
}

/* Tipografía ligeramente más compacta en pantallas más pequeñas de laptop */
@media (max-width: 1024px){
  body {
    font-size: 14px;
  }
}
/* ===== Barra de información del sitio ===== */
.info-bar{
  width:100%;
  background:#111118;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:10px 0;
  margin-top:8px;
}

.info-bar-inner{
  max-width:1120px;
  margin:0 auto;
  padding:0 24px;

  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  align-items:center;
  font-size:12px;
  color:var(--muted);
}

.info-item{
  position:relative;
  padding-left:12px;
}

/* Punto separador tipo "bullet" minimalista */
.info-item::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  color:var(--primary);
}

/* Primer ítem sin bullet, más destacado */
.info-item.strong{
  font-weight:700;
  color:#E7E7EB;
  padding-left:0;
}
.info-item.strong::before{
  content:"";
}

/* Ajustes en pantallas más pequeñas */
@media (max-width:700px){
  .info-bar-inner{
    padding:0 16px;
    gap:6px 12px;
  }
  .info-item{
    width:100%;
    padding-left:10px;
  }
  .info-item.strong{
    width:100%;
    padding-left:0;
  }
}
/* ===== Pantalla de gimnasios ===== */

.gyms-search{
  margin-top:12px;
  margin-bottom:18px;
}

.search-row{
  display:grid;
  grid-template-columns:2fr 1.4fr auto;
  gap:14px;
  align-items:flex-end;
}
@media (max-width:900px){
  .search-row{
    grid-template-columns:1fr;
  }
}

.search-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.search-label{
  font-size:13px;
  font-weight:600;
}
.search-input{
  background:#09090d;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  padding:9px 10px;
  font-size:13px;
  color:var(--text);
  font-family:inherit;
}
.search-input:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 2px var(--ring);
}
.search-hint{
  font-size:11px;
  color:var(--muted);
}

.search-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.search-button,
.search-reset{
  width:100%;
  justify-content:center;
  font-size:13px;
}

/* Layout mapa + lista */
.gyms-layout{
  display:grid;
  grid-template-columns:1.1fr 1.3fr;
  gap:20px;
  margin-top:10px;
}
@media (max-width:1000px){
  .gyms-layout{
    grid-template-columns:1fr;
  }
}

/* Mapa */
.gym-map h2{
  margin:0 0 4px;
  font-size:16px;
  font-weight:700;
}
.map-caption{
  margin:0 0 10px;
  font-size:12px;
  color:var(--muted);
}
.map-frame-wrapper{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 16px 40px rgba(0,0,0,.5);
}
#gym-map-frame{
  width:100%;
  height:320px;
  border:0;
}
@media (max-width:600px){
  #gym-map-frame{
    height:260px;
  }
}

/* Lista de gimnasios */
.gym-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.gym-list-head h2{
  margin:0;
  font-size:16px;
  font-weight:700;
}
.gyms-count{
  margin:2px 0 0;
  font-size:12px;
  color:var(--muted);
}

.gyms-empty{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
}

/* Tarjeta de gimnasio */
.gym-card{
  background:#15151a;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  padding:14px 14px 16px;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:
    transform .16s ease,
    box-shadow .22s ease,
    border-color .16s ease,
    background .18s ease;
}
.gym-card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.3);
  background:radial-gradient(circle at top left, rgba(247,92,3,.18), transparent 55%),
             #111319;
  box-shadow:0 20px 40px rgba(0,0,0,.6);
}

.gym-header-line{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.gym-header-line h3{
  margin:0;
  font-size:15px;
  font-weight:700;
}
.gym-location{
  margin:2px 0 0;
  font-size:12px;
  color:var(--muted);
}

.badge-cp{
  display:inline-block;
  margin-left:6px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-size:11px;
}

.gym-description{
  margin:0;
  font-size:13px;
  color:#d4d4de;
}

/* Tags (servicios) */
.gym-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.tag{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:#e5e5f0;
}

/* Acciones */
.gym-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:4px;
}
.gym-map-btn{
  font-size:12px;
  padding:8px 10px;
}
.gym-link{
  font-size:12px;
  color:#7dd3ff;
  text-decoration:none;
  font-weight:600;
}
.gym-link:hover{
  text-decoration:underline;
}

/* Ofertas y membresías */
.gym-offers{
  margin-top:6px;
  background:#09090d;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  padding:6px 10px;
}
.gym-offers summary{
  list-style:none;
  cursor:pointer;
  font-size:12px;
  color:#e5e5f0;
  font-weight:600;
}
.gym-offers summary::-webkit-details-marker{
  display:none;
}
.gym-offers summary::after{
  content:"▼";
  float:right;
  font-size:10px;
  color:var(--muted);
  transition:transform .16s ease;
}
.gym-offers[open] summary::after{
  transform:rotate(180deg);
}
.offers-wrapper{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.offer-row{
  padding:6px 8px;
  border-radius:10px;
  background:#111118;
  border:1px solid rgba(255,255,255,.1);
}
.offer-main{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.offer-name{
  font-size:12px;
  font-weight:600;
}
.offer-price{
  font-size:12px;
  font-weight:700;
  color:#fbbf77;
}
.offer-details{
  margin:4px 0 0;
  font-size:12px;
  color:var(--muted);
}
.btn-offer-select{
  margin-top:6px;
  font-size:12px;
  padding:8px 10px;
  justify-content:center;
}
.membership-layout{
  display:grid;
  grid-template-columns:1.1fr 1.1fr;
  gap:20px;
  margin-top:10px;
}
@media (max-width:900px){
  .membership-layout{
    grid-template-columns:1fr;
  }
}
.membership-note{
  margin:0 0 10px;
  font-size:12px;
  color:var(--muted);
}
.membership-summary{
  background:#15151a;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  padding:14px 16px;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
}
.membership-summary-card h3{
  margin:0 0 4px;
  font-size:16px;
}
.membership-line{
  margin:6px 0;
  font-size:13px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.membership-line span{
  color:var(--muted);
}
.membership-line strong{
  color:#e5e5f5;
}
.payment-layout{
  display:grid;
  grid-template-columns:1.1fr 1.1fr;
  gap:20px;
  margin-top:10px;
}
@media (max-width:900px){
  .payment-layout{
    grid-template-columns:1fr;
  }
}
.payment-summary{
  background:#15151a;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  padding:14px 16px;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
}
/* ===== Encabezado compacto de página ===== */
.page-header {
  max-width: 1120px;
  margin: 40px auto 20px;
  padding: 0 24px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.page-header p {
  font-size: 14px;
  color: var(--muted);
}

/* ===== Tarjetas de planes (memberships) ===== */
.plans-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.plan-card {
  background-color: #15151a;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 30px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

.plan-card h2 {
  color: var(--primary-2);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.plan-card p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--muted);
}

.plan-card .price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 20px;
}

.plan-card .btn {
  background-color: var(--primary);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}

.plan-card .btn:hover {
  background-color: var(--primary-2);
  color: var(--white);
}

/* ===== FAQ (support.html) ===== */
.faq-item {
  background: #15151a;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.faq-item p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== Formulario de soporte ===== */
.trainer-form {
  background: #15151a;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.trainer-form .field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trainer-form label {
  font-size: 13px;
  font-weight: 600;
}

.trainer-form input,
.trainer-form textarea {
  background: #09090d;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}

.trainer-form input:focus,
.trainer-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ring);
}

.trainer-form textarea {
  resize: vertical;
  min-height: 70px;
}

/* ===== Responsive ajustes ===== */
@media (max-width: 768px) {
  .plans-grid {
    flex-direction: column;
    align-items: center;
  }
  .plan-card {
    width: 90%;
  }
}
/* ===== Buscador de gimnasios ===== */
.gyms-search {
  max-width: 1120px;
  margin: 20px auto;
  padding: 0 24px;
}

.search-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr auto;
  gap: 14px;
  align-items: flex-end;
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-label {
  font-size: 13px;
  font-weight: 600;
}

.search-input {
  background: #09090d;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  padding: 9px 10px;
  font-size: 13px;
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ring);
}

.search-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== Layout mapa + lista ===== */
.gyms-layout {
  max-width: 1120px;
  margin: 20px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 20px;
}

.map-frame-wrapper {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

#gym-map-frame {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ===== Lista de gimnasios ===== */
.gym-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gym-card {
  background: #15151a;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  padding: 14px 14px 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  transition: transform .16s ease, box-shadow .22s ease;
}

.gym-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}

.gym-header-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.gym-header-line h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.gym-location {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.gym-description {
  margin: 0;
  font-size: 13px;
  color: #d4d4de;
}

.gym-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #e5e5f0;
}

.gym-actions {
  margin-top: 6px;
}
.gym-link {
  font-size: 12px;
  color: #7dd3ff;
  text-decoration: none;
  font-weight: 600;
}
.gym-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .search-row {
    grid-template-columns: 1fr;
  }
  .gyms-layout {
    grid-template-columns: 1fr;
  }
  #gym-map-frame {
    height: 260px;
  }
}
/* ===== Bloques de contacto ===== */
.about-block, .team-block, .features-block {
  background: #15151a;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.about-block h2,
.team-block h2,
.features-block h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.team-list, .features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-list li,
.features-list li {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}


.app-info h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.app-info p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.app-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

/* Responsive */
@media (max-width: 900px) {
  .app-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-info {
    order: 2;
  }
  .app-image {
    order: 1;
  }
}
