@font-face {
  font-family: 'Barlow';
  src: url('/Fonts/Barlow/Barlow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('/Fonts/Barlow/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('/Fonts/Barlow/Barlow-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('/Fonts/Barlow_Semi_Condensed/BarlowSemiCondensed-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --amarillo-claro: #facd05;
  --amarillo-oscuro: #faae05;
  --rojo-claro: #f4492e;
  --rojo-oscuro: #ea2f09;
  --bordo: #6f0603;
  --celeste-claro: #90b4e1;
  --celeste-oscuro: #769fd3;
  --verde-claro: #719c29;
  --verde-oscuro: #238d3d;
  --blanco: #ffffff;
  --gris-claro: #ededed;
  --negro: #2e2d2c;

  --color-bg: #f3f3f3;
  --color-surface: #ffffff;
  --color-border: #dfe2e5;
  --color-text: var(--negro);
  --color-text-muted: #6c737a;
  --color-accent: var(--verde-oscuro);
  --color-accent-hover: #1f7e35;

  --font-sans: 'Barlow', system-ui, sans-serif;
  --font-title: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --radius: 12px;
  --shadow-soft: 0 1px 2px rgba(35, 43, 52, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 110%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1 {
  font-family: var(--font-title);
  font-size: clamp(1.72rem, 2.4vw, 2.42rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
}

.container {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  padding-bottom: clamp(1.25rem, 2.4vw, 2rem);
}

.top-banner {
  height: 88px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: clamp(0.5rem, 2.2vw, 1.4rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #d7dbe0;
  background: url('/fondo.png') center / cover no-repeat;
}

.top-banner__image {
  height: 70%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04);
}

.main-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.main-nav__inner {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #17212d;
  font-family: var(--font-title);
  font-size: 1.5rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 38px;
  object-fit: contain;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: 1rem;
}

.nav-links a {
  color: #45505d;
  font-size: 1rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #182330;
}

.nav-search {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid #2e9e48;
  border-radius: 999px;
}

.nav-search::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  background: #2e9e48;
  right: -5px;
  bottom: -3px;
  transform: rotate(38deg);
  border-radius: 4px;
}

.nav-actions {
  justify-content: flex-end;
  gap: 0.35rem;
}

.text-action {
  border: 0;
  background: transparent;
  color: #4f5966;
  padding: 0.38rem 0.54rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
}

.text-action:hover {
  background: #f2f4f6;
}

.outlined-action {
  border: 1px solid var(--color-border);
  background: #fbfcfd;
  color: #4f5966;
  padding: 0.38rem 0.72rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
}

.outlined-action:hover {
  background: #f4f6f8;
}

.has-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.has-icon::before {
  content: '';
  width: 11px;
  height: 11px;
  border: 2px solid #2a9744;
  border-radius: 999px;
  flex: 0 0 auto;
}

.has-icon--panel::before {
  border-radius: 2px;
}

.has-icon--user::before {
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 0 #2a9744;
}

.page-head {
  margin-top: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e8eb;
  border-bottom: 1px solid #e5e8eb;
}

.page-head p {
  margin-top: 0.55rem;
  color: var(--color-text-muted);
  font-size: clamp(0.94rem, 1.3vw, 1.03rem);
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.panel {
  margin-top: 1.15rem;
  padding: 1.1rem;
}

.panel h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-family: var(--font-title);
  text-transform: uppercase;
}

.panel .subcopy {
  margin-top: 0.42rem;
  color: var(--color-text-muted);
}

.btn-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: #1f7e35;
}

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

.btn--secondary {
  background: #ffffff;
  color: #3e4854;
  border-color: var(--color-border);
}

.btn--secondary:hover {
  background: #f6f8fa;
}

.btn--wee {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #00b1eb;
  color: #ffffff;
  border-color: #00a4da;
}

.btn--wee:hover {
  background: #009fd2;
}

.wee-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.btn--dgr {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #124596;
  border-color: #cfe2ee;
}

.btn--dgr:hover {
  background: #f4fbff;
}

.dgr-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.status-text {
  margin-top: 0.95rem;
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

.dashboard {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0.9rem;
}

.sidebar {
  padding: 1rem;
}

.sidebar ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.sidebar li {
  border-left: 3px solid var(--color-accent);
  padding-left: 0.5rem;
  text-transform: capitalize;
}

.actions-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tile {
  min-height: 114px;
  border: 1px solid #d7dde3;
  border-radius: 10px;
  background: #ffffff;
  color: #222c38;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem;
  text-align: center;
}

.tile:hover {
  border-color: #6fb784;
  color: var(--color-accent);
}

.tile-icon {
  position: relative;
  width: 22px;
  height: 22px;
  color: #2a9744;
  border: 2px solid currentcolor;
  border-radius: 5px;
}

.tile-icon::before,
.tile-icon::after {
  content: '';
  position: absolute;
  background: currentcolor;
}

.tile-icon--doc::before {
  width: 8px;
  height: 2px;
  left: 5px;
  top: 6px;
  box-shadow: 0 5px 0 currentcolor;
}

.tile-icon--doc::after {
  width: 5px;
  height: 5px;
  right: -1px;
  top: -1px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.tile-icon--list::before {
  width: 3px;
  height: 3px;
  left: 4px;
  top: 5px;
  box-shadow: 0 5px 0 currentcolor, 0 10px 0 currentcolor;
}

.tile-icon--list::after {
  width: 9px;
  height: 2px;
  right: 3px;
  top: 6px;
  box-shadow: 0 5px 0 currentcolor, 0 10px 0 currentcolor;
}

.tile-icon--bell {
  border-radius: 10px 10px 7px 7px;
}

.tile-icon--bell::before {
  width: 10px;
  height: 2px;
  left: 4px;
  bottom: 4px;
}

.tile-icon--bell::after {
  width: 4px;
  height: 4px;
  left: 8px;
  top: 2px;
  border-radius: 999px;
}

.tile-icon--user {
  border-radius: 999px;
}

.tile-icon--user::before {
  width: 6px;
  height: 6px;
  left: 6px;
  top: 3px;
  border-radius: 999px;
}

.tile-icon--user::after {
  width: 12px;
  height: 6px;
  left: 3px;
  bottom: 3px;
  border-radius: 6px 6px 10px 10px;
}

.tile-title {
  font-family: var(--font-title);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1;
}

.tile-subtitle {
  font-size: clamp(0.78rem, 1.05vw, 0.84rem);
  color: #6a7179;
}

.payments {
  margin-top: 1.15rem;
  padding: 1rem;
}

.payments .btn-row {
  margin-top: 1.2rem;
}

.footer-row {
  margin-top: 1.5rem;
  border-top: 1px solid #ebedf0;
  padding-top: 0.95rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

@media (max-width: 1020px) {
  .main-nav__inner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.55rem 0;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1240px, calc(100% - 1rem));
  }

  .top-banner {
    padding-inline: 0.4rem;
  }

  .brand {
    font-size: 1.5rem;
  }

  .brand img {
    width: 26px;
    height: 32px;
  }

  .page-head {
    margin-top: 0.8rem;
    padding: 1rem 0;
  }

  .page-head p {
    font-size: 1rem;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .footer-row {
    justify-content: flex-start;
  }
}
