/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "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 tipo argentina.gob.ar */
.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;
}

.topbar-left {
  font-weight: 500;
}

.topbar-right a {
  color: #fff;
  margin-left: 16px;
  font-weight: 400;
}

.topbar-right a:hover {
  text-decoration: underline;
}

/* Encabezado principal tipo gobierno */
.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;
  gap: 24px;
  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;
  letter-spacing: 0.08em;
  color: #6c757d;
}

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

.gov-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.gov-link {
  font-size: 0.9rem;
  color: #0072bb;
  font-weight: 500;
}

.gov-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 260px;
}

.gov-search input {
  width: 100%;
  padding: 7px 30px 7px 10px;
  border-radius: 4px;
  border: 1px solid #cfd4da;
  font-size: 0.9rem;
}

.gov-search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #6c757d;
}

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

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

.breadcrumb-inner a {
  color: #0072bb;
}

.breadcrumb-separator {
  margin: 0 4px;
}

/* Contenido principal */
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;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #002855;
}

header.page-header p {
  font-size: 1rem;
  margin-top: 8px;
  color: #555;
  max-width: 560px;
}

/* Grilla de tarjetas (tu contenido) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background-color: #ffffff;
  border-radius: 4px;
  border: 1px solid #dde2e6;
  padding: 18px 16px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

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

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #002855;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.card a {
  display: inline-block;
  text-decoration: none;
  background-color: #0072bb;
  color: #fff;
  padding: 7px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.card a:hover {
  background-color: #005f99;
  text-decoration: none;
}

/* Pie de página tipo gov simple */
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;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.footer-note {
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .gov-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gov-actions {
    width: 100%;
  }

  .gov-search {
    flex: 1 1 100%;
    max-width: none;
  }
}
