/* ── HuevOS – Estilos personalizados ─────────────────────── */
:root {
  --cream:        #F5F0E8;
  --brown:        #3D2B1F;
  --amber:        #C8860A;
  --amber-light:  #F0A830;
  --amber-pale:   #FDF3DC;
  --rust:         #B94E2A;
  --green:        #2E7D52;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--brown);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, .font-display { font-family: 'Syne', sans-serif; font-weight: 700; }

/* ── Navbar ── */
.bg-huevos { background: var(--brown) !important; }
.navbar-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; }
.nav-link { opacity: .82; transition: opacity .15s; }
.nav-link:hover, .nav-link.active { opacity: 1; }

/* ── Cards ── */
.card { border: none; border-radius: 16px; box-shadow: 0 2px 12px rgba(61,43,31,.09); background: #fff; }
.card-header {
  border-radius: 16px 16px 0 0 !important;
  font-family: 'Syne', sans-serif; font-weight: 700;
  background: var(--amber-pale); border-bottom: 2px solid #EDE4D6; color: var(--brown);
}

/* ── Botones ── */
.btn-amber { background: var(--amber); color: #fff; border: none; font-family: 'Syne', sans-serif; font-weight: 700; }
.btn-amber:hover { background: var(--amber-light); color: #fff; }

/* ── Badges de estado ── */
.badge-pendiente  { background: #FEE2C0; color: #92400E; padding: 4px 10px; border-radius: 20px; font-size:.75rem; font-weight:700; }
.badge-entregado  { background: #D1FAE5; color: #065F46; padding: 4px 10px; border-radius: 20px; font-size:.75rem; font-weight:700; }
.badge-cancelado  { background: #FEE2E2; color: #991B1B; padding: 4px 10px; border-radius: 20px; font-size:.75rem; font-weight:700; }
.badge-abierta    { background: #D1FAE5; color: #065F46; padding: 4px 10px; border-radius: 20px; font-size:.75rem; font-weight:700; }
.badge-cerrada    { background: #E5E7EB; color: #374151; padding: 4px 10px; border-radius: 20px; font-size:.75rem; font-weight:700; }

/* ── Stat cards (dashboard) ── */
.stat-card {
  border-radius: 16px; padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 2px 12px rgba(61,43,31,.09);
  transition: transform .18s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon {
  font-size: 1.8rem; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0;
}
.stat-card .stat-num  { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-card .stat-label { font-size: .78rem; opacity: .65; text-transform: uppercase; letter-spacing: .05em; }
.stat-amber { background: var(--amber-pale); color: var(--brown); }
.stat-amber .stat-icon { background: rgba(200,134,10,.15); }
.stat-green { background: #ECFDF5; color: #064E3B; }
.stat-green .stat-icon { background: rgba(46,125,82,.15); }
.stat-brown { background: #FDF6EE; color: var(--brown); }
.stat-brown .stat-icon { background: rgba(61,43,31,.1); }
.stat-rust  { background: #FEF2F2; color: var(--rust); }
.stat-rust  .stat-icon { background: rgba(185,78,42,.12); }

/* ── Tablas ── */
.table-huevos thead th {
  background: var(--amber-pale); font-family: 'Syne', sans-serif;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--brown); border-bottom: 2px solid #EDE4D6;
}
.table-huevos tbody tr:hover { background: #fdf9f3; }

/* ── Formularios ── */
.form-control:focus, .form-select:focus { border-color: var(--amber); box-shadow: 0 0 0 .2rem rgba(200,134,10,.2); }
.form-label { font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #6B5244; }

/* ── Contador docenas ── */
.qty-control { display: flex; align-items: center; gap: 14px; }
.qty-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--amber); background: white; color: var(--amber);
  font-size: 1.4rem; font-weight: 700; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all .15s; line-height: 1;
}
.qty-btn:hover { background: var(--amber); color: white; }
.qty-num { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; min-width: 60px; text-align: center; }

/* ── Saldo ── */
.saldo-positivo { color: var(--green); font-weight: 700; }
.saldo-negativo { color: var(--rust);  font-weight: 700; }
.saldo-cero     { color: #9CA3AF;      font-weight: 600; }

/* ── Login ── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream) 60%, var(--amber-pale));
}
.login-card {
  width: 100%; max-width: 420px; border-radius: 20px;
  box-shadow: 0 8px 40px rgba(61,43,31,.14); padding: 40px 36px; background: white;
}
.login-logo { font-size: 3rem; }

/* ── Footer ── */
.footer-huevos { border-top: 1px solid #EDE4D6; background: white; }

/* ── Responsive ── */
@media (max-width: 576px) {
  .stat-card { padding: 14px 16px; }
  .stat-card .stat-num { font-size: 1.3rem; }
  .login-card { padding: 28px 20px; }
  .qty-num { font-size: 2rem; }
}

/* ── Animaciones ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .3s ease both; }
.fade-up:nth-child(2) { animation-delay: .06s; }
.fade-up:nth-child(3) { animation-delay: .12s; }
.fade-up:nth-child(4) { animation-delay: .18s; }
