/* ══════════════════════════════════════
   SOMOS — Estilos globales
   Paleta: turquesa #4EC5D4, blanco, gris oscuro
   ══════════════════════════════════════ */

:root {
  --turquesa:       #4EC5D4;
  --turquesa-dark:  #35A8B8;
  --turquesa-light: #D6F4F8;
  --bg:             #F4F7F8;
  --surface:        #FFFFFF;
  --text:           #1A2B2E;
  --text-muted:     #6B8A8E;
  --border:         #D9E8EA;
  --danger:         #E05A5A;
  --success:        #4CAF82;
  --warning:        #F5A623;
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.07);
  --shadow:         0 4px 16px rgba(0,0,0,0.10);
  --radius:         10px;
  --radius-lg:      16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── NAVBAR ── */
.navbar {
  background: var(--turquesa);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  box-shadow: 0 2px 12px rgba(78,197,212,0.35);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.6);
}

.navbar-logo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.navbar-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.navbar-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-top: -2px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 40px;
  list-style: none;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* Los items dentro de dropdowns tienen sus propios colores */
.dropdown-menu a,
.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: #1A2B2E !important;
  background: transparent;
}
.dropdown-menu a:hover { background: #f0fbfc !important; color: #35A8B8 !important; }

.navbar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-estado {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── LAYOUT PRINCIPAL ── */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── HERO HOME ── */
.hero {
  background: linear-gradient(135deg, var(--turquesa) 0%, var(--turquesa-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '🍔';
  position: absolute;
  right: -20px;
  top: -20px;
  font-size: 180px;
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-text h1 span {
  opacity: 0.75;
  font-weight: 400;
}

.hero-text p {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.85;
  max-width: 420px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: #fff;
  color: var(--turquesa-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow); }

.btn-ghost {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.28); }

.btn-accent {
  background: var(--turquesa);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--turquesa-dark); box-shadow: var(--shadow); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 20px 22px; }

/* ── GRID DE ACCESOS RÁPIDOS ── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
  box-shadow: var(--shadow-sm);
}

.quick-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--turquesa);
}

.quick-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.quick-card-icon.turquesa { background: var(--turquesa-light); }
.quick-card-icon.orange   { background: #FFF3E0; }
.quick-card-icon.green    { background: #E8F5E9; }
.quick-card-icon.purple   { background: #F3E5F5; }

.quick-card h3 {
  font-size: 15px;
  font-weight: 700;
}

.quick-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--turquesa-dark);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

/* ── MENSAJES DJANGO ── */
.messages { list-style: none; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.message {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.message.success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid var(--success); }
.message.error   { background: #FFEBEE; color: #C62828; border-left: 4px solid var(--danger); }
.message.warning { background: #FFF8E1; color: #E65100; border-left: 4px solid var(--warning); }
.message.info    { background: var(--turquesa-light); color: var(--turquesa-dark); border-left: 4px solid var(--turquesa); }

/* ── UTILIDADES ── */
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.w-full { width: 100%; }
