/*
  Sitio institucional estático - Municipalidad de Malvinas Argentinas
  Hoja de estilos principal
  Estética sobria, clara y orientada a comunicación pública.
*/

:root {
  --azul-principal: #0a4f8a;
  --azul-oscuro: #083b67;
  --celeste: #1db2c4;
  --fondo: #f5f8fb;
  --superficie: #ffffff;
  --texto: #173042;
  --texto-suave: #5f7281;
  --borde: #d8e2ea;
  --sombra: 0 14px 35px rgba(7, 34, 63, 0.10);
  --ancho: 1180px;
  --radio: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
}

a { color: var(--azul-principal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.contenedor {
  width: min(var(--ancho), calc(100% - 2rem));
  margin: 0 auto;
}

.barra-superior {
  background: var(--azul-oscuro);
  color: #fff;
  font-size: 0.95rem;
}

.barra-superior .contenedor {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.encabezado {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 79, 138, 0.08);
}

.encabezado .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--texto);
  text-decoration: none;
}

.marca img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.marca-texto strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
}

.marca-texto span {
  display: block;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.boton-menu {
  display: none;
  border: 1px solid var(--borde);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
}

.navegacion ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navegacion a {
  color: var(--texto);
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
}

.navegacion a.activo,
.navegacion a:hover {
  background: rgba(10, 79, 138, 0.08);
  text-decoration: none;
}


.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(6, 34, 58, 0.88), rgba(10, 79, 138, 0.72)),
    url('../imagenes/aerea-nocturna.jpg') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 25, 44, 0.40), transparent 35%);
}

.hero .contenedor {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  padding: 5.5rem 0 5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
}

.hero p {
  font-size: 1.1rem;
  max-width: 760px;
  color: rgba(255,255,255,0.92);
}

/* OTRAS SECC  */
.hero2 {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(6, 34, 58, 0.88), rgba(10, 79, 138, 0.72)),
    url('../imagenes/obra.jpg') center/cover no-repeat;
}

.hero2::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 25, 44, 0.40), transparent 35%);
}

.hero2 .contenedor {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  padding: 5.5rem 0 5rem;
}

.hero2 h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
}

.hero2 p {
  font-size: 1.1rem;
  max-width: 760px;
  color: rgba(255,255,255,0.92);
}



