* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.titulo-gobierno {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-decoration: none; 
    display: block; 
    margin: 0;
    padding: 20px 0;
    letter-spacing: 0.5px;
}

.titulo-gobierno:hover {
    color: #8b1c3d;
}

body {
  font-family: Arial, sans-serif;
  background-color: #8b1c3d !important;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ///////////////////Header/////////////////// */
header {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  padding: 10px 30px;
  position: relative;
  z-index: 5000;
}

header img {
  height: 60px;
  margin-right: 15px;
}

header h1 {
  font-size: 20px;
  font-weight: normal;
  margin: 0;
  animation: fadeInUp 1s ease-out;
}

/* Navegación */
.navegador {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu {
  position: relative;
  margin-left: 5px;
}

.menul {
  font-size: 15px;
  animation: fadeInUp 1s ease-out;
  white-space: normal;
  display: inline-block;
  width: 100%;
}

.submenul {
  font-size: 12px;
  white-space: normal;
  display: inline-block;
  width: 100%;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #8b1c3d;
}

/*caja de los submenús*/
nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgb(220, 218, 218);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 6000;
}
nav ul li:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu {
  display: block;
  padding: 10px 15px;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

nav ul li ul li a:hover {
  color: #930a33;
}
/* ///////////////////////////////////
////////////////Contenido en main///////////77 
////////////////////////////////*/
.Inicio {
  flex: 1 0 auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
}

.subtitulo {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #600020;
}
.subtitulo-s{
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.subtitulo-s::after{
  content: "";
  position: absolute;
  bottom: 5px;
  left: -50%;
  height: 5px;
  background-color: #8b1c3d;
  width: 0;
  animation: underline-left 1s ease-out forwards;
}
/* Animación de subtitulo-s */
@keyframes underline-left {
  from { width: 0; }
  to { width: 200%; }
}

.texto {
  text-align: justify;
  margin-bottom: 1.2rem;
}
.texto-s{
  color: #333;
  margin-bottom: 1.2rem;
  margin-top: 10px
}
.texer{
  margin-bottom: 1.5rem;
  color: red;
}
.imgini img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border: 4px solid #ffffff;
}

.contenedor1 {
  text-align: center;
  margin-top: 30px;
}

.imangelogo {
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#acomodo {
  margin: auto;
  width: 100%;
  max-width: 1000px;
  font-size: 25px;
}

.vinetas {
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style-type: circle;
}
.vinetasn {
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style-type: decimal;
}
.vinetasl{
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style-type: upper-alpha;  
}

.vinetas li {
  margin-bottom: 0.6rem;
}

.Tabla {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
/* ///////////////Tabla/////////////// */
.tabla-eventos {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  background-color: #fff;
}

.tabla-eventos th, 
.tabla-eventos td {
  border: 1px solid #888;
  padding: 10px 15px;
  text-align: left;
  vertical-align: top;
}

.tabla-eventos th {
  background-color: #8b1c3d; 
  color: white;
  text-align: center;
  letter-spacing: 1px;
}

.tabla-eventos tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tabla-eventos tr:hover {
  background-color: #f1f1f1;
  transition: 0.3s;
}
/* //////////////////////////////////////////Tabla/////////// */
/* ==========Organigrama========== */
/* }////////////Organi////////////77 */
.organigrama {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nivel {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.bloque {
  background-color: #002f6c; 
  color: white;
  padding: 15px 20px;
  margin: 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 200px;
}
 /* Diferentes colores por cadsa seccion */
.jefatura { background-color: #001F54; }
.secretaria { background-color: #f5a623; }
.social { background-color: #e63946; }
.territorio { background-color: #2a9d8f; }
.economico { background-color: #2196f3; }
.seguridad { background-color: #1a237e; }
.sincategoria {
  background-color: white;
  color: black;
}

.linea {
  width: 2px;
  height: 20px;
  background-color: #000;
  margin: auto;
}
.lineaj{
  width: 2px;
  height: 20px;
  background-color: #001F54;
}
.vinetasS {
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style-type: none; 
}
        
.vinetasS li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}
        
.vinetasS li::before {
  content: "-"; 
  position: absolute;
  left: 0;
  color: #919191;
  font-weight: bold;
}
.vinetasSD {
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style-type: none;
}
        
.vinetasSD li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}
        
.vinetasSD li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #e63946;
  font-weight: bold;
}
.vinetasSG {
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style-type: none;
}
        
.vinetasSG li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}
        
.vinetasSG li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #2a9d8f;
  font-weight: bold;
}
.vinetasSC {
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style-type: none;
}
        
.vinetasSC li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}
        
.vinetasSC li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #2196f3;
  font-weight: bold;
}
.vinetasSS {
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style-type: none;
}
        
.vinetasSS li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}
        
.vinetasSS li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #1a237e;
  font-weight: bold;
}
/* }////////////Organi////////////77 */
/* ///////////////////IMAGENES////////////////////////7 */

.galeria {
  padding: 40px;
  text-align: center;
  background-color: #fff;
}

.galeria h2 {
  font-size: 28px;
  color: #222;
  margin-bottom: 30px;
}

.contenedor-galeria {
  column-count: 3;
  column-gap: 15px;
}

.imagen {
  position: relative;
  margin-bottom: 15px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.imagen img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.imagen:hover img {
  transform: scale(1.08);
}

/* Texto emergente con animación (POR AHORA NO SE UTILIZA)*/
.info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  opacity: 0;
  transform: translateY(100%);
  padding: 15px;
  text-align: center;
  transition: all 0.4s ease;
}

.imagen:hover .info {
  opacity: 1;
  transform: translateY(0);
}
/* ///////////////////IMAGENES////////////////////////7 */
.espacio {
  margin-right: 22px;
}

.parrafo {
  margin-bottom: 1rem;
}

.link,
.linkp {
  text-align: center;
  font-size: 1rem;
  color: #8b1c3d;
  margin-bottom: 0.4rem;
}

.linkp {
  margin-bottom: 0.2rem;
}
/*////////////////formato de login///////////////////////////////*/
.controls{
    width: 40%;
    border: 1px solid #8b1c3d;
    margin-bottom: 15px;
    padding: 11px 10px;
    background: white;
    font-size: 14px;
    font-weight: bold;
}
.controlsg{
    width: 100%;
    height: 200px;
    border: 1px solid #8b1c3d;
    margin-bottom: 15px;
    padding: 11px 10px;
    background: white;
    font-size: 14px;
    font-weight: bold;
}
.buttons{
    width: 20%;
    height: 40px;
    border: none;
    background: #8b1c3d;
    border: none;
    color: white;
    margin-top: 16px;
}
.controlsl{
    width: 200px;
    border: 1px solid #8b1c3d;
    margin-bottom: 15px;
    padding: 11px 10px;
    background: white;
    font-size: 14px;
    font-weight: bold;
}
.buttonsl{
    width: 200px;
    height: 50px;
    border: none;
    background: #8b1c3d;
    border: none;
    color: white;
    margin-top: 16px;
}
/*
/////////////////////Indice///////////////////////7
*/
.indice {
  left: 0;
  top: 50%;
  background: #f4f4f4;
  padding: 100px;
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}
        
.indice a {
  display: block;
  margin: 10px 0;
  text-decoration: none;
  color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s;
}
        
.indice a:hover {
  background: #8b1c3d;
  color: white;
}
        
  .seccion {
  text-align: center;
  padding: 50px 20px;
  min-height: 100vh;
  border-bottom: 1px solid #ddd;
}

/* ///////////////////////////////////////// */
/* ////////////////////Estilo para crear una noticia///////////////////// */
/* ///////////////////////////////////////// */
/* =============================== */
/* FORMULARIO CREAR NOTICIA        */
/* =============================== */

.form-noticias {
    width: 60%;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
}

.form-noticias label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #7c1f35;
    font-size: 17px;
}

.form-noticias input[type="text"],
.form-noticias input[type="file"],
.form-noticias select,
.form-noticias textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #7c1f35;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 5px;
}

