/* --- VARIABLES OFICIALES CONSMOR BARBERÍA (AZUL, DORADO, BLANCO, NEGRO, ROJO) --- */
:root {
  --bg-main: #05070a;
  --card-bg: rgba(12, 18, 28, 0.92);
  --border-color: rgba(255, 255, 255, 0.12);
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-blue: #1b6ca8;
  --accent-blue-hover: #155280;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --color-red: #dc2626;
  --color-black: #05070a;
  --radius: 16px;

  /* Aliases de soporte */
  --bg-principal: var(--bg-main);
  --bg-tarjeta: var(--card-bg);
  --bg-input: rgba(18, 25, 38, 0.95);
  --dorado: var(--accent-gold);
  --texto-blanco: var(--text-primary);
  --texto-mutado: var(--text-secondary);
  --rojo-eliminar: var(--color-red);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1rem;
  line-height: 1.4;
}

body.auth-centered-mode {
  justify-content: center;
  padding-top: 0;
}

#app,
.main-wrapper {
  width: 100%;
  max-width: 500px;
  padding: 0 1rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- VISTAS Y ANIMACIÓN PANTALLA CARGA (LOADING) --- */
.view {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  width: 100%;
}

.view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.brand-spinner {
  width: 55px;
  height: 55px;
  border: 4px solid rgba(27, 108, 168, 0.2);
  border-top-color: var(--accent-gold);
  border-right-color: var(--accent-blue);
  border-radius: 50%;
  animation: spinner-rot 0.8s linear infinite;
}

@keyframes spinner-rot {
  to { transform: rotate(360deg); }
}

#loading-text {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- NOTIFICACIONES TOAST PERSONALIZADAS --- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.toast-card {
  background: var(--card-bg);
  border: 1px solid var(--accent-gold);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  animation: slideInToast 0.3s ease forwards;
}

.toast-card.error {
  border-color: var(--color-red);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- LOGO ESTÁTICO SIN ANIMACIONES --- */
.auth-logo-ring {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.2rem auto;
  border-radius: 50%;
  padding: 4px;
  background: var(--accent-blue);
  box-shadow: 0 0 15px rgba(27, 108, 168, 0.4);
}

.auth-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--color-black);
}

/* --- HEADER SUPERIOR --- */
.top-navbar {
  position: sticky;
  top: 0.5rem;
  z-index: 100;
  width: 100%;
  background: rgba(12, 18, 28, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--accent-gold);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-text h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- ANIMACIÓN DE BORDES EN BOTONES Y QR --- */
.btn-primary,
.btn-secondary,
.btn-logout,
.tab-btn,
.nav-btn,
.qr-container {
  position: relative;
  border: none;
  border-radius: 12px;
  background-clip: padding-box;
  transition: transform 0.15s ease;
}

.btn-primary::before,
.btn-secondary::before,
.btn-logout::before,
.tab-btn::before,
.nav-btn::before,
.qr-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue), var(--color-red), var(--accent-gold));
  background-size: 300% 300%;
  border-radius: 14px;
  z-index: -1;
  animation: animatedBorder 4s linear infinite;
}

@keyframes animatedBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Estilos Específicos de Botones */
.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent-gold);
  color: var(--color-black);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-logout {
  background: var(--bg-input);
  color: var(--color-red);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- MENÚS Y NAVEGACIÓN --- */
.nav-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 1rem;
}

.nav-tabs .tab-btn {
  flex: 1;
  justify-content: center;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  text-align: center;
}

.nav-menu {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  flex-shrink: 0;
  background: var(--bg-input);
  color: var(--text-secondary);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
}

.nav-btn.active, .tab-btn.active {
  background: var(--accent-blue);
  color: var(--text-primary);
}

.badge-alert {
  background: var(--color-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* --- TARJETAS DE CONTENIDO --- */
.auth-card,
.content-card,
.card-container,
.search-box {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  width: 100%;
}

.brand-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-top: 0.25rem;
}

/* --- ESTRUCTURA Y ESCUDO DE NIVEL CLIENTE --- */
.client-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  padding: 0 4px;
}

.client-header-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-align: left;
}

