/* Burbuja flotante de WhatsApp solo en móvil */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.whatsapp-float:hover {
  background: #128c7e;
  color: #fff;
  text-decoration: none;
}
@media (min-width: 768px) {
  .whatsapp-float { display: none !important; }
}
/* --- MEJORAS VISUALES MENU MOVIL --- */
@media (max-width: 576px) {
  .navbar {
    background: #111 !important;
    border-bottom: 3px solid #ffff00;
  }
  .navbar-toggler {
    border: 2px solid #ffff00 !important;
    background: #222 !important;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(255,255,0,0.2);
  }
  .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='yellow' stroke-width='3' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    width: 2rem;
    height: 2rem;
  }
  .offcanvas.offcanvas-end#mainMenu {
    background: #222 !important;
    color: #ffff00 !important;
    border-left: 3px solid #ffff00;
    box-shadow: 0 0 20px #ffff00;
  }
  .offcanvas.offcanvas-end#mainMenu .nav-link {
    color: #ffff00 !important;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 rgba(255,255,0,0);
    display: flex;
  }
  .offcanvas.offcanvas-end#mainMenu .nav-link.active,
  .offcanvas.offcanvas-end#mainMenu .nav-link:hover {
    background: #ffff00 !important;
    color: #222 !important;
    box-shadow: 0 0 10px #ffff00;
  }
  .offcanvas-header, .offcanvas-title {
    color: #ffff00 !important;
  }
  .btn-close {
    background-color: #ffff00 !important;
    border-radius: 50%;
    border: 2px solid #222;
  }
}
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Space+Grotesk:wght@400;600&display=swap');

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #ffff00, 0 0 0 0.25rem #ffff00;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: radial-gradient(circle at top, #111 0%, #000 55%, #000 100%);
  color: #ffff00;
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', 'Space Grotesk', 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
}

/* Responsive helpers */
.table-responsive { /* Bootstrap already handles this; ensure spacing */
  margin-bottom: 1rem;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 10px 0;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.06);
  z-index: 10;
}

.form-group:last-child {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
    margin-bottom: 8px;
  }
}

