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

body {
  background: #f7f9fc;
  color: #1a1a3e;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* HEADER (idéntico al landing) */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6%;
  max-width: 1440px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
  background: #ffffff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: oklch(0.7 0.15 55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon div { width: 14px; height: 14px; border-radius: 4px; background: white; }

.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
.logo-text .main { color: #1a1a3e; }
.logo-text .accent { color: oklch(0.7 0.15 55); }

nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
nav a { color: #5a6b7f; text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.3s; }
nav a:hover { color: oklch(0.45 0.15 250); }

/* BUTTONS (reutilizados del landing) */
.btn-primary {
  background: oklch(0.7 0.15 55);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 100px;
  display: inline-block;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover { background: oklch(0.6 0.15 55); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(44, 74, 138, 0.35);
  color: #1a1a3e;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 100px;
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.btn-secondary:hover { border-color: oklch(0.45 0.15 250); background: rgba(44, 74, 138, 0.06); }

.btn-tertiary {
  background: transparent;
  color: oklch(0.45 0.15 250);
  text-decoration: underline;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 4px;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}
.btn-tertiary:hover { color: oklch(0.35 0.12 250); }

/* MAIN CONTAINER */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 6% 100px;
}

.page-hero {
  position: relative;
  background: linear-gradient(155deg, oklch(0.38 0.15 250) 0%, oklch(0.56 0.145 235) 100%);
  overflow: hidden;
  padding: 56px 6%;
  color: white;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p { color: rgba(255, 255, 255, 0.85); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* CARDS */
.card {
  background: #ffffff;
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(30, 40, 80, 0.12);
  border: 1px solid rgba(44, 74, 138, 0.12);
  margin-bottom: 28px;
}

.card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

.card-narrow { max-width: 440px; margin: 40px auto; }

/* FORMS */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: #1a1a3e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(44, 74, 138, 0.2);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: #1a1a3e;
  background: #fbfcfe;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: oklch(0.45 0.15 250);
}

.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(44, 74, 138, 0.2);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
}

.file-drop {
  border: 2px dashed rgba(44, 74, 138, 0.3);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  color: #5a6b7f;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-drop:hover, .file-drop.dragover {
  border-color: oklch(0.45 0.15 250);
  background: rgba(44, 74, 138, 0.04);
}

.file-drop-name { font-weight: 700; color: #1a1a3e; margin-top: 8px; }

/* BADGES */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-pending { background: rgba(212, 165, 116, 0.2); color: #92600f; }
.badge-approved { background: rgba(44, 138, 90, 0.15); color: #1c7a4c; }
.badge-rejected { background: rgba(200, 60, 60, 0.12); color: #c23c3c; }
.badge-activo { background: rgba(44, 138, 90, 0.15); color: #1c7a4c; }
.badge-suspendido { background: rgba(200, 60, 60, 0.12); color: #c23c3c; }

/* ALERTS */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.alert-error { background: rgba(200, 60, 60, 0.1); color: #a93131; border: 1px solid rgba(200, 60, 60, 0.25); }
.alert-success { background: rgba(44, 138, 90, 0.1); color: #1c7a4c; border: 1px solid rgba(44, 138, 90, 0.25); }
.alert-warning { background: rgba(212, 165, 116, 0.18); color: #8a5a10; border: 1px solid rgba(212, 165, 116, 0.4); }

/* STAT ROW */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }

.stat-tile {
  background: #f0f4f8;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.stat-tile .num { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: #1a1a3e; }
.stat-tile .label { font-size: 13px; color: #5a6b7f; margin-top: 4px; }

/* FILTERS */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters .form-group { margin-bottom: 0; min-width: 160px; flex: 1; }

/* RECEIPT CARDS (portal cliente) */
.receipt-card {
  border: 1px solid rgba(44, 74, 138, 0.14);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.receipt-card:last-child { margin-bottom: 0; }

.receipt-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.receipt-period { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; text-transform: capitalize; }
.receipt-meta { font-size: 12.5px; color: #5a6b7f; margin-top: 4px; }

/* ADMIN RECEIPT LIST (cards anchas, no tabla) */
.admin-receipt-card {
  border: 1px solid rgba(44, 74, 138, 0.14);
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 16px;
}
.admin-receipt-card:last-child { margin-bottom: 0; }

.admin-receipt-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-receipt-dominio { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.admin-receipt-meta { font-size: 13px; color: #5a6b7f; margin-top: 6px; line-height: 1.7; }

.admin-receipt-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.admin-receipt-actions .form-group { grid-column: 1 / -1; margin-bottom: 0; }
.admin-receipt-actions button { width: 100%; }

a.link-download { color: oklch(0.45 0.15 250); font-weight: 700; text-decoration: none; }
a.link-download:hover { text-decoration: underline; }

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: #5a6b7f; font-size: 14px; }

/* FOOTER (idéntico al landing) */
footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid #e0e8f0;
}

.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-icon { width: 28px; height: 28px; border-radius: 9px; background: oklch(0.7 0.15 55); display: flex; align-items: center; justify-content: center; }
.footer-logo-icon div { width: 11px; height: 11px; border-radius: 3px; background: white; }
.footer-logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; }
.footer-logo-text .main { color: #1a1a3e; }
.footer-logo-text .accent { color: oklch(0.7 0.15 55); }
.footer-copyright { color: #5a6b7f; font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  header { padding: 16px 4%; }
  nav { gap: 12px; }
  main { padding: 32px 4% 60px; }
  .page-hero { padding: 40px 4%; }
  .page-hero h1 { font-size: 24px; }
  .card { padding: 24px; border-radius: 16px; }
  .stat-row { grid-template-columns: 1fr; }
  .filters .form-group { min-width: 100%; }
  footer { flex-direction: column; text-align: center; padding: 20px 4%; }
}
