body {
  margin: 0;
  font-family: Arial;
  background: #f2f2f2;
}

/* HEADER */
/* .header {
  background: #d1a101;
  color: white;
  padding: 10px;

  display: flex;              /*  activa flex */
 /* justify-content: space-between; /* izquierda y derecha */
 /* align-items: center;        /* centra vertical */
/*} */

/* menus..................... */
.header {
  background: #d1a101;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Contenedor principal del texto */
.title {
  display: inline-flex;
  flex-direction: column; /* Alinea los dos span uno abajo del otro */
  padding-left: 35px;     /* Separa todo el bloque de texto del logo */
  line-height: 1.1;       /* Mantiene los renglones juntos */
  vertical-align: middle;
}

/* Primer renglón */
.text-top {
  font-size: 14px;
 
  font-weight: 500;       /* Opcional: le da un grosor intermedio */
}

/* Segundo renglón (La Paz) */
.text-bottom {
  font-size: 14px;
  /* font-weight: bold;      /* Opcional: hace resaltar "La Paz" */
  padding-left: 93px;      /* <--- Si quieres mover SOLO "La Paz" más a la derecha, sube este número (ej: 10px) */
}



.search-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
}

/* 🔥 buscador oculto */
.search-box {
  display: none;
  padding: 10px;
  background: white;
}

.search-box input {
  width: 100%;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
}
.search-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
}
/* .............. */
.search {
  width: 90%;
  margin-top: 8px;
  padding: 6px;
  border-radius: 8px;
  border: none;
}

/* CONTENIDO */
#content {
  padding: 15px;
  margin-bottom: 70px;
}

/* MENÚ INFERIOR */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #d1a101;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #ccc;
  z-index: 9999;
}

.bottom-nav a {
  font-size: 22px;
  text-decoration: none;
  color: #111;
  
  /* 🔥 clave del efecto */
  padding: 10px;
  border-radius: 50%;
  transition: 0.2s;
}


.bottom-nav a:active {
  background: rgba(0, 0, 0, 0.12);
}
.bottom-nav a:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* .icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
} */
/* 1. Hacemos que el contenedor mida 24px para que reserve el espacio original al lado del texto */
.icon {
  position: relative;
  width: 24px;
  height: 24px;
}

/* 2. Hacemos que la imagen flote encima y crezca a 50px sin empujar nada */
.icon img {
  position: absolute;
  top: 50%;         /* Centra verticalmente */
  left: 0;          /* Alinea a la izquierda */
  transform: translateY(-50%); /* Ajuste perfecto de centrado vertical */
  
  width: 60px;      /* El tamaño que tú querías */
  height: 60px;
  object-fit: contain;
  display: block;
  z-index: 10;      /* Se asegura de estar por delante de todo */
}

 /*carrusel */
.carrusel {
  display: flex;
  gap: 10px;

  overflow-x: auto;
  overflow-y: hidden;

  cursor: grab;

  /* 🔥 ESTO habilita feeling móvil/drag */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: none;

  user-select: none;
}

/* ocultar scrollbar */
.carrusel::-webkit-scrollbar {
  display: none;
}

.carrusel:active {
  cursor: grabbing;
}

.carrusel img {
  width: 150px;
  height: 200px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}
  /*carrusel */
.item {
  position: relative;
  flex-shrink: 0;
  overflow: hidden; /* 🔥 recorta el texto dentro de la imagen */
  border-radius: 10px; /* opcional pero mejora look */
}

/* 🔥 texto encima de la imagen */
.texto {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  color: #fff;
  font-size: 12px;
  text-align: center;

  padding: 6px;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0),
     rgba(0, 0, 0, 0.9)
  ); /* 🔥 más pro que un bloque negro */

  pointer-events: none; /* 🔥 evita que bloquee clic en la imagen */
}
/* para publicaiones  */
.post {
  width: 100%;
  max-width: 500px;   /* 🔥 limita en PC */
  margin: 10px auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-info {
  padding: 10px;
  font-weight: bold;
  font-size: 14px;
}

/* 🔥 ESTO ES LO IMPORTANTE */
.post img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.post a {
  display: block;
  padding: 10px;
  color: #e81a1a;
  text-decoration: none;
}
/* ******************** */
.noticias{
  width: 100%;
  max-width: 500px;   /* 🔥 limita en PC */
  margin: 10px auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-info {
  padding: 10px;
  font-weight: bold;
  font-size: 14px;
}
.post-text {
  padding: 10px;
  font-size: 13px;
  color: #444;
}
/* ******************** */
.page {
  padding: 10px;
}
#content {
    padding-bottom: 80px; /* 🔥 espacio para el menú */
}
/* ************ */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 10px;
    padding: 10px;
}

/* 🔥 TARJETA */
.map-item {
    position: relative; /* 👈 CLAVE (faltaba) */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* IMAGEN */
.map-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 🔥 TEXTO ENCIMA */
.map-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    color: white;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.4)
        
    );

    z-index: 2; /* 👈 asegura que esté encima */
}

/* BOTÓN */
.map-item a {
    display: block;
    padding: 8px;
    background: #d1a101;
    color: white;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
}
/* ************ */
/* *****stat**** */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

.sector-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.sector-card:active {
    transform: scale(0.97);
}
/* *****modal****** */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;

    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 92%;
    max-width: 600px;
    /* height: 90dvh; */
     height: 90vh;
    display: flex;
    flex-direction: column;

    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;

    -webkit-overflow-scrolling: touch;
}

.close {
    float: right;
    cursor: pointer;
}
/* ************** */
.file-card {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}
.file-card a {
    display: block;
    margin-top: 5px;
    background: #d1a101;
    color: white;
    padding: 8px;
    text-align: center;
    text-decoration: none;
}
/* *****modaldemografico repetir con los demas**** */
.sub-card {
    display: block;
    padding: 12px;
    margin: 8px 0;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sub-card:hover {
    background: #f0f0f0;
}
/* ****demografico.php***** */
.list-grid {
    padding: 10px;
}

.card-item {
    display: block;
    padding: 12px;
    margin: 8px 0;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-item:hover {
    background: #f5f5f5;
}