:root {
  --color-primary: #717175;
  --color-accent: #3C5A78;
  --color-accent-hover: #2d4560;
  --color-accent-light: #e8edf2;
  --color-bg: #FFFFFF;
  --color-bg-alt: #f0f2f5;
  --color-text: #212121;
  --color-text-light: #6b7280;
  --color-border: #dde1e6;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --header-height: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; height: auto; }

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.page-index .site-header {
  position: fixed;
  width: 100%;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  box-shadow: none;
}

.page-index .site-header.is-visible {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.logo img { height: 38px; }
.logo span { color: var(--color-text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}

@keyframes hero-zoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  animation: hero-zoom 20s ease-in-out infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(48,48,49,0.85) 0%, rgba(60,90,120,0.3) 100%);
}

.hero .wrapper { position: relative; z-index: 1; }

.hero-content { max-width: 650px; }

.hero-badge {
  display: inline-block;
  background: rgba(60,90,120,0.2);
  color: #8ab0d0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  margin-bottom: 0;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 550px;
  margin: 0 auto;
}

.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,0.6); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60,90,120,0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  box-shadow: none;
  transform: none;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
}

.btn-white:hover {
  background: #f0f0f0;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Grid cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card-service {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}

.card-service:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--color-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card-service h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-service p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.card-service ul {
  list-style: none;
  margin-top: 14px;
}

.card-service ul li {
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: 4px 0 4px 20px;
  position: relative;
}

.card-service ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* Value cards (3 columns) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
}

.value-icon {
  width: 64px;
  height: 64px;
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 550px;
  margin: 0 auto 30px;
}

.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col p { line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }

.footer-col ul { list-style: none; }
.footer-col ul li { padding: 4px 0; }

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }

/* Page header (inner pages) */
.page-header {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: var(--color-primary);
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(48,48,49,0.6) 0%, rgba(60,90,120,0.2) 100%);
}

.page-header .wrapper { position: relative; z-index: 1; }

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
}

/* Content card (inner pages) */
.content-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px;
}

.content-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.content-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--color-primary);
}

.content-card p { margin-bottom: 12px; color: var(--color-text-light); }
.content-card p:last-child { margin-bottom: 0; }

.content-list {
  list-style: none;
  margin: 12px 0;
}

.content-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--color-text-light);
}

.content-list li::before {
  content: "•";
  color: var(--color-accent);
  font-weight: bold;
  position: absolute;
  left: 8px;
}

/* Calculator */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc-form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
}

.calc-form-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .hpot, .hpot { display: none; }

.form-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  border: none;
  padding: 0;
  margin-top: 8px;
}
.form-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.form-group input[type="range"]:focus { outline: none; border-color: transparent; }

.form-group select {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%236b7280' d='M6 8L1 3h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc-result {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
}

.calc-result h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.result-row:last-child { border-bottom: none; }

.result-row .label { font-size: 0.9rem; color: var(--color-text-light); }
.result-row .value { font-weight: 700; color: var(--color-accent); font-size: 1rem; }
.result-row .value.highlight { font-size: 1.4rem; color: var(--color-primary); }
.result-row-total {
  border-bottom: none !important;
  padding-top: 16px !important;
  padding-bottom: 8px !important;
}
.result-row-total .label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.result-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  line-height: 1.5;
}

/* Downloads */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.download-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.2s;
}

.download-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.download-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.download-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.download-info p { font-size: 0.85rem; color: var(--color-text-light); }

/* Links */
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.link-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: all 0.2s;
}

.link-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.link-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 12px;
}

.link-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.link-card p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* Alert */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
  font-size: 0.9rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Contact page specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 32px;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-item .ci-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item .ci-text { font-size: 0.9rem; }
.contact-info-item .ci-text strong { display: block; margin-bottom: 2px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; gap: 0; }

  .main-nav a {
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hero { min-height: 70vh; }

  .hero-content h1 { font-size: 2rem; }

  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .hero-stat h3 { font-size: 1.4rem; }

  .grid-3, .values-grid, .links-grid { grid-template-columns: 1fr; }

  .grid-2, .download-grid, .calc-wrapper, .contact-grid, .footer-grid { grid-template-columns: 1fr; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }

  .section { padding: 50px 0; }

  .section-header h2 { font-size: 1.6rem; }

  .footer-grid { gap: 24px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { min-height: 60vh; }

  .hero-content h1 { font-size: 1.6rem; }

  .hero-actions { flex-direction: column; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .stat-number { font-size: 1.6rem; }

  .content-card { padding: 24px; }
}

/* =============================================
   Portal Clientes
   ============================================= */

.portal-login {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.portal-login-card {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.portal-login-card .content-card {
  text-align: center;
}

.portal-login-card .content-card h2 {
  margin-bottom: 8px;
}

.portal-login-card .content-card > p {
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.portal-login-card .content-card > p.has-error {
  margin-bottom: 12px;
}

.portal-login-form {
  text-align: left;
}

.portal-login-form .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
}

/* Dashboard header */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.dashboard-header p {
  color: var(--color-text-light);
  margin-top: 2px;
}

.dashboard-header .btn-logout {
  border-color: var(--color-border);
  color: var(--color-text-light);
  padding: 8px 20px;
  font-size: 0.85rem;
}

.dashboard-header .btn-logout:hover {
  border-color: var(--color-text-light);
  color: var(--color-text);
}

/* Stat cards */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 44px;
}

.stat-card {
  text-align: center;
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.stat-card .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.stat-card--vigente {
  background: linear-gradient(135deg, #f0faf4 0%, #e8f5e9 100%);
  border-color: #c8e6c9;
}

.stat-card--vigente .stat-number {
  color: #2e7d32;
}

.stat-card--morosa {
  background: linear-gradient(135deg, #fef2f2 0%, #fde8e8 100%);
  border-color: #f5c6cb;
}

.stat-card--morosa .stat-number {
  color: #c0392b;
}

/* Section titles with dot */

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-title .dot--green {
  background: #2e7d32;
}

.section-title .dot--red {
  background: #c0392b;
}

/* Table wrapper */

.table-wrap {
  padding: 0;
  overflow-x: auto;
  margin-bottom: 40px;
}

.table-wrap:last-child {
  margin-bottom: 0;
}

.table-portal {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-portal thead {
  background: var(--color-bg-alt);
}

.table-portal th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  white-space: nowrap;
}

.table-portal td {
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
  vertical-align: middle;
}

.table-portal tbody tr {
  transition: background 0.15s;
}

.table-portal tbody tr:hover {
  background: var(--color-bg-alt);
}

.table-portal .col-monto {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.table-portal .col-center {
  text-align: center;
  white-space: nowrap;
}

.table-portal .col-dias-danger {
  text-align: center;
  color: #c0392b;
  font-weight: 600;
  white-space: nowrap;
}

/* Badges */

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge--danger {
  background: #fde8e8;
  color: #c0392b;
}

/* Responsive portal */

@media (max-width: 768px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-portal {
    font-size: 0.8rem;
  }

  .table-portal th,
  .table-portal td {
    padding: 10px 12px;
  }
}