.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.acciones {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.boton.primario {
  background: #fff;
  color: var(--azul-oscuro);
}

.boton.secundario {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.resumen-hero {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.resumen-hero h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.lista-puntos {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.lista-puntos li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.lista-puntos li:last-child { border-bottom: 0; }

.seccion {
  padding: 4.5rem 0;
}

.seccion h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.seccion-intro {
  max-width: 760px;
  color: var(--texto-suave);
  margin-bottom: 2rem;
}

.tarjetas,
.rejilla-3,
.rejilla-2,
.rejilla-areas,
.rejilla-organica {
  display: grid;
  gap: 1.2rem;
}

.rejilla-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rejilla-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rejilla-organica { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tarjeta,
.tarjeta-area,
.tarjeta-organica,
.tarjeta-dato,
.tarjeta-galeria {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.tarjeta,
.tarjeta-area,
.tarjeta-organica,
.tarjeta-dato {
  padding: 1.35rem;
}

.tarjeta h3,
.tarjeta-area h3,
.tarjeta-organica h3,
.tarjeta-dato h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.texto-suave { color: var(--texto-suave); }
.marca-dato {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--azul-principal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.lista-contacto {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.lista-contacto li {
  padding: 0.45rem 0;
  border-top: 1px solid #e9eff4;
}

.lista-contacto li:first-child { border-top: 0; }

.galeria {
  margin-top: -2.4rem;
  position: relative;
  z-index: 2;
}

.contenedor-galeria {
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.pista-galeria {
  position: relative;
  aspect-ratio: 16 / 8;
  background: #d7e1e9;
}

.diapositiva {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.diapositiva.activa { opacity: 1; }

.diapositiva img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-galeria {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  flex-wrap: wrap;
}

.miniaturas {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.miniatura {
  width: 84px;
  height: 54px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.miniatura.activa { border-color: var(--celeste); }
.miniatura img { width: 100%; height: 100%; object-fit: cover; }

.bloque-destacado {
  background: linear-gradient(135deg, #0b4f88, #0b6c88);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
}

.bloque-destacado p,
.bloque-destacado li { color: rgba(255,255,255,0.92); }

.pagina-encabezado {
  background: linear-gradient(180deg, #eef5fb, #f8fbfd);
  border-bottom: 1px solid #dfe8ef;
}

.pagina-encabezado .contenedor {
  padding: 3.2rem 0 2.8rem;
}

.miga {
  color: var(--texto-suave);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.etiqueta-menor {
  display: inline-block;
  background: #ebf5fb;
  color: var(--azul-principal);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.8rem;
}

.grupo-dependencias {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e7eef4;
}

.grupo-dependencias h4 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.dependencia {
  border: 1px solid #e3ebf2;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: #fbfdff;
}

.dependencia:last-child { margin-bottom: 0; }

.tabla-datos {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tabla-datos th,
.tabla-datos td {
  border-bottom: 1px solid #e7eef4;
  text-align: left;
  padding: 0.85rem 0.65rem;
  vertical-align: top;
}

.tabla-datos th {
  color: var(--texto-suave);
  font-size: 0.92rem;
}

.aviso {
  border-left: 4px solid var(--celeste);
  background: #ecf9fb;
  padding: 1rem 1.1rem;
  border-radius: 0 14px 14px 0;
}

.pie {
  background: #09253c;
  color: rgba(255,255,255,0.92);
  margin-top: 3rem;
}

.pie .contenedor {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.pie a { color: #fff; }
.pie p, .pie li { color: rgba(255,255,255,0.82); }

.pie ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pie li { padding: 0.25rem 0; }

.pie-inferior {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0 1.4rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero .contenedor,
  .rejilla-3,
  .rejilla-areas,
  .rejilla-organica,
  .pie .contenedor,
  .rejilla-2 {
    grid-template-columns: 1fr;
  }

  .boton-menu { display: inline-flex; }

  .navegacion {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--borde);
    display: none;
  }

  .navegacion.abierta { display: block; }

  .navegacion ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
  }

  .navegacion a {
    display: block;
    padding: 0.9rem 0.75rem;
  }

  .galeria { margin-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 0.98rem; }
  .hero .contenedor { padding: 4.2rem 0 3.5rem; }
  .marca img { width: 56px; height: 56px; }
  .acciones { flex-direction: column; align-items: stretch; }
  .boton { width: 100%; }
  .miniatura { width: 72px; height: 48px; }
  .pista-galeria { aspect-ratio: 4 / 3; }
}


/* === Digesto de ordenanzas === */
.digesto-buscador {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.9rem;
  align-items: end;
  margin-top: 1.5rem;
}

.campo label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--texto-suave);
  margin-bottom: 0.35rem;
}

.campo input,
.campo select {
  width: 100%;
  border: 1px solid var(--borde);
  background: #fff;
  color: var(--texto);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
}

.digesto-acciones {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tabla-responsive {
  overflow-x: visible;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.tabla-digesto {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tabla-digesto th,
.tabla-digesto td {
  padding: 1rem 0.85rem;
  border-bottom: 1px solid #e7eef4;
  text-align: left;
  vertical-align: top;
}

.tabla-digesto th {
  font-size: 0.92rem;
  color: var(--texto-suave);
  background: #f8fbfd;
}

.tabla-digesto tr:hover td {
  background: #fbfdff;
}


.tabla-digesto th:nth-child(1),
.tabla-digesto td:nth-child(1) { width: 12%; }

.tabla-digesto th:nth-child(2),
.tabla-digesto td:nth-child(2) { width: 14%; }

.tabla-digesto th:nth-child(3),
.tabla-digesto td:nth-child(3) { width: 34%; }

.tabla-digesto th:nth-child(4),
.tabla-digesto td:nth-child(4) { width: 14%; }

.tabla-digesto th:nth-child(5),
.tabla-digesto td:nth-child(5) { width: 26%; }

.tabla-digesto td {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.estado-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.estado-pill.disponible {
  background: #e8f7ee;
  color: #166534;
}

.estado-pill.faltante {
  background: #fff4e5;
  color: #9a5a00;
}

.acciones-tabla {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.acciones-tabla .boton {
  white-space: normal;
}

.boton.chico {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.boton.terciario {
  background: #edf5fb;
  color: var(--azul-principal);
  border: 1px solid #d8e6f2;
}

.resumen-digesto {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--texto-suave);
  flex-wrap: wrap;
}

.paginacion-digesto {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.paginacion-digesto .texto-paginacion {
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.sin-resultados {
  padding: 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

@media (max-width: 960px) {
  .digesto-buscador {
    grid-template-columns: 1fr;
  }
}


.redes-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.redes-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.redes-footer a:hover {
  text-decoration: none;
  background: rgba(255,255,255,0.12);
}

.redes-footer svg {
  width: 18px;
  height: 18px;
}
