/* ══════════════════════════════════════════════
   Business & Rental — Design System
   Industrial Premium: negro + dorado + acero
   ══════════════════════════════════════════════ */

:root {
  --gold: #D4A017;
  --gold-light: #F2D06B;
  --gold-dark: #A37B0C;
  --gold-glow: rgba(212,160,23,0.15);
  --black: #0a0a0a;
  --black-soft: #1a1a1a;
  --steel-50: #fafaf8;
  --steel-100: #f0efe8;
  --steel-200: #e0ddd2;
  --steel-300: #c8c4b6;
  --steel-400: #9e9a8c;
  --steel-500: #6b6860;
  --steel-600: #3d3b36;
  --white: #ffffff;
  --danger: #dc3545;
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b38f00;
  --warning-bg: #fef9c3;
  --danger-bg: #fee2e2;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(212,160,23,0.1);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  color: var(--steel-600);
  background: var(--steel-50);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; height:auto; display:block; }
a { color: var(--gold-dark); text-decoration:none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  background: var(--black);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.header-inner {
  max-width: 1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 24px;
}
.header-brand {
  display:flex; align-items:center; gap:12px;
  text-decoration:none; color: var(--gold);
}
.header-logo { height:44px; width:auto; }
.header-brand-text { display:flex; flex-direction:column; }
.header-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight:700;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.header-subtitle {
  font-size: 0.7rem; color: var(--steel-400);
  text-transform: uppercase; letter-spacing: 2px;
}
.header-nav { display:flex; gap:6px; align-items:center; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight:500;
  color: var(--steel-300);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--gold); background: rgba(255,255,255,0.05); }
.nav-link--accent {
  background: var(--gold); color: var(--black) !important;
  font-weight:600;
}
.nav-link--accent:hover { background: var(--gold-light); }
.nav-link--logout { color: var(--steel-400); }
.nav-link--logout:hover { color: #ff6b6b; }
.header-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}
.mobile-toggle {
  display:none; background:none; border:none; cursor:pointer;
  width:28px; height:24px; position:relative;
}
.mobile-toggle span {
  display:block; height:2px; background: var(--gold);
  border-radius:2px; transition: all 0.3s;
  position:absolute; left:0; right:0;
}
.mobile-toggle span:nth-child(1) { top:2px; }
.mobile-toggle span:nth-child(2) { top:11px; }
.mobile-toggle span:nth-child(3) { top:20px; }

@media (max-width:768px) {
  .mobile-toggle { display:block; }
  .header-nav {
    display:none; position:absolute;
    top:100%; left:0; right:0;
    background: var(--black-soft);
    flex-direction:column; padding:16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    gap:4px;
  }
  .header-nav.open { display:flex; }
  .nav-link { padding:12px 16px; border-radius: var(--radius-sm); }
}

/* ══════════════════════════════════════════════
   MAIN
   ══════════════════════════════════════════════ */