/* Enhanced design with yellow and white */
.navbar {
  background: linear-gradient(90deg, #ffff00 0%, #e6e600 100%) !important;
  border-bottom: 3px solid #000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand, .nav-link {
  color: #000 !important;
  font-weight: bold;
}

.navbar-brand:hover, .nav-link:hover {
  color: #333 !important;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.hero-section {
  background: linear-gradient(135deg, #000 0%, #1a1a00 50%, #000 100%);
  padding: 120px 0;
  text-align: center;
  color: #ffff00;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #ffff00;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffff00" opacity="0.1"/></svg>') repeat;
  opacity: 0.3;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffff00;
  text-shadow: 2px 2px 8px rgba(255,255,0,0.5), 0 0 20px rgba(255,255,0,0.3);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-section p {
  font-size: 1.8rem;
  color: #ffff00;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.3s both;
  text-shadow: 0 0 10px rgba(255,255,0,0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workout-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #000 100%);
  border: 2px solid #ffff00;
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  color: #ffff00;
  box-shadow: 0 10px 30px rgba(255,255,0,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.workout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #ffff00;
  box-shadow: 0 0 15px rgba(255,255,0,0.5);
}

.workout-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255,255,0,0.5);
  border-color: #fff;
}

.workout-card h3 {
  color: #ffff00;
  background: transparent;
  padding: 10px 15px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255,255,0,0.5);
}

.workout-card p {
  color: #ffff00;
}

.btn-primary {
  background: linear-gradient(45deg, #ffff00 0%, #e6e600 100%);
  border: 2px solid #000;
  color: #000;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255,255,0,0.3);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #e6e600 0%, #cccc00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,0,0.4);
}

.btn-secondary {
  background: #000;
  border: 2px solid #ffff00;
  color: #ffff00;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #ffff00;
  color: #000;
  transform: translateY(-2px);
}

.footer {
  background: linear-gradient(90deg, #ffff00 0%, #e6e600 100%);
  color: #000;
  text-align: center;
  padding: 30px 0;
  font-weight: 500;
}

/* Floating back button */
.floating-back-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #ffff00 0%, #e6e600 100%);
  color: #000;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  border: 2px solid #000;
}

.floating-back-button:hover {
  background: linear-gradient(45deg, #e6e600 0%, #cccc00 100%);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.floating-back-button svg {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .floating-back-button {
    bottom: 10px;
    right: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

.table {
  background: #fff;
  color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.table thead th {
  background: #ffff00;
  color: #000;
  border: none;
  font-weight: 600;
}

.empty-state {
  border: 1px dashed #ffff00;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: #fff7b0;
  background: rgba(15, 15, 15, 0.6);
}

.action-buttons .btn {
  margin-right: 6px;
}

.badge-soft {
  background: #fff3a3;
  color: #000;
  border: 1px solid #d6d600;
  font-weight: 600;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.list-title {
  margin: 0;
  font-size: 2.2rem;
}

.list-meta {
  color: #fff1a6;
  font-size: 0.95rem;
}

.list-toolbar {
  background: linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 100%);
  border: 1px solid #ffff00;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.list-toolbar .form-label {
  color: #ffff00;
  font-weight: 600;
}

.list-toolbar .form-control,
.list-toolbar .form-select {
  background: #0f0f0f;
  border: 1px solid #3b3b00;
  color: #fff7b0;
}

.list-toolbar .form-control::placeholder {
  color: #b8b35a;
}

.list-toolbar .btn-outline-secondary {
  border-color: #3b3b00;
  color: #fff7b0;
}

.list-toolbar .btn-outline-secondary:hover {
  background: #ffff00;
  color: #000;
}

.table-card {
  background: #111;
  border: 1px solid #2b2b00;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.table-card .table {
  margin-bottom: 0;
}

.category-card .card-header {
  background: linear-gradient(90deg, #ffff00 0%, #d6d600 100%);
  color: #000;
  border-bottom: 2px solid #000;
}

.table tbody tr:hover {
  background: #f9f9f9;
}

.form-control {
  border: 2px solid #ffff00;
  border-radius: 10px;
  padding: 10px;
  transition: border-color 0.3s ease;
}

.form-select {
  border: 2px solid #ffff00;
  border-radius: 10px;
  padding: 10px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #e6e600;
  box-shadow: 0 0 10px rgba(255,255,0,0.5);
}

.form-select:focus {
  border-color: #e6e600;
  box-shadow: 0 0 10px rgba(255,255,0,0.5);
}

.form-text {
  color: #cccc00;
}

/* Cards and content styles for black background */
.card {
  background-color: #1a1a1a !important;
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
  box-shadow: 0 5px 15px rgba(255,255,0,0.2);
}

.card-body {
  color: #ffff00 !important;
}

.card-body h3, .card-body h4, .card-body h5 {
  color: #ffff00 !important;
  text-shadow: 0 0 10px rgba(255,255,0,0.3);
}

.card-body p, .card-body li {
  color: #ffff00 !important;
}

.card-header {
  background-color: #000;
  border-bottom: 2px solid #ffff00;
  color: #ffff00;
}

.card-title {
  color: #ffff00 !important;
}

.alert-info {
  background-color: #1a1a00 !important;
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
}

.text-muted {
  color: #cccc00 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffff00 !important;
}

.border-primary {
  border-color: #ffff00 !important;
}

/* Print styles */
@media print {
  /* Ocultar elementos innecesarios al imprimir */
  .navbar, .footer, .floating-back-button, .btn, button, .sticky-actions, form {
    display: none !important;
  }
  
  /* Ajustar tablas para impresi�n */
  .table-responsive {
    overflow: visible !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  /* Evitar saltos de p�gina en las tablas */
  table {
    page-break-inside: auto;
  }
  
  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  
  thead {
    display: table-header-group;
  }
  
  h1, h3, h5 {
    page-break-after: avoid;
  }
  
  /* Eliminar sombras y efectos visuales */
  * {
    box-shadow: none !important;
  }
}

/* Tema monocromático BoostGym: pensado para el logotipo blanco sobre fondo oscuro. */
:root {
  --bs-primary: #f5f5f5;
  --bs-primary-rgb: 245, 245, 245;
  --bg-page: #09090b;
  --bg-surface: #18181b;
  --bg-surface-raised: #27272a;
  --text-main: #f5f5f5;
  --text-muted-theme: #a1a1aa;
  --border-theme: #52525b;
}

body {
  background: radial-gradient(circle at top, #27272a 0%, var(--bg-page) 58%, #000 100%);
  color: var(--text-main);
}

.navbar, .navbar.bg-light {
  background: #09090b !important;
  border-bottom-color: #f5f5f5;
}

.navbar-brand, .navbar .nav-link, .navbar-brand:hover,
.navbar .nav-link:hover, .navbar .nav-link.active {
  color: #f5f5f5 !important;
}

.navbar-toggler, .offcanvas.offcanvas-end#mainMenu {
  border-color: #f5f5f5 !important;
  background-color: var(--bg-surface) !important;
  box-shadow: none;
}

.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='%23f5f5f5' stroke-width='3' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.offcanvas.offcanvas-end#mainMenu, .offcanvas.offcanvas-end#mainMenu .nav-link,
.offcanvas-header, .offcanvas-title {
  color: #f5f5f5 !important;
}

.offcanvas.offcanvas-end#mainMenu .nav-link.active,
.offcanvas.offcanvas-end#mainMenu .nav-link:hover {
  background: #f5f5f5 !important;
  color: #09090b !important;
  box-shadow: none;
}

.hero-section, .workout-card, .card, .modal-content, .dropdown-menu,
.table, .list-group-item {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-theme);
}

.hero-section {
  background: linear-gradient(135deg, #09090b 0%, #27272a 50%, #09090b 100%);
  border-bottom-color: #f5f5f5;
}

.hero-section h1, .hero-section p, .workout-card, .workout-card h1,
.workout-card h2, .workout-card h3, .text-primary, .navbar .text-dark {
  color: #f5f5f5 !important;
  text-shadow: none;
}

.btn-primary {
  background: #f5f5f5 !important;
  border-color: #f5f5f5 !important;
  color: #09090b !important;
  box-shadow: none;
}

.btn-primary:hover, .btn-primary:focus {
  background: #d4d4d8 !important;
  border-color: #d4d4d8 !important;
  color: #09090b !important;
}

.btn-outline-primary, .border-primary {
  border-color: #f5f5f5 !important;
  color: #f5f5f5 !important;
}

.btn-outline-primary:hover {
  background: #f5f5f5 !important;
  border-color: #f5f5f5 !important;
  color: #09090b !important;
}

.bg-primary { background-color: var(--bg-surface-raised) !important; }

.form-control, .form-select, .form-control:disabled, .form-select:disabled {
  background-color: #09090b;
  color: var(--text-main);
  border-color: var(--border-theme);
}

.form-control:focus, .form-select:focus, .btn:focus, .btn:active:focus,
.btn-link.nav-link:focus, .form-check-input:focus {
  border-color: #f5f5f5;
  box-shadow: 0 0 0 .2rem rgba(245, 245, 245, .28);
}

.table > :not(caption) > * > *, .table-striped > tbody > tr:nth-of-type(odd) > * {
  color: var(--text-main);
  border-color: var(--border-theme);
}

.text-muted, .form-text { color: var(--text-muted-theme) !important; }

/* Reemplazo final del diseño amarillo anterior. */
body {
  background: #f4f6f8 !important;
  color: #1f2937 !important;
}

h1, h2, h3, h4, h5, h6,
.card-body, .card-body h3, .card-body h4, .card-body h5,
.card-body p, .card-body li, .card-title {
  color: #111827 !important;
  text-shadow: none !important;
}

.navbar, .navbar.bg-light {
  min-height: 74px;
  background: #111827 !important;
  border-bottom: 1px solid #374151 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .18) !important;
}

.navbar-brand, .navbar .nav-link,
.navbar-brand:hover, .navbar .nav-link:hover,
.navbar .nav-link.active, .navbar .nav-link.text-dark {
  color: #f9fafb !important;
}

.navbar .nav-link {
  margin: .3rem .12rem;
  padding: .65rem .85rem !important;
  border-radius: .5rem;
  transition: background-color .18s ease, color .18s ease;
  transform: none !important;
}

.navbar .nav-link:hover {
  background: #374151;
  color: #fff !important;
}

.navbar .nav-link.active {
  background: #f9fafb !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.navbar .dropdown-menu {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16) !important;
}

.navbar .dropdown-item {
  color: #374151 !important;
  padding: .6rem .75rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.card, .hero-section, .workout-card, .modal-content,
.list-group-item, .table-card {
  background: #fff !important;
  color: #1f2937 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .07) !important;
}

.card {
  border-radius: .85rem !important;
}

.card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .11) !important;
}

.text-primary { color: #374151 !important; }
.text-muted, .form-text, .card .text-muted { color: #6b7280 !important; }

.btn-primary {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

.btn-primary:hover, .btn-primary:focus {
  background: #374151 !important;
  border-color: #374151 !important;
  color: #fff !important;
}

.btn-outline-primary {
  background: #fff !important;
  border-color: #374151 !important;
  color: #374151 !important;
}

.btn-outline-primary:hover {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

.bg-primary, .card-header.bg-primary {
  background: #111827 !important;
  color: #fff !important;
}

.card-header, .table thead th {
  background: #f8fafc !important;
  color: #111827 !important;
  border-color: #e5e7eb !important;
}

.form-control, .form-select, .form-control:disabled, .form-select:disabled {
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid #cbd5e1 !important;
}

.form-control:focus, .form-select:focus {
  border-color: #64748b !important;
  box-shadow: 0 0 0 .2rem rgba(100, 116, 139, .2) !important;
}

.table, .table > :not(caption) > * > *,
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #fff !important;
  color: #1f2937 !important;
  border-color: #e5e7eb !important;
}

.footer {
  background: #111827 !important;
  color: #d1d5db !important;
  border-top: 1px solid #374151 !important;
}

.footer a { color: #fff !important; }

/* Base visual compartida: los nuevos componentes deben usar estos tokens. */
:root {
  --boost-page: #f4f6f8;
  --boost-surface: #ffffff;
  --boost-surface-muted: #f8fafc;
  --boost-ink: #111827;
  --boost-ink-soft: #374151;
  --boost-muted: #6b7280;
  --boost-border: #e5e7eb;
  --boost-border-strong: #cbd5e1;
  --boost-brand: #111827;
  --boost-brand-hover: #374151;
  --boost-radius: .65rem;
  --boost-shadow: 0 4px 14px rgba(15, 23, 42, .07);
  --boost-shadow-hover: 0 8px 20px rgba(15, 23, 42, .11);
  --boost-space: .75rem;
}

body {
  background: var(--boost-page) !important;
  color: var(--boost-ink) !important;
}

.container-fluid,
.container-xl {
  --bs-gutter-x: 1.5rem;
}

.navbar {
  min-height: 64px;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid #374151 !important;
  box-shadow: var(--boost-shadow) !important;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  font-family: 'Barlow Condensed', 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  letter-spacing: .2px;
}

.navbar-brand img {
  width: 36px !important;
  height: 36px !important;
  margin-right: .35rem !important;
  border-radius: .5rem !important;
}

.card,
.modal-content,
.list-group-item,
.table-card {
  border-radius: var(--boost-radius) !important;
  box-shadow: var(--boost-shadow) !important;
}

.card:hover,
.table-card:hover {
  box-shadow: var(--boost-shadow-hover) !important;
}

.card-body {
  padding: 1rem !important;
}

.card-header {
  padding: .75rem 1rem !important;
  font-weight: 600;
}

.btn {
  border-radius: .45rem;
  font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn-primary,
.bg-primary,
.card-header.bg-primary {
  background: var(--boost-brand) !important;
  border-color: var(--boost-brand) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--boost-brand-hover) !important;
  border-color: var(--boost-brand-hover) !important;
}

.form-control,
.form-select {
  min-height: 2.5rem;
  border-radius: .45rem !important;
  border: 1px solid var(--boost-border-strong) !important;
}

.form-label {
  color: var(--boost-ink-soft) !important;
  font-weight: 600;
  margin-bottom: .35rem;
}

.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: .65rem .75rem;
}

.table thead th {
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.text-muted,
.form-text,
.card .text-muted {
  color: var(--boost-muted) !important;
}

@media (max-width: 767.98px) {
  .navbar {
    min-height: 58px;
  }

  .container-fluid,
  .container-xl {
    --bs-gutter-x: 1rem;
  }

  .card-body {
    padding: .85rem !important;
  }

  .list-header,
  .dashboard-header {
    align-items: stretch !important;
  }
}

