/* ============================================================
   PREMIER FITNESS CLUB — Estilos principales
   Tema: Oscuro / Dorado / Profesional
   Paleta Brand Guidelines 2025
   ============================================================ */

:root {
  /* ── Brand palette ───────────────────────────────────────── */
  --brand-obsidiana: #0a0a0a;   /* Negro Obsidiana  rgb(10,10,10)    */
  --brand-grafito:   #323232;   /* Gris Grafito     rgb(50,50,50)    */
  --brand-titanio:   #aaaaaa;   /* Titanio Brillante rgb(170,170,170) */
  --brand-cromo:     #c0c0c0;   /* Cromo Premier    rgb(192,192,192) */
  --brand-dorado:    #c9a34a;   /* Dorado de Lujo   rgb(201,163,74)  */
  --brand-blanco:    #ffffff;   /* Blanco Níveo     rgb(255,255,255) */

  /* ── Role mappings ───────────────────────────────────────── */
  --color-bg:       #0a0a0a;
  --color-surface:  #181818;
  --color-surface2: #242424;
  --color-border:   #323232;
  --color-gold:     #c9a34a;
  --color-gold-dark:#a8862e;
  --color-white:    #ffffff;
  --color-gray:     #aaaaaa;
  --color-dark:     #323232;
  --color-danger:   #e74c3c;
  --color-success:  #27ae60;
  --color-info:     #3498db;
  --font-primary:   'Montserrat', 'Segoe UI', sans-serif;
  --transition:     0.3s ease;
  --radius:         8px;
  --shadow:         0 4px 24px rgba(0,0,0,0.6);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a { color: var(--color-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-gold { color: var(--color-gold) !important; }
.text-muted { color: var(--color-gray) !important; }
.bg-surface { background-color: var(--color-surface) !important; }
.bg-surface2 { background-color: var(--color-surface2) !important; }

/* ── Botones ──────────────────────────────────────────────── */
.btn-gold {
  background: var(--color-gold);
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-gold:hover {
  background: var(--color-gold-dark);
  color: #000;
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  padding: 10px 26px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}
.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #000;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  cursor: pointer;
  transition: background var(--transition);
  display: inline-block;
}
.btn-dark:hover { background: #444; color: var(--color-white); }

/* ── Site Header (wrapper fijo que contiene sub-marcas + navbar) ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  backdrop-filter: blur(10px);
}

/* ── Sub-marca selector ───────────────────────────────────── */
.submarca-selector {
  background: #0d0d0d;
  border-bottom: 1px solid #2a2a2a;
  padding: 5px 0;
  width: 100%;
}
.submarca-label {
  color: #555;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
  white-space: nowrap;
}
.submarca-link {
  color: #888;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 3px;
  transition: color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.submarca-link:hover  { color: var(--color-gold) !important; }
.submarca-link.active { color: var(--color-gold) !important; border-bottom: 1px solid var(--color-gold); }
.submarca-megatlon:hover { color: #e74c3c !important; }
.submarca-chicas:hover   { color: #ff69b4 !important; }
.submarca-f45:hover      { color: #ff6b35 !important; }
.submarca-divider {
  color: #333;
  font-size: 0.7rem;
  line-height: 1;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-premier {
  background: rgba(20, 20, 20, 0.98) !important;
  border-bottom: 2px solid var(--color-gold);
  padding: 0.5rem 0;
  position: relative;
  width: 100%;
}

.navbar-premier .navbar-brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-white) !important;
  letter-spacing: 1px;
}
.navbar-premier .navbar-brand span { color: var(--color-gold); }

.navbar-logo {
  height: 48px;
  width: auto;
  border-radius: 6px;
  transition: height 0.2s ease;
}
@media (max-width: 991.98px) {
  .navbar-logo { height: 40px; }
}
@media (max-width: 575.98px) {
  .navbar-logo { height: 34px; }
}

.navbar-premier .nav-link {
  color: #ccc !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0.9rem !important;
  transition: color var(--transition);
}
.navbar-premier .nav-link:hover,
.navbar-premier .nav-link.active { color: var(--color-gold) !important; }

.navbar-premier .btn-cta {
  background: var(--color-gold);
  color: #000 !important;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 4px;
  padding: 8px 20px !important;
  margin-left: 10px;
  transition: all var(--transition);
}
.navbar-premier .btn-cta:hover {
  background: var(--color-gold-dark);
  transform: translateY(-1px);
}

.navbar-toggler { border-color: var(--color-gold) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFD700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Sub-marca selector */
.submarca-selector {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.submarca-selector a {
  color: var(--color-gray);
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.submarca-selector a:hover { color: var(--color-gold); }
.submarca-selector .active { color: var(--color-gold); border-bottom: 1px solid var(--color-gold); }

/* Espacio para el header fijo (sub-marcas 30px + navbar 60px) */
.navbar-spacer { height: 94px; }

/* ── Hero Slider ──────────────────────────────────────────── */
.hero-slider { position: relative; width: 100%; overflow: hidden; }

.hero-slide {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 60%, rgba(26,26,26,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 750px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
}

.hero-label {
  display: inline-block;
  background: var(--color-gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}
.hero-title .highlight {
  color: var(--color-gold);
  display: block;
}

.hero-price {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel controls personalizados */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255,215,0,0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 60%;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--color-gold);
  width: 40px;
  height: 4px;
  border-radius: 2px;
}

/* ── Secciones ────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section-alt { background-color: var(--color-surface); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header .overline {
  display: inline-block;
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-header p { color: var(--color-gray); max-width: 600px; margin: 0 auto; }

.divider-gold {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 16px auto;
  border-radius: 2px;
}

/* ── Cards de Planes ──────────────────────────────────────── */
.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: 0 12px 40px rgba(255,215,0,0.15);
}
.plan-card.featured {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, var(--color-surface2) 0%, #171410 100%);
}
.plan-card.featured::before {
  content: 'MÁS POPULAR';
  position: absolute;
  top: 16px;
  right: -30px;
  background: var(--color-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 40px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.plan-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  background: rgba(255,215,0,0.15);
  color: var(--color-gold);
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  margin: 1rem 0;
}
.plan-price .currency { font-size: 1.2rem; vertical-align: super; }
.plan-price .period { font-size: 0.9rem; color: var(--color-gray); font-weight: 400; }

.plan-annual {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-bottom: 1.5rem;
}
.plan-annual .price-annual { color: var(--color-gold); font-weight: 700; }

.plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}
.plan-benefits li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
}
.plan-benefits li:last-child { border-bottom: none; }
.plan-benefits li .check { color: var(--color-gold); font-weight: 700; }

/* ── Cards de Clases ──────────────────────────────────────── */
.class-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  border: 1px solid var(--color-border);
}
.class-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--color-gold);
}

.class-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.class-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.class-card:hover .class-card-img img { transform: scale(1.08); }

.class-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.class-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.class-card-body {
  padding: 1.2rem;
}
.class-card-body h5 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.class-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--color-gray);
  margin-bottom: 0.8rem;
}
.class-meta span { display: flex; align-items: center; gap: 4px; }

.class-desc {
  font-size: 0.82rem;
  color: var(--color-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Filtros de Clases ────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
  justify-content: center;
}
.filter-tab {
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--color-border);
  color: var(--color-gray);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.filter-tab:hover,
.filter-tab.active {
  background: var(--color-gold);
  color: #000;
  border-color: var(--color-gold);
}

/* ── Cards de Productos ───────────────────────────────────── */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--color-gold);
}

.product-img {
  height: 220px;
  overflow: hidden;
  background: var(--color-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-img img { transform: scale(1.05); }

.product-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: auto;
  padding-bottom: 0.8rem;
}
.product-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
}
.product-price .currency { font-size: 0.8rem; }

.product-stock {
  font-size: 0.72rem;
  color: var(--color-gray);
  margin-bottom: 0.8rem;
}

/* ── Sedes ────────────────────────────────────────────────── */
.sede-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition);
}
.sede-card:hover { transform: translateY(-4px); }

.sede-card-header {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-surface2) 100%);
  padding: 1.5rem;
  border-bottom: 2px solid var(--color-gold);
}
.sede-card-body { padding: 1.5rem; }

