/* DomiOccidente – Modernized UI Styles */

:root {
  --primary-color: #00ab4c;
  --primary-hover: #008f3f;
  --secondary-color: #64748b;
  --bg-color: #f1f5f9;
  --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --card-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  background: var(--bg-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: #1e293b;
}

/* ── Typography & Links ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #0f172a;
}

a {
  transition: all 0.2s ease;
}

/* ── Navigation ───────────────────────────────────────────────────────── */
.navbar {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.navbar-brand {
  letter-spacing: -0.025em;
}

.nav-link {
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
}

/* ── Tables ───────────────────────────────────────────────────────────── */
.table-responsive {
  border-radius: 0.5rem;
}

.table thead th {
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}

.table td {
  vertical-align: middle;
  font-size: .875rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.table-hover tbody tr:hover {
  background-color: #f8fafc;
}

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge {
  font-size: .75rem;
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 0.375rem;
}

.bg-purple {
  background-color: #7c3aed !important;
  color: #fff;
}

/* ── Stat cards ───────────────────────────────────────────────────────── */
.stat-card {
  border-radius: 12px;
  border: none;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--card-shadow);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-lg);
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: .7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 171, 76, 0.15);
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ── Cotizador (Landing) ──────────────────────────────────────────────── */
.cotz-shell {
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--card-shadow-lg);
  overflow: hidden;
}

.cotz-head {
  padding: 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.cotz-title {
  margin: 0;
  color: var(--primary-color);
  font-weight: 800;
}

.cotz-sub {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.cotz-body {
  padding: 1.5rem;
}

.cotz-tabs {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.cotz-tab-btn {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s;
}

.cotz-tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.cotz-tab-btn.is-active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #f0fdf4;
}

.cotz-field-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cotz-cta {
  margin-top: 1.5rem;
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  width: 100%;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary-color);
  box-shadow: 0 4px 6px -1px rgba(0, 171, 76, 0.2);
}

.cotz-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ── Login ────────────────────────────────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  padding: 2.5rem !important;
}

/* ── Cards & Utilities ────────────────────────────────────────────────── */
.card {
  border: none;
  box-shadow: var(--card-shadow);
  border-radius: 12px;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

/* ── Flash alerts ─────────────────────────────────────────────────────── */
.alert {
  border: none;
  border-radius: 10px;
  font-weight: 500;
}

/* ── Print ────────────────────────────────────────────────────────────── */
@media print {
  .navbar, footer, .btn, form, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #eee; }
}
