/* ============================================================
   TorcuatoGo — Estilos propios
   (Tailwind cubre la mayoría, acá van los extras)
   ============================================================ */

/* Fuentes */
body { font-family: 'DM Sans', sans-serif; }
h1, h2, h3, h4, h5, h6, .font-sora { font-family: 'Sora', sans-serif; }

/* Scrollbar oculta */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Truncar texto a N líneas */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skeleton loading shimmer */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

/* Pin logo animado */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.pulse-dot { animation: pulse-dot 2s infinite; }

/* Transición suave en cards */
.card-comercio {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-comercio:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
}

/* Badge plan */
.badge-premium  { background: #fef3c7; color: #92400e; }
.badge-basico   { background: #f1f5f9; color: #475569; }
.badge-abierto  { background: #d1fae5; color: #065f46; }
.badge-cerrado  { background: #fee2e2; color: #991b1b; }
.badge-turnos   { background: #fee2e2; color: #991b1b; }
.badge-promo    { background: #ffedd5; color: #9a3412; }

/* Input focus ring */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Botón principal */
.btn-primary {
  background: #b91c1c;
  color: white;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-primary:hover { background: #991b1b; }

/* Overlay modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-box {
  background: white;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 680px;
  margin: auto;
}

/* Toast de notificaciones */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}
