/* ==========================================================================
   Barber Vico Booking — Soft Lock UI
   ========================================================================== */

/* --- Barra de cuenta atrás --- */
.bvb-lock-bar {
  margin: 16px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 2px solid #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
  padding: 14px 18px;
  font-family: inherit;
  color: #1f2937;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: bvb-lock-fadein 0.3s ease;
}

@keyframes bvb-lock-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bvb-lock-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bvb-lock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
}

/* Línea principal: icono + frase completa con contador inline */
.bvb-lock-line-main .bvb-lock-text {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.bvb-lock-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* Contador inline dentro de la frase — verde por defecto */
.bvb-lock-counter {
  font-weight: 800;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: #16a34a;
  display: inline;
}

/* --- Estado de advertencia (≤ 30 segundos) --- */
.bvb-lock-bar.bvb-lock-warning-state {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  animation: bvb-lock-pulse 1.3s ease-in-out infinite;
}

/* Contador en rojo cuando entra en estado crítico */
.bvb-lock-bar.bvb-lock-warning-state .bvb-lock-counter {
  color: #dc2626;
}

@keyframes bvb-lock-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25); }
  50%      { box-shadow: 0 4px 22px rgba(239, 68, 68, 0.45); }
}

/* --- Bloque de advertencia inferior (⚠️ + botón) --- */
.bvb-lock-warning {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #fecaca;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.bvb-lock-warning-text {
  font-weight: 700;
  color: #b91c1c;
  font-size: 14px;
  flex: 1 1 auto;
}

.bvb-lock-extend-btn {
  background: transparent;
  color: #b91c1c;
  border: 2px solid #b91c1c;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.bvb-lock-extend-btn:hover:not(:disabled) {
  background: #b91c1c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

.bvb-lock-extend-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Modal de expiración --- */
.bvb-lock-expired-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.bvb-lock-expired-content {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: bvb-lock-modal-in 0.25s ease;
}

@keyframes bvb-lock-modal-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.bvb-lock-expired-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.bvb-lock-expired-content h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.bvb-lock-expired-content p {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
}

.bvb-lock-expired-btn {
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bvb-lock-expired-btn:hover {
  transform: translateY(-1px);
  background: #16a34a;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);
}

/* --- Móvil --- */
@media (max-width: 480px) {
  .bvb-lock-bar { padding: 12px 14px; }
  .bvb-lock-line-main .bvb-lock-text { font-size: 15px; }
  .bvb-lock-counter { font-size: 18px; }
  .bvb-lock-line { font-size: 14px; }
  .bvb-lock-warning { flex-direction: column; align-items: stretch; }
  .bvb-lock-extend-btn { width: 100%; text-align: center; }
  .bvb-lock-expired-content { padding: 26px 20px; }
  .bvb-lock-expired-content h3 { font-size: 19px; }
}

