/* 
   ==========================================================================
   PORTAL CENTRAL - TEMA CLARO (CORPORATIVO / EMPRESARIAL)
   ========================================================================== 
*/

:root {
  --bg: #f8fafc;           /* Slate 50 */
  --bg-secondary: #ffffff;
  --primary: #2563eb;      /* Blue 600 */
  --primary-glow: rgba(37, 99, 235, 0.1);
  --accent: #3b82f6;       /* Blue 500 */
  --text: #0f172a;         /* Slate 900 */
  --text-muted: #64748b;   /* Slate 500 */
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(226, 232, 240, 0.8); /* Slate 200 */
  --red: #ef4444;
  --orange: #f59e0b;
  --card-bg: #ffffff;
  --border: #e2e8f0;
}

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

body {
  font-family: 'Inter', 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* --- Subtle Decorative Backgrounds --- */
.glow-1 {
  position: absolute; top: -150px; left: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(255,255,255,0) 70%);
  filter: blur(100px); z-index: -1;
}
.glow-2 {
  position: absolute; bottom: 5vh; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(255,255,255,0) 70%);
  filter: blur(120px); z-index: -1;
}

/* --- Typography & Logo --- */
.logo { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: -0.025em; color: #0f172a; }
.logo span { color: var(--primary); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); padding: 12px 28px;
  border-radius: 12px; cursor: pointer; font-family: inherit;
  font-weight: 600; font-size: 14px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* --- Shared Components --- */
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 8px;
  background: #eff6ff; border: 1px solid #dbeafe;
  color: var(--primary); font-size: 11px; font-weight: 700; margin-bottom: 24px;
  letter-spacing: 0.05em; text-transform: uppercase;
}