.sede-info { list-style: none; padding: 0; margin: 0; }
.sede-info li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sede-info li:last-child { border-bottom: none; }
.sede-info li .icon { color: var(--color-gold); font-size: 0.9rem; margin-top: 2px; }

/* ── Flash Messages ───────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 100px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}
.flash-msg {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  animation: slideInRight 0.4s ease;
  border-left: 4px solid transparent;
  backdrop-filter: blur(10px);
}
.flash-msg.success { background: rgba(39,174,96,0.2); border-color: var(--color-success); color: #a8f0c6; }
.flash-msg.error   { background: rgba(231,76,60,0.2); border-color: var(--color-danger); color: #f9b9b2; }
.flash-msg.warning { background: rgba(255,215,0,0.15); border-color: var(--color-gold); color: #ffe570; }
.flash-msg.info    { background: rgba(52,152,219,0.2); border-color: var(--color-info); color: #acd8f4; }

/* ── Carrito Badge ────────────────────────────────────────── */
.cart-badge {
  background: var(--color-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: super;
  margin-left: 2px;
}

/* ── Formularios ──────────────────────────────────────────── */
.form-premier .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 4px;
}
.form-premier .form-control,
.form-premier .form-select {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-premier .form-control:focus,
.form-premier .form-select:focus {
  background: var(--color-surface2);
  border-color: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}
.form-premier .form-control::placeholder { color: var(--color-gray); }
.form-premier .form-select option { background: var(--color-surface2); }

/* Wizard de inscripción */
.wizard-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wizard-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gray);
  transition: all var(--transition);
}
.wizard-step.active .wizard-step-num,
.wizard-step.done .wizard-step-num {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #000;
}
.wizard-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-gray);
}
.wizard-step.active .wizard-step-label { color: var(--color-gold); }
.wizard-connector {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 8px;
  max-width: 60px;
}
.wizard-connector.done { background: var(--color-gold); }