.form-noticias textarea {
    height: 180px;
}

/* Botón */
.form-noticias button {
    margin-top: 20px;
    background-color: #7c1f35;
    color: #fff;
    padding: 10px 25px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.form-noticias button:hover {
    background-color: #5b1727;
}

/* CKEditor ajuste al 100% */
.ck-editor__editable_inline {
    min-height: 200px !important;
    border: 2px solid #7c1f35 !important;
    border-radius: 5px !important;
}

.ck-editor {
    margin-top: 10px;
}

/* ///////////////////////////////////////// */
/* ////////////////////Estilo para Ver las noticias///////////////////// */
/* ///////////////////////////////////////// */
/* Título */
.titulo-noticias {
    text-align: center;
    color: #861737;
    margin-bottom: 30px;
    font-size: 32px;
}

/* Filtro */
.filtro-noticias select {
    width: 300px;
    padding: 8px;
    border: 2px solid #861737;
    border-radius: 5px;
    margin: 0 auto 20px;
    display: block;
}

/* Botón crear noticia */
.crear-noticia-btn-container {
    text-align: center;
    margin-bottom: 25px;
}

.btn-crear-noticia {
    background-color: #861737;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-crear-noticia:hover {
    background-color: #a42048;
}

/* Lista de noticias */
.lista-noticias {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 80%;
    margin: auto;
}

/* Tarjeta */
.noticia-card {
    background: #ffffff;
    border-left: 8px solid #861737;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
}

/* Título */
.noticia-titulo {
    color: #861737;
    margin-bottom: 10px;
}

/* Imagen */
.noticia-imagen {
    width: 280px;
    border-radius: 5px;
    margin-bottom: 12px;
    display: block;
}

/* Contenido */
.noticia-contenido {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Delegación */
.noticia-delegacion {
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
}

/* Botones */
.noticia-actions {
    display: flex;
    gap: 12px;
}

.btn-modificar {
    background-color: #861737;
    padding: 8px 14px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.btn-modificar:hover {
    background-color: #a02148;
}

.btn-eliminar {
    background-color: #a00000;
    padding: 8px 14px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-eliminar:hover {
    background-color: #cc0000;
}

/* /////////////////Estilo de la lista de noticias2/////////////////////// */
.noticia-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    width: 70%;
    margin: 30px auto;

    border-left: 8px solid #7A0A19;
    border-right: 8px solid #7A0A19;
}

/* //////////////////Footer//////////////////////// */
footer {
  background-color: #dedede;
  padding: 20px 40px;
  margin-top: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col p {
  margin: 5px 0;
}

.redes {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.redes a {
  font-size: 24px;
  color: black;
  transition: color 0.3s, transform 0.3s;
}

.redes a:hover {
  color: #8b1c3d;
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 2px solid black;
  margin-top: 20px;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

/* //////////////////////Animaciones///////////////////////7 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-fade .carousel-item {
    transition: opacity 0.7s ease-in-out;
}


/* //////////////////////7Parte responsiva//////////////////// */
/* pantallas medianas */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .Inicio {
    padding: 1.5rem;
  }

  #acomodo {
    font-size: 20px;
  }

  .imgini img {
    max-width: 100%;
    height: auto;
  }
}

/* pantallas pequeñas */
@media (max-width: 768px) {
    .Inicio {
    width: calc(100% - 24px); 
    padding: 1.2rem;
  }
  header img {
    height: 45px;
  }

  header h1 {
    font-size: 1.2rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .subtitulo {
    font-size: 1.4rem;
  }

  #acomodo {
    font-size: 18px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .redes a {
    font-size: 20px;
  }
}
html, body {
    height: 100%;
    margin: 0;
}

/* ////////////Buscador////////////////// */
header, nav {
  overflow: visible;
}
.sugerencias-portal,
.sugerencias {
  position: absolute;            
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1100;                 
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
}


.sugerencias .grupo {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.sugerencias .grupo:last-child {
  border-bottom: none;
}

.sugerencias .grupo span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.sugerencias a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: #7a1530; 
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sugerencias a:hover {
  background: #f6f6f6;
  color: #5c0f24;
}

.sugerencias .sin {
  padding: 12px;
  font-size: 13px;
  color: #777;
  font-style: italic;
  text-align: center;
}
nav {
  position: relative;
  z-index: 5000;
}
.buscador-central {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1000;
    flex: 0 0 auto;
}

.buscador-central .buscador-wrapper {
    width: 100%;
    max-width: 520px;
    position: relative;
}

.buscador-central input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    font-size: 16px;
    border-radius: 30px;
    border: 1px solid #ccc;
    outline: none;
}
.buscador-central .btn-buscar {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #8b1c3d;
    cursor: pointer;
}
.buscador-central .buscador-wrapper .sugerencias {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
}
html, body { height: 100%; margin: 0; }

body{
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

header, .buscador-central, nav { flex: 0 0 auto; }

body > main{
  flex: 1 0 auto !important;
}

body > footer{
  margin-top: auto !important;
}
.noticia-card .noticia-imagen,
.noticia-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.noticia-card{
  overflow: hidden;
}
.noticia-card .noticia-imagen{
  height: 220px;      
  object-fit: cover;  
}
/* ====== Ancho consistente para la sección Noticias ====== */
.noticias-wrap{
  width: min(1100px, 100%);  /* como “Trámites”: ancho máximo pero responsivo */
  margin: 0 auto;
  padding: 0 16px;           /* aire en móvil */
}

/* (Opcional) que las cards llenen el ancho */
.noticia-card{
  width: 100%;
}