/* ==========================================================================
   MEJORAS 1 AL 3: DISEÑO DE ESCUDO E ILUMINACIÓN SEGÚN NIVEL
   ========================================================================== */

/* 1 y 2. Contenedor del Escudo en la Vista del Cliente (Hero) */
.client-trophy-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  margin-bottom: 15px;
  position: relative;
}

/* 1 y 2. Escudo SVG e Iluminación perimetral con el color del nivel */
.shield-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  /* Iluminación intensa alrededor del escudo basada en el color asignado */
  filter: drop-shadow(0 0 18px currentColor) drop-shadow(0 0 35px rgba(255, 255, 255, 0.15));
  transition: filter 0.4s ease, transform 0.3s ease;
}

.shield-container:hover {
  transform: scale(1.05);
}

.shield-container svg {
  display: block;
  width: 110px;
  height: 120px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

/* Insignia del Nivel (Nombre debajo del Escudo) */
.level-badge-hero {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-gold, #f59e0b);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  background: rgba(15, 15, 17, 0.85);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(4px);
}

/* --- REDISEÑO DE TARJETA Y MATRIZ DE SELLOS --- */
.stamp-card-wrapper {
  background: var(--card-bg);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(27, 108, 168, 0.15);
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-align: center;
}

#reward-statement {
  font-weight: 800;
  color: var(--accent-gold);
  font-size: 13.5px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

/* ANIMACIÓN DE MÁXIMO NIVEL ALCANZADO */
.max-level-anim {
  display: inline-block;
  animation: maxLevelPulse 1.2s infinite alternate ease-in-out;
  color: var(--accent-gold) !important;
  font-weight: 800;
}

@keyframes maxLevelPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
  }
  100% {
    transform: scale(1.08);
    text-shadow: 0 0 14px rgba(245, 158, 11, 0.9);
  }
}

.grid-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.stamp-item {
  aspect-ratio: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.stamp-item .material-icons {
  font-size: 22px;
}

.stamp-item.active {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0d3b66 100%);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  transform: scale(1.02);
}

.stamp-item.active .material-icons {
  filter: drop-shadow(0 0 4px var(--accent-gold));
}

#client-total-stats {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 10px;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
}

/* --- FORMULARIOS --- */
.form-group {
  margin-bottom: 1.1rem;
  width: 100%;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-gold);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.auth-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--accent-gold);
  font-size: 0.85rem;
  text-decoration: none;
}

/* --- TARJETA DE CÓDIGO QR --- */
.qr-container {
  text-align: center;
  margin: 15px auto;
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  max-width: 190px;
}

.qr-title {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 8px;
}

/* --- MODALES Y ANUNCIOS GENERALES CENTRADOS --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 90%;
  max-width: 450px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-announcement {
  max-width: 650px;
  width: 92%;
  padding: 1.25rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
}

/* --- ANUNCIOS GENERALES DE TEXTO CENTRADOS Y REPRODUCTOR DE VIDEO RESPONSIVO --- */
.slider-card {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.slider-card.text-only,
.detail-announcement-content.text-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  min-height: 180px;
  width: 100%;
}

.modal-video-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.modal-video-player {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background-color: var(--accent-gold);
  width: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px var(--accent-gold);
}
/* --- SECCIÓN DE RESEÑAS CON ESTRELLAS Y BARRAS --- */
.star-rating-picker {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.star-btn {
  font-size: 32px;
  color: #4b5563;
  cursor: pointer;
}

.star-btn.active {
  color: var(--accent-gold);
}

.reviews-summary-box {
  width: 100%;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent-gold);
}

/* --- HISTORIAL DE SELLOS --- */
.stamp-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.stamp-history-item {
  background: var(--bg-input);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-gold);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- CELEBRACIÓN --- */
.celebration-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(5, 7, 10, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.celebration-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.celebration-card {
  background: var(--card-bg);
  border: 2px solid var(--accent-gold);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
}

.client-footer {
  margin-top: 1rem;
  text-align: center;
}

.socials-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon-btn {
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   ANIMACIONES DEL ESCUDO CONFIGURABLES POR EL BARBERO
   ========================================================================== */

/* Estático */
.animate-none {
  animation: none !important;
}

/* Pulso Destello */
.animate-pulse {
  animation: shieldPulse 2s infinite ease-in-out;
}

@keyframes shieldPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 16px currentColor);
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 28px currentColor) drop-shadow(0 0 45px currentColor);
  }
}

