/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f9;
  color: #1f2937;
}

/* =========================
   MAIN NAVIGATION
========================= */

.main-nav {
  background: white;
  border-bottom: 1px solid #d8dee6;
}

.main-nav-container {
  max-width: 1300px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0 24px;

  overflow-x: auto;
}

.nav-item {
  display: inline-block;

  padding: 16px 18px;

  text-decoration: none;
  color: #334155;

  font-weight: 600;
  font-size: 0.95rem;

  border-bottom: 3px solid transparent;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;

  white-space: nowrap;
}

.nav-item:hover {
  color: #0a67b2;
  background: #f5f9fc;
}

.nav-item.active {
  color: #0a467c;
  border-bottom-color: #0a67b2;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  background: #4ba3d9;
  padding: 14px 32px;
  border-bottom: 1px solid #3182b5;
}

.topbar img {
  height: 48px;
}

/* =========================
   HERO
========================= */

.hero {
  background: white;
  padding: 60px 20px 50px;
  text-align: center;
  border-bottom: 1px solid #dfe5eb;
}

.hero img {
  width: 280px;
  max-width: 90%;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #0a467c;
}

.hero p {
  max-width: 850px;
  margin: 18px auto 0;
  line-height: 1.7;
  color: #4b5563;
  font-size: 1.05rem;
}

/* =========================
   LAYOUT
========================= */

.section {
  max-width: 1300px;
  margin: 50px auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2rem;
  color: #0a467c;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #6b7280;
  margin-bottom: 36px;
  line-height: 1.6;
}

.data-status {
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.data-status.realtime {
  background: #e8f5ee;
  color: #146c43;
  border: 1px solid #b7e4c7;
}

.data-status.weekly {
  background: #fff8e6;
  color: #8a6d1d;
  border: 1px solid #f0d98a;
}

/* =========================
   GRID / CARDS
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.card h2 {
  margin-top: 0;
  color: #0a467c;
  font-size: 1.4rem;
}

.card p {
  flex-grow: 1;
  line-height: 1.6;
  color: #4b5563;
}

/* =========================
   BUTTONS
========================= */

/*.button,
.btn-primary {
  display: inline-block;
  margin-top: 20px;
  background: #0a67b2;
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: #084f88;
}*/

.button,
.btn-primary {
  display: inline-block;
  background: #0a67b2;
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

.button {
  margin-top: 20px;
}

/* =========================
   BADGES
========================= */

.badge {
  display: inline-block;
  background: #e7f3ff;
  color: #0a67b2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 14px;
  font-weight: bold;
}

/* =========================
   TABLES
========================= */

.table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #eef4f9;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 0.95rem;
}

th {
  color: #0a467c;
}

tr:hover {
  background: #f8fbff;
}

.nowrap {
  white-space: nowrap;
}

.badge-proyecto {
  display: inline-block;
  background: #eef4f9;
  color: #0a467c;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 2px;
  font-size: 0.85rem;
  white-space: nowrap;
}


/* =========================
   FORMS
========================= */

.form-control,
.form-select,
select,
input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #cfd8e3;
    font-size: 1rem;
    background-color: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 24px;
}


/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 70px;
  background: #0a467c;
  color: white;
  text-align: center;
  padding: 28px 20px;
  font-size: 0.95rem;
}

.footer a {
  color: white;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