.site-main {
  flex:1;
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

/* ── Hero (página consulta) ── */
.hero {
  background: var(--black);
  padding: 80px 24px 60px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero::before {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(212,160,23,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(212,160,23,0.05) 0%, transparent 50%);
}
.hero-content { position:relative; z-index:1; max-width:640px; margin:0 auto; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight:700; color: var(--white);
  margin-bottom: 12px;
  line-height:1.2;
}
.hero h1 span { color: var(--gold); }
.hero p {
  color: var(--steel-400); font-size:1rem;
  margin-bottom: 32px;
}

/* ── Search bar ── */
.search-bar {
  display:flex; gap:0; max-width:520px; margin:0 auto;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: 0 0 0 1px rgba(212,160,23,0.2), var(--shadow-glow);
  transition: box-shadow var(--transition);
}
.search-bar:focus-within {
  box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(212,160,23,0.15);
}
.search-bar input {
  flex:1; border:none; outline:none;
  padding: 16px 20px;
  font-size:1rem; font-family: var(--font-body);
  background: var(--white); color: var(--steel-600);
}
.search-bar input::placeholder { color: var(--steel-300); }
.search-bar button {
  border:none; cursor:pointer;
  padding: 16px 28px;
  background: var(--gold); color: var(--black);
  font-family: var(--font-display);
  font-weight:600; font-size:0.9rem;
  transition: background var(--transition);
  white-space:nowrap;
}
.search-bar button:hover { background: var(--gold-light); }
.search-clear {
  display:inline-block; margin-top:12px;
  font-size:0.85rem; color: var(--steel-400);
}
.search-clear:hover { color: var(--gold-light); }

@media (max-width:500px) {
  .search-bar { flex-direction:column; border-radius: var(--radius-md); }
  .search-bar input { border-radius:0; }
  .search-bar button { border-radius:0; }
}

/* ── Result Card ── */
.result-section { padding: 40px 24px 60px; max-width:680px; margin:0 auto; }
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow:hidden;
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
.result-card-header {
  background: var(--black);
  padding: 20px 24px;
  display:flex; align-items:center; gap:12px;
}
.result-card-header h3 {
  font-family: var(--font-display);
  color: var(--gold); font-size:1rem; font-weight:600;
}
.result-card-header .badge {
  margin-left:auto;
  padding: 4px 14px; border-radius: 20px;
  font-size:0.75rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.5px;
}
.badge--vigente { background: var(--success-bg); color: var(--success); }
.badge--proximo { background: var(--warning-bg); color: var(--warning); }
.badge--vencido { background: var(--danger-bg); color: var(--danger); }

.result-fields { padding: 0; }
.result-row {
  display:flex; padding: 14px 24px;
  border-bottom: 1px solid var(--steel-100);
  gap: 12px; align-items:baseline;
}
.result-row:last-child { border-bottom:none; }
.result-label {
  flex: 0 0 160px;
  font-size:0.8rem; font-weight:600;
  text-transform:uppercase; letter-spacing:0.8px;
  color: var(--steel-400);
}
.result-value { flex:1; font-size:0.95rem; color: var(--steel-600); font-weight:500; }

@media (max-width:500px) {
  .result-row { flex-direction:column; gap:2px; padding:12px 20px; }
  .result-label { flex:none; font-size:0.7rem; }
}

/* ── Not found ── */
.not-found {
  text-align:center; padding:40px 24px;
  animation: slideUp 0.4s ease-out;
}
.not-found-icon {
  width:56px; height:56px; margin:0 auto 16px;
  background: var(--danger-bg); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
}
.not-found p { color: var(--steel-500); font-size:0.95rem; }

/* ══════════════════════════════════════════════
   LOGIN
   ══════════════════════════════════════════════ */
.login-page {
  display:flex; align-items:center; justify-content:center;
  min-height:100vh; padding:24px;
  background: var(--black);
}
.login-page .site-main { padding-top:0; display:flex; align-items:center; justify-content:center; }
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width:100%; max-width:420px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  text-align:center;
  animation: slideUp 0.5s ease-out;
}
.login-card .header-logo { height:60px; margin:0 auto 24px; }
.login-card h2 {
  font-family: var(--font-display);
  font-size:1.4rem; font-weight:700;
  color: var(--black); margin-bottom:8px;
}
.login-card .login-sub {
  color: var(--steel-400); font-size:0.85rem;
  margin-bottom:28px;
}
.form-group { margin-bottom:16px; text-align:left; }
.form-group label {
  display:block; font-size:0.8rem; font-weight:600;
  color: var(--steel-500); margin-bottom:6px;
  text-transform:uppercase; letter-spacing:0.5px;
}
.form-input {
  width:100%; padding:14px 16px;
  border: 1.5px solid var(--steel-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size:0.95rem;
  color: var(--steel-600);
  transition: all var(--transition);
  outline:none;
  background: var(--steel-50);
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--white);
}
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 28px; border:none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight:600; font-size:0.9rem;
  cursor:pointer; transition: all var(--transition);
  text-decoration:none;
}
.btn--primary {
  background: var(--gold); color: var(--black); width:100%;
}
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary {
  background: var(--steel-100); color: var(--steel-600);
}
.btn--secondary:hover { background: var(--steel-200); }
.btn--danger { background: var(--danger); color: var(--white); }
.btn--danger:hover { background: #c82333; }
.btn--whatsapp {
  background: #25d366; color: var(--white);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size:0.85rem; margin-top:12px;
}
.btn--whatsapp:hover { background: #1ebe57; color: var(--white); }

.login-error {
  background: var(--danger-bg); color: var(--danger);
  padding:12px 16px; border-radius: var(--radius-sm);
  font-size:0.85rem; font-weight:500;
  margin-bottom:16px;
  animation: shake 0.4s ease-out;
}
@keyframes shake {
  0%,100% { transform:translateX(0); }
  25% { transform:translateX(-6px); }
  75% { transform:translateX(6px); }
}

/* ══════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════ */
.dashboard { padding: 24px; max-width:1260px; margin:0 auto; }
.dashboard-header {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:24px; flex-wrap:wrap; gap:12px;
}
.dashboard-header h1 {
  font-family: var(--font-display);
  font-size:1.6rem; font-weight:700;
  color: var(--black);
}
.tab-nav { display:flex; gap:4px; margin-bottom:24px; }
.tab-btn {
  padding:10px 24px; border:none; cursor:pointer;
  background: var(--steel-100); color: var(--steel-500);
  font-family: var(--font-display);
  font-weight:600; font-size:0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.tab-btn:hover { background: var(--steel-200); }
.tab-btn.active {
  background: var(--black); color: var(--gold);
}
.tab-panel { display:none; animation: slideUp 0.3s ease-out; }
.tab-panel.active { display:block; }

/* ── Filters ── */
.filters {
  display:flex; gap:10px; flex-wrap:wrap;
  align-items:center; margin-bottom:20px;
}
.filters .form-input { min-width:180px; padding:10px 14px; font-size:0.85rem; }
.filters select.form-input { cursor:pointer; }

/* ── Data table ── */
.table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}
.table-wrap { overflow-x:auto; }
.data-table {
  width:100%; border-collapse:collapse; min-width:860px;
}
.data-table th {
  background: var(--black); color: var(--gold);
  padding:14px 16px; font-size:0.75rem;
  text-transform:uppercase; letter-spacing:1px;
  font-weight:600; text-align:left;
  position:sticky; top:0; z-index:2;
  font-family: var(--font-display);
}
.data-table td {
  padding:12px 16px; font-size:0.88rem;
  border-bottom:1px solid var(--steel-100);
  color: var(--steel-600);
}
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--gold-glow); }
.data-table .badge { font-size:0.72rem; padding:4px 10px; }

