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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

a {
  color: #0072bb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Barra superior */
.topbar {
  background-color: #002855;
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 16px;
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header gov */
.gov-header {
  background-color: #ffffff;
  border-bottom: 1px solid #dde2e6;
}

.gov-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a3e0, #0072bb);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span:first-child {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #6c757d;
}

.brand-text span:last-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: #002855;
}

/* Breadcrumb */
.breadcrumb {
  background-color: #eef2f7;
  border-bottom: 1px solid #dde2e6;
}

.breadcrumb-inner {
  max-width: 1120px;
  padding: 8px 16px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Main */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

header.page-header {
  margin-bottom: 24px;
  text-align: left;
}

header.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #002855;
}

header.page-header p {
  color: #555;
  margin-top: 8px;
}

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

/* Tarjetas estilo Informes */
.card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #dde2e6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #dde2e6;
  transition: transform 0.25s ease;
}

.card:hover .thumb {
  transform: scale(1.04);
}

.body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag {
  font-size: 0.8rem;
  color: #0072bb;
  text-transform: uppercase;
  font-weight: 600;
}

.title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #002855;
}

.desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  background-color: #0072bb;
  padding: 7px 14px;
  color: #fff !important;
  border-radius: 20px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background-color: #005f99;
}

/* Footer */
footer {
  border-top: 1px solid #dde2e6;
  background-color: #ffffff;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #6c757d;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
