﻿/**
 * kuuni_brand.css — Clases de branding específicas de Küuni
 * Hotel & Spa Canino Premium | CDMX
 */

/* ═══════════════════════════════════════
   CATEGORÍAS DE MASCOTA POR PESO
═══════════════════════════════════════ */
.badge-categoria { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-mini        { background: #E2E8F0; color: #4A5568; }
.badge-middy       { background: #BEE3F8; color: #2B6CB0; }
.badge-maxi        { background: #C6F6D5; color: #276749; }
.badge-extra_grande{ background: #FEFCBF; color: #975A16; }
.badge-jumbo       { background: #FBF1EC; color: #7A3A23; }
.badge-na          { background: #EDF2F7; color: #718096; }

/* ═══════════════════════════════════════
   ETAPAS DE GROOMING — PIPELINE VISUAL
═══════════════════════════════════════ */
.etapa-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; }
.etapa-recibido   { background: #EDF2F7; color: #4A5568; }
.etapa-bano       { background: #EBF8FF; color: #2B6CB0; }
.etapa-secado     { background: #FFFFF0; color: #975A16; }
.etapa-corte      { background: #F0FFF4; color: #276749; }
.etapa-terminado  { background: #E9D8FD; color: #553C9A; }
.etapa-entregado  { background: #F0FFF4; color: #22543D; border: 1px solid #9AE6B4; }

/* ═══════════════════════════════════════
   ESTADOS DE AGENDA
═══════════════════════════════════════ */
.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; border: 1px solid transparent; }
.status-agendado   { background: #EBF4FF; color: #2B6CB0; border-color: #BEE3F8; }
.status-confirmado { background: #F0FFF4; color: #276749; border-color: #C6F6D5; }
.status-en_proceso { background: #FFFAF0; color: #975A16; border-color: #FEFCBF; }
.status-listo      { background: #F0FFF4; color: #22543D; border-color: #9AE6B4; }
.status-entregado  { background: #E9D8FD; color: #553C9A; border-color: #D6BCFA; }
.status-cancelado  { background: #FBF1EC; color: #7A3A23; border-color: #F5DBC8; }
.status-no_show    { background: #F7FAFC; color: #718096; border-color: #E2E8F0; }

/* ═══════════════════════════════════════
   NIVELES DE LEALTAD
═══════════════════════════════════════ */
.nivel-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.nivel-pup    { background: #94A3B8; color: white; }
.nivel-friend { background: #10B981; color: white; }
.nivel-vip    { background: #F59E0B; color: white; }
.nivel-elite  { background: #8B5CF6; color: white; }

/* ═══════════════════════════════════════
   CARDS PREMIUM KÜUNI
═══════════════════════════════════════ */
.kuuni-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44, 74, 62, 0.08);
  border: 1px solid rgba(44, 74, 62, 0.08);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.kuuni-card:hover {
  box-shadow: 0 6px 20px rgba(44, 74, 62, 0.14);
  transform: translateY(-1px);
}
.kuuni-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(44, 74, 62, 0.08);
}

/* ═══════════════════════════════════════
   MASCOTA CARD (ficha rápida)
═══════════════════════════════════════ */
.mascota-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #C4996C;
}
.mascota-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #F0F7F4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2C4A3E;
  font-size: 1.5rem;
  border: 2px solid #C4996C;
}
.mascota-nombre { font-size: 1.05rem; font-weight: 600; color: #1A2E26; }
.mascota-raza   { font-size: 0.82rem; color: #6B7280; }

/* ═══════════════════════════════════════
   PIPELINE DE GROOMING (kanban visual)
═══════════════════════════════════════ */
.grooming-pipeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.pipeline-col {
  min-width: 160px;
  background: #F8F5F0;
  border-radius: 10px;
  padding: 10px;
}
.pipeline-col-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: #4A5568;
}
.pipeline-item {
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  font-size: 0.85rem;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.pipeline-item:hover { box-shadow: 0 3px 8px rgba(44,74,62,0.12); }

/* ═══════════════════════════════════════
   ACCENTS Y UTILIDADES DE MARCA
═══════════════════════════════════════ */
.kuuni-paw         { color: #C4996C; }
.kuuni-green       { color: #2C4A3E; }
.kuuni-gold        { color: #C4996C; }
.kuuni-bg-green    { background: #2C4A3E; color: white; }
.kuuni-bg-gold     { background: #C4996C; color: white; }
.kuuni-bg-warm     { background: #F8F5F0; }
.kuuni-border      { border: 1px solid rgba(44, 74, 62, 0.15); }

/* Indicador de protocolo especial */
.protocolo-especial-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FBF1EC;
  color: #7A3A23;
  border: 1px solid #F5DBC8;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Vacuna por vencer */
.vacuna-alert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFAF0;
  color: #975A16;
  border: 1px solid #FEFCBF;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* Check-in / Check-out button */
.btn-checkin {
  background: #2C4A3E;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-checkin:hover { background: #1A2E26; }

.btn-checkout {
  background: #C4996C;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-checkout:hover { background: #A0784E; }

/* ═══════════════════════════════════════════════════════════════════════════
   KÜUNI GLOBAL OVERRIDES — aplica la paleta Küuni a componentes comunes
   para asegurar consistencia en TODO el CRM.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Botones primarios ────────────────────────────────────────────────── */
.btn-primary,
button.btn-primary,
.btn.btn-primary {
  background: #2C4A3E;
  border-color: #2C4A3E;
  color: #fff;
}
.btn-primary:hover,
button.btn-primary:hover,
.btn.btn-primary:hover {
  background: #1A2E26;
  border-color: #1A2E26;
}
.btn-primary:focus,
.btn.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(44, 74, 62, 0.18);
  outline: none;
}

/* ── Botones dorados (acción secundaria premium) ──────────────────────── */
.btn-gold,
.btn-secondary {
  background: #C4996C;
  border-color: #C4996C;
  color: #fff;
}
.btn-gold:hover,
.btn-secondary:hover {
  background: #A0784E;
  border-color: #A0784E;
}

/* ── Botones de peligro (delete, cancelar) — terracota cálida ─────────── */
.btn-danger,
.btn.btn-danger {
  background: #B85C38;
  border-color: #B85C38;
  color: #fff;
}
.btn-danger:hover,
.btn.btn-danger:hover {
  background: #9C4A2D;
  border-color: #9C4A2D;
}

/* ── Links del sistema en color Küuni ─────────────────────────────────── */
a:not([class]),
.text-link {
  color: #2C4A3E;
}
a:not([class]):hover,
.text-link:hover {
  color: #1A2E26;
}

/* ── Focus rings dorados sutiles en inputs ────────────────────────────── */
input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  outline: none;
  border-color: #C4996C !important;
  box-shadow: 0 0 0 3px rgba(196, 153, 108, 0.18);
}

/* ── Headings con el tono Küuni ───────────────────────────────────────── */
h1, h2, h3, h4 {
  color: #1A2E26;
}

/* ── Card headers / titles consistentes ───────────────────────────────── */
.card-title-unified,
.page-title,
.section-title {
  color: #1A2E26;
}

/* ── Selección de texto con el verde Küuni ────────────────────────────── */
::selection {
  background: rgba(196, 153, 108, 0.4);
  color: #1A2E26;
}

/* ── Spinner / loader color ───────────────────────────────────────────── */
.spinner,
.dk-spinner {
  border-color: rgba(44, 74, 62, 0.15);
  border-top-color: #2C4A3E;
}

/* ═══════════════════════════════════════════════════════════════════
   FIX GLOBAL: Layout overflow
   flex: 1 en .main-content sin min-width: 0 hace que contenido ancho
   (tablas, etc.) desborde el viewport horizontalmente. Forzamos a
   respetar el ancho disponible.
═══════════════════════════════════════════════════════════════════ */
.main-content {
  min-width: 0;
  overflow-x: hidden;
  max-width: 100%;
}
.dashboard-content {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Cards: no deben forzar ancho mayor que su padre */
.card {
  max-width: 100%;
  box-sizing: border-box;
}