/* Rebote */
.animate-bounce {
  animation: shieldBounce 2s infinite ease-in-out;
}

@keyframes shieldBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Brillo Dorado / Resplandor Intenso */
.animate-glow {
  animation: shieldGlow 2.5s infinite alternate ease-in-out;
}

@keyframes shieldGlow {
  0% {
    filter: drop-shadow(0 0 12px currentColor);
  }
  100% {
    filter: drop-shadow(0 0 32px currentColor) drop-shadow(0 0 55px currentColor);
  }
}

/* Flotante */
.animate-float {
  animation: shieldFloat 3.5s infinite ease-in-out;
}

@keyframes shieldFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(1.5deg);
  }
}

/* Giro Lento */
.animate-spin-slow {
  animation: shieldSpinSlow 12s infinite linear;
}

@keyframes shieldSpinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   MEJORA 1: CARRUSEL DE NOVEDADES Y PUNTOS ILUMINADOS (DOTS)
   ========================================================================== */
.announcement-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.announcement-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

.announcement-slide.active {
    display: block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-gold, #f59e0b);
    box-shadow: 0 0 10px var(--accent-gold, #f59e0b);
    transform: scale(1.25);
}

/* ==========================================================================
   MEJORA 2: SÍGUENOS Y CONTÁCTANOS FIJADO EN LA PARTE INFERIOR
   ========================================================================== */
#view-client {
    padding-bottom: 85px; /* Espacio de reserva para no tapar el contenido */
}

.client-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #121216;
    border-top: 1px solid var(--border-color, #2a2a30);
    padding: 10px 15px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.6);
}

.socials-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-input, #1c1c22);
    border: 1px solid var(--border-color, #3a3a42);
    color: var(--accent-gold, #f59e0b);
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.social-btn-link:hover {
    transform: translateY(-2px);
    background: var(--accent-blue, #2563eb);
    color: #ffffff;
}

/* ==========================================================================
   MEJORA 3: MEDALLAS DISPONIBLES EN FORMATO 2x2 Y DESLIZABLE
   ========================================================================== */
.medals-slider-wrapper {
    width: 100%;
    position: relative;
}

.medals-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 10px;
}

.medals-slider-container::-webkit-scrollbar {
    display: none;
}

.medals-grid-page {
    min-width: 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    box-sizing: border-box;
}

/* ==========================================================================
   MEJORA 4: TARJETA DE SELLOS DESLIZABLE (MÁXIMO 20 SELLOS POR TARJETA)
   ========================================================================== */
.stamps-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.stamps-slider-container::-webkit-scrollbar {
    display: none;
}

.stamps-page-card {
    min-width: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
}

/* =========================================================
   1. AJUSTE DEL CÓDIGO QR A SU CUADRO (REQUERIMIENTO 2)
   ========================================================= */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--bg-input, #1a1a20);
    border: 1px solid var(--border-color, #2a2a30);
    border-radius: 12px;
    max-width: 260px;
    margin: 15px auto;
    box-sizing: border-box;
}

#client-qr {
    width: 100%;
    max-width: 190px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    margin: 10px auto 0 auto;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
    box-sizing: border-box;
}

/* =========================================================
   2. DETALLE DE ANUNCIOS EN PANEL BARBERO (REQUERIMIENTO 3)
   ========================================================= */
.barber-event-card {
    background: var(--bg-input, #1a1a20);
    border: 1px solid var(--border-color, #2a2a30);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.barber-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.barber-event-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold, #f59e0b);
    border: 1px solid var(--accent-gold, #f59e0b);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.barber-event-media-preview {
    width: 100%;
    max-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 6px;
    background: #000;
}

.barber-event-media-preview img,
.barber-event-media-preview video {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* =========================================================
   3. DISEÑO DE MEDALLAS EN PANEL BARBERO (REQUERIMIENTO 4)
   ========================================================= */
.barber-level-card {
    background: var(--bg-input, #1a1a20);
    border: 1px solid var(--border-color, #2a2a30);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.barber-level-medal-preview {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
}