/* ── Upload area ── */
.upload-area {
  background: var(--white);
  border: 2px dashed var(--steel-200);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align:center;
  transition: all var(--transition);
  cursor:pointer;
}
.upload-area:hover,
.upload-area.dragover {
  border-color: var(--gold);
  background: var(--gold-glow);
}
.upload-icon {
  width:56px; height:56px; margin:0 auto 16px;
  background: var(--gold-glow);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.upload-icon svg { width:24px; height:24px; color: var(--gold); }
.upload-area h3 {
  font-family: var(--font-display);
  font-size:1.1rem; font-weight:600;
  color: var(--black); margin-bottom:6px;
}
.upload-area p { color: var(--steel-400); font-size:0.85rem; }
.upload-area input[type="file"] { display:none; }

/* ── Pagination ── */
.pagination {
  display:flex; justify-content:center; gap:6px;
  padding: 20px; flex-wrap:wrap;
}
.pagination a, .pagination strong {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight:600; font-size:0.85rem;
  text-decoration:none; transition: all var(--transition);
}
.pagination a {
  background: var(--steel-100); color: var(--steel-500);
}
.pagination a:hover { background: var(--gold-glow); color: var(--gold-dark); }
.pagination strong {
  background: var(--black); color: var(--gold);
}

/* ── Alert messages ── */
.alert {
  padding:14px 20px; border-radius: var(--radius-md);
  font-size:0.9rem; font-weight:500; margin-bottom:20px;
  animation: slideUp 0.3s ease-out;
}
.alert--success { background: var(--success-bg); color: var(--success); }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.alert--warning { background: var(--warning-bg); color: var(--warning); }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--black);
  color: var(--steel-300);
  margin-top: auto;
}
.footer-accent {
  height:3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}
.footer-grid {
  max-width:1200px; margin:0 auto;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap:32px; padding:40px 24px;
}
.footer-col a { color: var(--steel-300); }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size:0.85rem; margin-bottom:4px; }
.footer-heading {
  font-family: var(--font-display);
  color: var(--gold); font-size:0.8rem;
  text-transform:uppercase; letter-spacing:1.5px;
  margin-bottom:12px; font-weight:600;
}
.footer-logo { height:48px; margin-bottom:12px; }
.footer-tagline { font-size:0.82rem; color: var(--steel-400); line-height:1.6; }
.social-links { display:flex; gap:12px; }
.social-links a {
  width:36px; height:36px;
  border-radius:50%;
  background: rgba(255,255,255,0.06);
  display:flex; align-items:center; justify-content:center;
  transition: all var(--transition);
  color: var(--steel-400);
}
.social-links a:hover {
  background: var(--gold); color: var(--black);
  transform: translateY(-2px);
}
.footer-cert-badge { height:40px; margin-top:16px; opacity:0.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align:center; padding:16px 24px;
}
.footer-bottom p { font-size:0.75rem; color: var(--steel-500); }

@media (max-width:600px) {
  .footer-grid { grid-template-columns:1fr; text-align:center; gap:24px; padding:24px 16px; }
  .footer-logo { margin:0 auto 12px; }
  .social-links { justify-content:center; }
}

/* ══════════════════════════════════════════════
   UPLOAD RESULT PAGE
   ══════════════════════════════════════════════ */
.upload-result {
  display:flex; align-items:center; justify-content:center;
  min-height: calc(100vh - 200px);
  padding:40px 24px;
}
.upload-result-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px; text-align:center;
  max-width:520px; width:100%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s ease-out;
}
.upload-result-card h2 {
  font-family: var(--font-display);
  font-size:1.3rem; margin-bottom:16px;
  color: var(--black);
}