.glass-card, .glass-panel {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 48px; position: relative; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  transform: perspective(1200px) rotateY(-5deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.glass-card:hover { 
  transform: perspective(1200px) rotateY(0deg) translateY(-5px);
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.12);
}

/* --- Mockup Elements --- */
.mockup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mock-logo { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), #60a5fa); border-radius: 14px; }
.mock-bal { font-size: 36px; font-weight: 800; margin-bottom: 4px; color: #0f172a; letter-spacing: -0.02em; }
.mock-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; font-weight: 500; }

.mock-tx {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-top: 1px solid #f1f5f9;
}
.mock-tx-icon {
  width: 40px; height: 40px; background: #f0f9ff; color: var(--primary);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.mock-tx-info h4 { margin-left: 14px; font-weight: 600; font-size: 15px; color: #1e293b; }
.mock-tx-info span { margin-left: 14px; font-size: 13px; color: var(--text-muted); }
.mock-tx-amount { color: #059669; font-weight: 700; font-size: 15px; }

/* --- Page: Home --- */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 5%; max-width: 1400px; margin: 0 auto;
}
.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 32px; font-weight: 600; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

.hero {
  max-width: 1400px; margin: 60px auto 100px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 80px;
}
.hero h1 { font-size: 64px; line-height: 1; margin-bottom: 28px; font-weight: 800; color: #0f172a; letter-spacing: -0.04em; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 19px; color: var(--text-muted); margin-bottom: 44px; line-height: 1.6; max-width: 520px; }
.hero-visual { flex: 1.2; position: relative; }

.features { max-width: 1400px; margin: 120px auto; padding: 0 5%; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.feature-card {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 24px; padding: 40px;
  transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.f-icon { width: 56px; height: 56px; background: #f8fafc; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; font-size: 28px; border: 1px solid #f1f5f9; color: var(--primary); }
.f-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; color: #0f172a; }
.f-desc { color: var(--text-muted); line-height: 1.6; font-size: 16px; }

/* --- Page: Login --- */
.login-body { 
  display: flex !important; 
  align-items: center; 
  justify-content: center; 
  min-height: 100vh; 
  padding: 20px;
  background: radial-gradient(circle at center, #f8faff 0%, #e8efff 100%);
}

.login-body .wrap { 
  width: 100%; 
  max-width: 400px; 
  background: rgba(255, 255, 255, 0.8); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5); 
  border-radius: 28px; 
  padding: 48px 40px; 
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  text-align: center; 
  z-index: 1; 
  animation: fadeIn 0.6s ease-out;
}

.login-body .logo { justify-content: center; margin-bottom: 8px; font-size: 28px; }
.login-body .small { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; font-weight: 500; }

/* Formularios WP override */
#hbpv-portal-loginform { text-align: left; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
#hbpv-portal-loginform label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 13px; color: #475569; }
#hbpv-portal-loginform input[type="text"], #hbpv-portal-loginform input[type="password"] { 
  width: 100%; padding: 14px 16px; margin-bottom: 24px; 
  background: #fff; border: 1px solid #e2e8f0; 
  border-radius: 12px; color: var(--text); 
  font-family: inherit; transition: all 0.2s ease; box-sizing: border-box; 
  font-size: 16px;
}
#hbpv-portal-loginform input[type="text"]:focus, #hbpv-portal-loginform input[type="password"]:focus { 
  outline: none; border-color: var(--primary); 
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
  background: #fff;
}
.forgetmenot { margin-bottom: 24px; display: flex; align-items: center; font-size: 14px; color: var(--text-muted); }
.forgetmenot input[type="checkbox"] { margin-right: 10px; width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

#hbpv-portal-loginform input[type="submit"] { 
  width: 100%; height: 54px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); 
  color: #fff; border: none; border-radius: 14px; 
  font-weight: 700; font-family: inherit; cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 16px; 
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); 
}
#hbpv-portal-loginform input[type="submit"]:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4); 
}

.login-body .nav { margin-top: 32px; font-size: 14px; font-weight: 600; }
.login-body .nav a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
.login-body .nav a:hover { color: var(--accent); text-decoration: underline; }

/* --- Page: Dashboard --- */
.navbar { 
  display: flex; justify-content: space-between; align-items: center; 
  padding: 16px 48px; background: #fff; border-bottom: 1px solid #f1f5f9; 
  position: sticky; top: 0; z-index: 100; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.user-info { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-muted); }
.user-info strong { color: var(--text); }
.logout { 
  background: #fff; color: var(--red); border: 1px solid #fee2e2; 
  padding: 6px 14px; border-radius: 8px; text-decoration: none; 
  font-weight: 600; font-size: 13px; transition: all 0.2s;
}
.logout:hover { background: var(--red); color: #fff; border-color: var(--red); }

.layout { display: flex; max-width: 1400px; margin: 40px auto; padding: 0 32px; gap: 40px; }
.sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.content { flex: 1; min-width: 0; }

.tab-btn { 
  background: transparent; color: var(--text-muted); border: none; 
  text-align: left; padding: 14px 20px; border-radius: 12px; 
  cursor: pointer; font-family: inherit; font-size: 15px; 
  font-weight: 600; transition: all 0.2s; 
}
.tab-btn:hover { color: var(--primary); background: #f1f5f9; }
.tab-btn.active { color: #fff; background: var(--primary); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }

.tab-pane { display: none; animation: fadeIn 0.4s ease-out; }
.tab-pane.active { display: block; }

.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }
.stat-card { 
  background: #fff; border: 1px solid #f1f5f9; padding: 28px; 
  border-radius: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; gap: 12px;
}
.stat-card .title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .value { font-size: 32px; font-weight: 800; color: #0f172a; }
.stat-card .value.green { color: #10b981; }
.stat-card .value.red { color: #ef4444; }

/* Tablas */
.table-responsive { width: 100%; overflow-x: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { 
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px; 
  color: var(--text-muted); font-weight: 700; border-bottom: 2px solid #f8fafc; 
  padding: 16px; 
}
td { padding: 16px; font-size: 14px; border-bottom: 1px solid #f8fafc; color: #334155; }
tr:last-child td { border-bottom: none; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; }

/* Badges de estado */
.badge.paid { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge.pending { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge.inactive { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

.glass-panel h2 { font-size: 20px; font-weight: 700; margin-bottom: 24px; color: #0f172a; }

/* --- Page: Pay --- */
.card { 
    background: #fff; border: 1px solid #f1f5f9; border-radius: 28px; padding: 40px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}
.amount-val { font-size: 52px; font-weight: 800; color: #0f172a; }
.note-box { background: #f8fafc; border: 2px dashed #e2e8f0; border-radius: 16px; padding: 24px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Responsiveness --- */
@media (max-width: 1024px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .tab-btn { white-space: nowrap; }
}

/* --- Utilities --- */
.cashier-section { display: none; animation: fadeIn 0.3s ease-out; }
.cashier-section.active { display: block; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }


