@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #0a0c10;
  --bg-card: #13161f;
  --bg-card-hover: #1a1e2b;
  --bg-input: #171b26;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(0, 255, 136, 0.35); /* Cambia con el color flúor */
  --primary: #00ff88; /* Color Flúor dinámico */
  --primary-hover: #33ffa0;
  --primary-glow: rgba(0, 255, 136, 0.45);
  --primary-light: rgba(0, 255, 136, 0.15);
  --text-main: #f8f9fa;
  --text-muted: #949db0;
  --success: #25d366;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, var(--primary-light) 0%, transparent 60%);
  color: var(--text-main);
  line-height: 1.4;
  min-height: 100vh;
  padding-bottom: 70px;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 16px;
}

.container-sm {
  max-width: 480px;
}

/* Header Superior */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px 16px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 10px var(--primary-light);
}

/* Hero con Foto de Fondo del Local y Overlay Oscuro */
.hero-presentation {
  text-align: center;
  padding: 28px 16px 22px 16px;
  border-radius: var(--radius);
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background-color: #12151e;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow), 0 0 20px var(--primary-light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.78) 0%, rgba(10, 12, 16, 0.95) 100%);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-presentation h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.hero-presentation h1 span {
  color: var(--primary);
  display: inline-block;
  text-shadow: 0 0 14px var(--primary-glow);
}

.hero-presentation p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.45;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Barra de Confianza Rápida */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 12px 0 16px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.trust-item strong {
  color: #fff;
}

/* Tarjetas */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.step-number {
  background: var(--primary);
  color: #0c0e12;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Pestañas */
.nav-tabs {
  display: flex;
  gap: 8px;
  background-color: var(--bg-card);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-gold);
}

/* Servicios Compactos */
.services-compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-compact-card {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-compact-card:hover {
  border-color: var(--border-gold);
}

.service-compact-card.selected {
  border-color: var(--primary);
  background: linear-gradient(145deg, #1c212d 0%, var(--primary-light) 100%);
  box-shadow: 0 0 14px var(--primary-glow);
}

.service-compact-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-compact-info {
  flex: 1;
  min-width: 0;
}

.service-compact-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-compact-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.service-compact-duration {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.service-compact-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
  flex-shrink: 0;
  text-shadow: 0 0 8px var(--primary-light);
}

/* Barberos Compactos */
.barbers-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.barber-compact-card {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.barber-compact-card.selected {
  border-color: var(--primary);
  background: linear-gradient(145deg, #1c212d 0%, var(--primary-light) 100%);
  box-shadow: 0 0 12px var(--primary-glow);
}

.barber-compact-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 8px var(--primary-light);
  flex-shrink: 0;
}

.barber-compact-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.barber-compact-role {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
}

/* Horarios */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.time-slot {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 2px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-slot:hover {
  border-color: var(--primary);
}

.time-slot.selected {
  background-color: var(--primary);
  color: #0c0e12;
  font-weight: 800;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Selector de Paleta Flúor */
.fluor-palette-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px 0;
}

.fluor-color-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.fluor-color-btn:hover {
  transform: scale(1.15);
}

.fluor-color-btn.active {
  border-color: #ffffff;
  transform: scale(1.18);
  box-shadow: 0 0 18px currentColor;
}

.fluor-color-btn.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0c0e12;
  font-weight: 900;
  font-size: 18px;
}

/* Formularios */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-input, .form-select {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-light);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #0c0e12;
  box-shadow: 0 0 14px var(--primary-glow);
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 20px var(--primary);
}

.btn-block {
  width: 100%;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease;
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* Métricas del admin */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
}

.stat-val {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
  margin-top: 2px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: #151821;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 22px;
  box-shadow: 0 20px 30px rgba(0,0,0,0.8);
}

/* ==========================================================================
   ESTILOS DE PROMOCIONES Y CORTES DESTACADOS
   ========================================================================== */
.service-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #0c0e12;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 0 10px var(--primary-glow);
  margin-bottom: 4px;
}

.service-compact-card.is-promo {
  border: 1.5px solid var(--primary);
  background: linear-gradient(135deg, rgba(22, 25, 31, 0.95) 0%, var(--primary-light) 100%);
  box-shadow: 0 0 12px var(--primary-light);
}

/* ==========================================================================
   ESTILOS DEL CARTEL QR PARA MOSTRADOR & IMPRESIÓN
   ========================================================================== */
.qr-poster-preview {
  background: #ffffff;
  color: #111827;
  padding: 26px 20px;
  border-radius: 16px;
  text-align: center;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 16px 36px rgba(0,0,0,0.6);
  border: 4px solid var(--primary);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.qr-poster-title {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.qr-poster-sub {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 14px;
}

.qr-poster-box {
  background: #f8fafc;
  padding: 14px;
  border-radius: 14px;
  display: inline-block;
  margin-bottom: 12px;
  border: 2px dashed #cbd5e1;
}

.qr-poster-img {
  width: 190px;
  height: 190px;
  display: block;
}

.qr-poster-cta {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.qr-poster-steps {
  display: flex;
  justify-content: space-around;
  font-size: 11px;
  color: #475569;
  font-weight: 600;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  margin-top: 8px;
}

/* Reglas de Impresión (@media print) */
@media print {
  body * {
    visibility: hidden !important;
  }
  .print-active, .print-active * {
    visibility: visible !important;
  }
  .print-active {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 24px !important;
    background: #ffffff !important;
    color: #000000 !important;
    display: block !important;
    z-index: 999999 !important;
    border: 2px solid #000 !important;
  }
  .no-print {
    display: none !important;
  }
}

