/* assets/css/style.css */
:root {
  --azul1: #bcefb9;
  --azul2: #bcefb9;
  --azul3: #bcefb9;
  --borde: #e5e5e5;
  --texto: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
}

/* Reset básico */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--texto);
  background: #f7f7f9;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto
}

/* --------- Top bar + GOV strip --------- */
.topnav {
  background: linear-gradient(90deg, var(--azul1), var(--azul2));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0
}

.logo {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #050505;
  text-decoration: none;
  font-weight: 700
}

.logo img {
  height: 36px;
  width: auto;
  border-radius: 8px
}

.menu {
  display: flex;
  gap: 8px;
  align-items: center
}

.menu a {
  color: #0a0202;
  text-decoration: none;
  margin: 0 8px;
  padding: 6px 10px;
  border-radius: 8px
}

.menu a.active,
.menu a:hover {
  background-color: rgba(255, 255, 255, .15)
}

.gov-header {
  background: #004884;
  padding: 5px 20px;
  display: flex;
  align-items: center
}

.gov-logo {
  height: 40px;
  display: block
}

/* Full-bleed GOV strip */
.gov-strip {
  background: #0066cc !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.gov-strip__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
}

.gov-strip__logo {
  height: 26px;
  display: block
}

body {
  overflow-x: hidden
}

/* --------- Hero --------- */
.hero {
  padding: 28px 0;
  background: linear-gradient(180deg, #e8f1ff, #ffffff)
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center
}

.hero__text h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0 0 8px
}

.hero__text p {
  color: var(--muted);
  margin: 0 0 16px
}

.hero__art img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05)
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.btn {
  display: inline-block;
  background: var(--azul3);
  color: #050101;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer
}

.btn:hover {
  filter: brightness(.95)
}

.btn--outline {
  background: transparent;
  border-color: var(--azul3);
  color: black
}

.btn-secundario {
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--azul2);
  padding: 8px 14px;
  border-radius: 10px
}

/* --------- Secciones / Cards --------- */
.section {
  padding: 28px 0
}

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

.card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04)
}

.card h3 {
  margin: 0 0 8px
}

.card p {
  margin: 0 0 10px;
  color: var(--muted)
}

/* --------- Footer --------- */
.site-footer {
  background: #e3e5e9;
  padding: 16px 0
}

.site-footer p,
.site-footer .footer-copy {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: #111827;
}

/* --------- Carrusel --------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--borde)
}

#home-carousel {
  min-height: 200px;
  background: #f3f4f6;
  border-radius: 12px
}

.carousel__track {
  display: flex;
  transition: transform .4s ease
}

.carousel__slide {
  min-width: 100%;
  position: relative;
}

/* ← NO oculta los slides */
.carousel__slide img {
  width: 100%;
  display: block;
  height: auto
}

.carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .45));
  color: #fff;
  font-size: .95rem
}

/* Botones correctos según el HTML */
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center
}

.carousel__prev {
  left: 8px
}

.carousel__next {
  right: 8px
}

/* --------- Módulos --------- */
.module {
  padding: 20px 0
}

.module__img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05)
}

.module__caption {
  color: var(--muted);
  margin-top: 8px
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  border-collapse: collapse
}

.tbl th,
.tbl td {
  border: 1px solid var(--borde);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top
}

.tbl th {
  background: #f5f7fb;
  font-weight: 600
}

.tbl--striped tbody tr:nth-child(odd) {
  background: #fafafa
}

.tbl--compact th,
.tbl--compact td {
  padding: 6px 8px
}

.tbl caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--texto)
}
.video-embed{position:relative; padding-top:56.25%; overflow:hidden; border-radius:12px}
.video-embed iframe,.video-embed video{position:absolute; inset:0; width:100%; height:100%; border:0}

/* estilo para las redes sociales*/
/* Redes */
.social{list-style:none; margin:0; padding:0; display:flex; gap:10px; align-items:center}
.social li{display:inline-flex}
.social a{display:inline-flex; width:34px; height:34px; align-items:center; justify-content:center;
          border-radius:50%; background:#eff2f6; border:1px solid var(--borde); text-decoration:none}
.social a:hover{filter:brightness(.95)}
.social img{max-width:18px; max-height:18px; display:block}
.social i{font-size:16px; line-height:1}

/* Posiciones */
.social--header{margin-left:12px}
.site-footer .social{justify-content:center; margin-bottom:8px}