/* ── Carnet Digital ───────────────────────────────────────── */
.carnet-wrapper {
  min-height: 100vh;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.carnet {
  background: linear-gradient(135deg, var(--color-bg) 0%, #1a1509 100%);
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(201,163,74,0.2);
}
.carnet-header {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  padding: 1.5rem;
  text-align: center;
}
.carnet-header .brand { font-size: 1.2rem; font-weight: 900; color: #000; letter-spacing: 2px; }
.carnet-header .sub { font-size: 0.7rem; color: #333; text-transform: uppercase; letter-spacing: 1px; }
.carnet-body { padding: 1.5rem; }
.carnet-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}
.carnet-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-surface2);
  border: 3px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.carnet-name { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: 0.3rem; }
.carnet-plan {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.carnet-info { font-size: 0.82rem; }
.carnet-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}
.carnet-info-row:last-child { border-bottom: none; }
.carnet-info-label { color: var(--color-gray); }
.carnet-info-value { font-weight: 700; }
.carnet-qr {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: 8px;
}
.carnet-qr-code {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 3px;
}
.carnet-status-active {
  display: inline-block;
  background: rgba(39,174,96,0.2);
  color: #a8f0c6;
  border: 1px solid #27ae60;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 30px;
  letter-spacing: 1px;
}
.carnet-status-pending {
  display: inline-block;
  background: rgba(255,215,0,0.15);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 30px;
  letter-spacing: 1px;
}

/* ── Tablas ───────────────────────────────────────────────── */
.table-dark-premier {
  background: var(--color-surface);
  color: var(--color-white);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.table-dark-premier thead th {
  background: var(--color-dark);
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border: none;
}
.table-dark-premier tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  font-size: 0.88rem;
}
.table-dark-premier tbody tr:hover { background: var(--color-surface2); }

/* ── Paginación ───────────────────────────────────────────── */
.pagination-premier {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--color-surface2);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.page-btn:hover { background: var(--color-gold); color: #000; border-color: var(--color-gold); }
.page-btn.active { background: var(--color-gold); color: #000; border-color: var(--color-gold); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── Badges de estado ─────────────────────────────────────── */
.badge-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 30px;
}
.badge-pending  { background: rgba(255,215,0,0.15); color: var(--color-gold); border: 1px solid var(--color-gold); }
.badge-active   { background: rgba(39,174,96,0.15); color: #7deba0; border: 1px solid #27ae60; }
.badge-completed{ background: rgba(39,174,96,0.15); color: #7deba0; border: 1px solid #27ae60; }
.badge-failed   { background: rgba(231,76,60,0.15); color: #f19a93; border: 1px solid #e74c3c; }
.badge-inactive { background: rgba(170,170,170,0.1); color: #999; border: 1px solid #555; }

/* ── Pago QR Info ─────────────────────────────────────────── */
.payment-info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.payment-info-box h5 { color: var(--color-gold); font-size: 1rem; margin-bottom: 1rem; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; }
.payment-method-card {
  background: var(--color-surface2);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  flex: 1;
  min-width: 130px;
}
.payment-method-card:hover,
.payment-method-card.selected {
  border-color: var(--color-gold);
  background: rgba(255,215,0,0.05);
}
.payment-method-card .method-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.payment-method-card .method-name { font-size: 0.8rem; font-weight: 700; }

/* ── Payment Method Tiles (new) ───────────────────────────── */
.pm-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 1.8rem;
}
@media (max-width: 600px) {
  .pm-tiles { grid-template-columns: repeat(3, 1fr); }
}
.pm-tile {
  background: var(--color-surface2);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 0.9rem 0.5rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s;
  user-select: none;
}
.pm-tile:hover { border-color: #888; background: rgba(255,255,255,0.04); }
.pm-tile.active {
  border-color: var(--color-gold);
  background: rgba(255,215,0,0.07);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.12);
}
.pm-tile-icon { font-size: 1.7rem; margin-bottom: 0.3rem; line-height: 1; }
.pm-tile-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px; color: #ccc; text-transform: uppercase; }
.pm-tile.active .pm-tile-label { color: var(--color-gold); }
.pm-tile-sub { font-size: 0.62rem; color: #666; margin-top: 2px; }

/* ── Credit Card Preview ──────────────────────────────────── */
.card-preview-wrap { perspective: 1200px; margin-bottom: 2rem; }
.card-preview {
  width: 100%; max-width: 360px; height: 210px;
  margin: 0 auto;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(.4,0,.2,1);
}
.card-preview.flipped { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0;
  border-radius: 18px; padding: 1.4rem 1.6rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,215,0,0.15);
  overflow: hidden;
}
.card-face::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,215,0,0.04);
  pointer-events: none;
}
.card-back { transform: rotateY(180deg); }
.card-chip {
  width: 38px; height: 28px;
  background: linear-gradient(135deg, #d4a843 0%, #f5d07a 40%, #c8941e 100%);
  border-radius: 5px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.card-chip::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 2px;
}
.card-number-display {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.card-label { font-size: 0.55rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.card-value { font-size: 0.82rem; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.card-brand-logo { width: 56px; }
.card-brand-logo svg { width: 100%; }
/* Card back */
.card-magstrip { background: #050505; height: 38px; margin: 0 -1.6rem 1rem; }
.card-cvv-strip {
  background: rgba(255,255,255,0.9); border-radius: 5px;
  padding: 6px 12px; text-align: right; margin-bottom: 0.8rem;
}
.card-cvv-val { font-family: 'Courier New', monospace; font-size: 1rem; color: #222; letter-spacing: 3px; }
.card-issuer-back { text-align: right; font-size: 0.62rem; color: rgba(255,255,255,0.4); }

/* Card input row */
.card-input-wrap { position: relative; }
.card-brand-badge {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 4px; align-items: center;
}
.card-brand-badge img, .card-brand-badge svg { height: 22px; width: auto; }
.card-brand-badge .brand-name {
  font-size: 0.72rem; font-weight: 800; color: #888; text-transform: uppercase;
}

/* ── QR Payment Panel ─────────────────────────────────────── */
.qr-box {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin: 0 auto 1rem;
}
.qr-panel-wrap {
  text-align: center;
  background: var(--color-surface2);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--color-border);
}
.qr-amount {
  font-size: 1.6rem; font-weight: 900; color: var(--color-gold);
  margin: 0.5rem 0 0.25rem;
}
.qr-concept { font-size: 0.78rem; color: #888; }

/* ── Proof Upload ─────────────────────────────────────────── */
.proof-drop {
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--color-surface2);
}
.proof-drop:hover, .proof-drop.drag-over { border-color: var(--color-gold); }
.proof-drop-icon { font-size: 2rem; margin-bottom: 0.5rem; color: #555; }
.proof-drop-text { font-size: 0.82rem; color: #888; }
.proof-drop-text strong { color: #ccc; }
.proof-preview-img {
  max-width: 100%; max-height: 180px; border-radius: 8px;
  border: 1px solid var(--color-border); margin-top: 0.8rem;
  object-fit: contain;
}

/* ── Security badge ──────────────────────────────────────── */
.payment-security-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: #666;
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.payment-security-note .lock { color: #27ae60; font-size: 1rem; }

/* ── Footer ───────────────────────────────────────────────── */
.footer-premier {
  background: #0d0d0d;
  border-top: 2px solid var(--color-gold);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-logo-img {
  height: 65px;
  width: auto;
  border-radius: 8px;
  display: block;
}
@media (max-width: 767.98px) {
  .footer-logo-img { height: 52px; }
}
@media (max-width: 575.98px) {
  .footer-logo-img { height: 44px; }
}

.footer-brand { font-size: 1.4rem; font-weight: 900; color: var(--color-white); }
.footer-brand span { color: var(--color-gold); }
.footer-desc { color: var(--color-gray); font-size: 0.88rem; margin-top: 0.8rem; }

.footer-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--color-gray); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-gold); }

.social-icons { display: flex; gap: 10px; margin-top: 1rem; }
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-icon:hover { background: var(--color-gold); color: #000; border-color: var(--color-gold); }

.newsletter-form { display: flex; gap: 8px; margin-top: 0.8rem; }
.newsletter-form input {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 0.85rem;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}
.newsletter-form input::placeholder { color: var(--color-gray); }
.newsletter-form button {
  background: var(--color-gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--color-gold-dark); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-gray);
}

/* ── Animaciones ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-slide { min-height: 70vh; }
  .section { padding: 50px 0; }
  .plan-card { margin-bottom: 1.5rem; }
  .flash-container { right: 8px; left: 8px; max-width: none; }
  .newsletter-form { flex-direction: column; }
  .carnet { max-width: 100%; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.8rem; }
  .plan-price { font-size: 2rem; }
}

/* ── Mi Cuenta ────────────────────────────────────────────── */
.account-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}
.account-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}
.membership-status-bar {
  background: var(--color-surface2);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-top: 6px;
}
.membership-status-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
  border-radius: 8px;
  transition: width 1s ease;
}

/* ── Sub-marcas ───────────────────────────────────────────── */
.submarca-megatlon { --accent: #e74c3c; }
.submarca-chicas   { --accent: #ff69b4; }
.submarca-f45      { --accent: #ff6b35; }

/* ── Modales Bootstrap — Tema Oscuro ──────────────────────── */
.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-white);
}
.modal-header {
  background: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  border-radius: 12px 12px 0 0;
  padding: 1rem 1.4rem;
}
.modal-header .modal-title { font-weight: 800; }
.modal-body { padding: 1.4rem; }
.modal-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.4rem;
  border-radius: 0 0 12px 12px;
}
.modal-backdrop { background: rgba(0,0,0,0.75); }

/* ── Accordion Bootstrap — Tema Oscuro ───────────────────── */
.accordion-button {
  background: var(--color-surface) !important;
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  background: var(--color-surface2) !important;
  color: var(--color-gold) !important;
}
.accordion-button::after {
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg);
}
.accordion-body {
  background: var(--color-surface);
  color: var(--color-gray);
  font-size: 0.88rem;
  border-top: 1px solid var(--color-border);
}

/* ── Botón eliminar (páginas públicas) ────────────────────── */
.btn-danger-sm {
  background: rgba(231,76,60,0.15);
  color: #f19a93;
  border: 1px solid #e74c3c;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-danger-sm:hover {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

/* ── Utilidades ───────────────────────────────────────────── */
.rounded-premier { border-radius: 12px !important; }
.shadow-gold { box-shadow: 0 4px 20px rgba(255,215,0,0.15); }
.border-gold { border-color: var(--color-gold) !important; }
.font-black { font-weight: 900 !important; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }

/* ═══════════════════════════════════════════════════
   PF VALIDATION STYLES
═══════════════════════════════════════════════════ */

/* Invalid state */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #e74c3c !important;
  background-image: none !important;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.15) !important;
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.25) !important;
}

/* Valid state */
.form-control.is-valid,
.form-select.is-valid {
  border-color: #27ae60 !important;
  background-image: none !important;
  box-shadow: none !important;
}
.form-control.is-valid:focus,
.form-select.is-valid:focus {
  border-color: #27ae60 !important;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.15) !important;
}

/* Error message */
.pf-feedback {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pf-feedback::before {
  content: '⚠';
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* Admin dark forms */
.admin-form .form-control.is-invalid,
.admin-form .form-select.is-invalid,
.modal-content .form-control.is-invalid,
.modal-content .form-select.is-invalid {
  border-color: #e74c3c !important;
  background: #1e1e1e !important;
}
.modal-content .pf-feedback {
  color: #e87171;
}

/* Password strength bar */
.pf-strength-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.pf-strength-track {
  flex: 1;
  height: 4px;
  background: var(--color-border, #333);
  border-radius: 2px;
  overflow: hidden;
}
.pf-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pf-strength-fill.weak   { background: #e74c3c; }
.pf-strength-fill.fair   { background: #e67e22; }
.pf-strength-fill.good   { background: #f1c40f; }
.pf-strength-fill.strong { background: #27ae60; }
.pf-strength-label {
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 52px;
  text-align: right;
}
.pf-strength-label.weak   { color: #e74c3c; }
.pf-strength-label.fair   { color: #e67e22; }
.pf-strength-label.good   { color: #f1c40f; }
.pf-strength-label.strong { color: #27ae60; }

/* Character counter */
.pf-counter {
  font-size: 0.72rem;
  color: #666;
  text-align: right;
  margin-top: 3px;
}
.pf-counter-warn { color: #e67e22; }

/* Server-side error blocks (from PHP redirect) */
.field-error-block {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.field-error-block::before { content: '⚠'; font-size: 0.72rem; }

/* Wizard completed step */
.wizard-step.completed .wizard-step-num {
  background: #27ae60;
  border-color: #27ae60;
  color: #fff;
}
.wizard-step.completed .wizard-step-num::after {
  content: '✓';
}

