
.margin-bottom-2 {
  margin-bottom: 150px;
}
  /* Estilo para la barra de navegación */
  .custom-navbar-bg {
    background-color: #860e65; /* Color morado oscuro que coincide con tu paginación */
  }
  
  /* Estilo para los enlaces de la barra */
  .navbar-nav .nav-link {
    color: #ffffff !important; /* Texto blanco */
    padding: 10px 15px;
    transition: background-color 0.3s ease;
  }
  
  /* Efecto hover para los enlaces */
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background-color: #a13a85 !important; /* Morado más claro al pasar el cursor */
    color: #ffffff !important;
  }
  
  /* Enlace activo */
  .navbar-nav .nav-link.active {
    background-color: #6a0b4f !important; /* Morado más oscuro para el activo */
    font-weight: bold;
  }
  
  /* Estilo para el menú desplegable */
  .dropdown-ayuntamientos {
    background-color: #860e65 !important; /* Mismo color que la navbar */
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
  }
  
  /* Estilo para los items del dropdown */
  .dropdown-ayuntamientos .dropdown-item {
    color: #ffffff !important; /* Texto blanco */
    padding: 8px 16px;
    transition: background-color 0.2s ease;
  }
  
  /* Efecto hover para los items del dropdown */
  .dropdown-ayuntamientos .dropdown-item:hover,
  .dropdown-ayuntamientos .dropdown-item:focus {
    background-color: #a13a85 !important; /* Morado más claro al pasar el cursor */
    color: #ffffff !important;
  }
  
  /* Estilo para el toggle del dropdown cuando está abierto */
  .navbar-nav .nav-link.active.dropdown-toggle.show {
    background-color: #6a0b4f !important;
  }
  
  /* Estilo para el icono del toggler en móviles */
  .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

/* Fondo de color personalizado para el nav bar */
  .custom-navbar-bg {
    background-color: #860e65; /* Color de fondo */
    height: 60px; /* Altura personalizada para desktop */
  }

  /* Estilos personalizados para el nav bar horizontal */
  .navbar-light .navbar-nav .nav-link {
    color: #e9e9e9; /* Color del texto */
    font-weight: 500; /* Grosor de la fuente */
    margin: 0 10px; /* Espaciado entre enlaces (reducido) */
    text-decoration: none; /* Elimina el subrayado por defecto */
    font-family: 'Arial', sans-serif; /* Cambiar el tipo de letra */
    font-size: 12px; /* Tamaño de la fuente */
    text-align: center; /* Centrar texto */
  }

  .navbar-light .navbar-nav .nav-link:hover {
    color: #f0c9e7; /* Color del texto al pasar el mouse */
    text-decoration: underline; /* Subrayado al pasar el cursor */
    transform: translateY(-2px); /* Efecto hover */
  }

  .navbar-light .navbar-toggler {
    border-color: #ffffff; /* Color del borde del botón toggler */
  }

  /* Media queries para dispositivos móviles */
  @media (max-width: 992px) {
    .custom-navbar-bg {
      height: auto; /* Altura automática en móviles */
      padding: 10px 0; /* Espaciado interno para móviles */
    }

    .navbar-light .navbar-nav .nav-link {
      margin: 5px 0; /* Reducir espaciado entre enlaces en móviles */
      font-size: 14px; /* Reducir tamaño de la fuente en móviles */
      text-align: center; /* Centrar texto en móviles */
    }

    .navbar-nav {
      padding: 10px 0; /* Espaciado interno para el menú desplegable */
    }
  }

    /* Estilos para el enlace activo */
    .navbar-nav .nav-link.active {
      font-weight: bold; /* Texto en negrita */
      color: #ffffff !important; /* Color del texto */
      border-radius: 50px; /* Bordes redondeados */
      box-shadow: 0 4px 8px rgb(255, 104, 230); /* Efecto de sombra */
      padding: 8px 16px; /* Espaciado interno */
      transition: all 0.3s ease; /* Transición suave */
    }

    /* Efecto hover para el enlace activo (opcional) */
    .navbar-nav .nav-link.active:hover {
      box-shadow: 0 6px 12px rgb(247, 62, 216); /* Sombra más pronunciada */
    }
 /* Clase para que las letras siempre sean blancas */
 .navbar-nav .nav-link {
  color: white !important; /* Color blanco para todos los enlaces */
}

    
body {
  margin: 0;
  padding: 0;
  text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
strong,
ul li,
ol li {
  color: #9d3c8a !important;
  font-weight: bolder !important;
}

.btn-menu {
  background-color: #9d3c8a;
  outline: none;
  color: #ffffff;
  font-weight: bolder;
}

.btn-menu:hover {
  background-color: #662659;
  color: #ffffff;
  box-shadow: 3px 3px 4px #575757;
}

/* CARDS  */
.btn-cards {
  background-color: rgba(157, 60, 138, 0.5);
  outline: none;
  color: #ffffff;
  font-weight: bolder;
  border-radius: 0 0 20px 20px;
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  text-align: center;
  transition: all 0.5s ease;
  z-index: 2;
}

.btn-cards:hover {
  background-color: #662659;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* GRID */
.cards-nuevo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 15px;
  width: 80%;
  margin: auto;
}

/* CARD */
.card-item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  top: 0;
  overflow: hidden;
  border-radius: 20px;
}


.card-link {
  display: block;
  position: relative;
  text-decoration: none; /* quita subrayado */
  color: inherit; /* hereda color del texto */
}

.card-link:hover .img-cards {
  filter: grayscale(0%) brightness(1);
}

.card-link:hover .btn-cards {
  background-color: #662659;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* 🔹 Imagen con escala de grises por defecto */
.img-cards {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.5s ease;
}

/* 🔹 Cuando pasas el mouse sobre la card o el botón, vuelve al color normal */
.card-item:hover .img-cards,
.btn-cards:hover ~ .img-cards {
  filter: grayscale(0%);
}


/* CARDS FIN */

/* CARD 2 */
.card-item_2 {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  top: 0;
  overflow: hidden;
  border-radius: 20px;
}


.card-link_2 {
  display: block;
  position: relative;
  text-decoration: none; /* quita subrayado */
  color: inherit; /* hereda color del texto */
}

.card-link_2:hover .img-cards_2 {
  filter: grayscale(0%) brightness(1);
}

.card-link_2:hover .btn-cards_2 {
  background-color: #662659;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* 🔹 Imagen con escala de grises por defecto 2 */
.img-cards_2 {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: all 0.5s ease;
}

/* Hover sobre toda la card o link */
.card-item_2:hover .img-cards_2,
.card-link_2:hover .img-cards_2 {
  filter: grayscale(0%) brightness(1);
}

.card-item_2:hover .btn-cards_2,
.card-link_2:hover .btn-cards_2 {
  background-color: #662659;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.btn-cards_2 {
  background-color: rgba(157, 60, 138, 0.5);
  outline: none;
  color: #ffffff;
  font-weight: bolder;
  border-radius: 0 0 20px 20px;
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  text-align: center;
  transition: all 0.5s ease;
  z-index: 2;
}

.btn-cards_2:hover {
  background-color: #662659;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* CARDS FIN 2 */




.title-header {
  color: #9d3c8a !important;
  margin: auto;
  font-size: 25px;
  letter-spacing: 10px;
  word-spacing: 10px;
  font-weight: bolder;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: #9d3c8a;
  background-color: #fff;
  border-color: #9d3c8a #9d3c8a #fff;
  /* font-weight: bolder; */
}

/* .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link { */
/* color: #9d3c8a; */
/* font-weight: bolder; */
/* background-color: #fff; */
/* border-color: #9d3c8a #9d3c8a #fff; */
/* } */

.nav-tabs .nav-link {
  color: #555555;
  font-weight: bolder;
}

.nav-link:hover {
  color: #5d636b;
}

.nav-tabs {
  border-bottom: 1px solid #9d3c8a;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #9d3c8a;
  font-weight: bolder;
}

.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #000;
  background-clip: padding-box;
  border: 0;
  border-top: 10px solid #dc354500;
  border-bottom: 10px solid #dc354500;
  /* opacity: .5; */
  transition: opacity .6s ease;
}


.nav-pills .nav-link.active {
  background-color: #9d3c8a;
  color: #ffffff;
}

.nav-pills .nav-link.active:hover {
  background-color: #662659;
  color: #ffffff;
}

.nav-pills .nav-link:hover {
  background-color: #dfdfdf;
  color: #ffffff;
}

.nav-pills .nav-link {
  background: 0 0;
  border: 1px solid #dfdfdf;
  border-radius: 0 !important;
  color: #000000;
}

/******************************************* ICONOS DE ACCION AFIRMATIVA ********************************************************/

.fa-adjust1,
.no-font-needed {
  color: transparent;
  background: linear-gradient(to right, rgb(165 169 214) 0%, rgb(165 169 214) 50%, rgb(165 169 214) 50%, rgb(165 169 214) 100%);
  border-radius: 50%;
  width: 18px;
  height: 18px;
}

.fa-adjust2,
.no-font-needed {
  color: transparent;
  background: linear-gradient(to right, rgb(238 115 160) 0%, rgb(238 115 160) 50%, rgb(238 115 160) 50%, rgb(238 115 160) 100%);
  border-radius: 50%;
  width: 18px;
  height: 18px;
}

.fa-adjust3,
.no-font-needed {
  color: transparent;
  background: linear-gradient(to right, rgb(238 115 160) 0%, rgb(238 115 160) 50%, rgb(165 169 214) 50%, rgb(165 169 214) 100%);
  border-radius: 50%;
  width: 18px;
  height: 18px;
}

/****************************************** FIN DE ICONOS DE ACCION AFIRMATIVA ***************************************************/

/**********************************************UNION DE FILAS EN TABLA ********************************************************/
#sinborde {
  border-top: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
}

#sinbordei {
  border-bottom: 3px solid #ffffff;
}

/*******************************************FIN DE UNION DE FILAS EN TABLA**********************************************/

/******************************************AJUSTE DE TAMAÑOS DE LAS IMAGENES*************************************************/

#gobernadora {
  max-width: 40%;
  max-height: 40%;
}

#legislatura {
  max-width: 98%;
  max-height: 98%;
}

#ayuntamientos {
  max-width: 100%;
  max-height: 100%;
}

#sindicaturas {
  max-width: 80%;
  max-height: 80%;
}

#usos_costumbres {
  max-width: 95%;
  max-height: 95%;
}

/****************************************FIN DE AJUSTE DE TAMAÑOS DE LAS IMAGENES**********************************************/

/*********************************************   Estilos de la tabla    *************************************************/
table {
  width: 100%;
  border: none;
}

.table-responsive {
  max-height: 450px;

}

table th:first-child {
  color: #AE178C;
}

th {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

td {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

thead {
  position: sticky;
  top: -2px;
  background: #ffffff;
}

.table thead {
  vertical-align: middle;
}

tr {
  font-size: 15px;
  border-top: 3px solid #AE178C;
  border-bottom: 3px solid #AE178C;
}

/******************************************  FIN DE ESTILOS DE LA TABLA  ******************************************************/
/********************************************************ENCABEZADOS**************************************************************/
.encabezado-principal {
  color: #AE178C;
  font-family: 'Segoe UI';

}

.sub-encabezado {
  color: #89878C;
  font-family: 'Segoe UI';
  font-size: 20px;
}

.int-ayuntamiento {
  color: #DA0080;
  font-family: 'Segoe UI';
  font-weight: bold;
  font-size: 23px;
}

.tipo-eleccion {
  color: #AE178C;
  font-family: 'Segoe UI';
  text-underline-position: under;
  text-decoration: underline 4px;
  font-weight: bold;
}

.subtipo-eleccion {
  color: #AE178C;
  font-family: 'Segoe UI';
  font-size: 20px;
}

/************************************************FIN DE ENCABEZADOS**********************************************************/
a {
  color: #5d636b;
}

.morado {
  color: #AE178C;

}





/************************************************SLIDER INICIO **********************************************************/

  /* Contenedor de contenido del carousel con altura responsiva */
  .carousel-content {
    height: 40vh; /* Altura relativa al viewport */
    min-height: 250px; /* Altura mínima para evitar que sea demasiado pequeño */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px; /* Espaciado interno */
  }

  /* Estilos para los puntos de color */
  .carousel-indicators {
    position: static; /* Puntos fijos debajo del contenido */
    margin-top: 20px; /* Espacio entre el texto y los puntos */
    justify-content: center; /* Centrar los puntos */
  }

  .carousel-indicators button {
    background-color: #ff69b4; /* Color rosa */
    width: 15px; /* Tamaño aumentado */
    height: 15px; /* Tamaño aumentado */
    border-radius: 50%;
    border: none;
    margin: 0 5px; /* Espacio entre los puntos */
  }

  .carousel-indicators .active {
    background-color: #800080; /* Color morado */
  }

 
  .text-justify {
    text-align: justify;
    font-size: 1.0rem; 

  }


  @media (max-width: 768px) {
    .carousel-content {
      height: 50vh; 
      min-height: 200px;
    }

    h3 {
      font-size: 1.5rem; 
    }

    p {
      font-size: 0.9rem;
    }

    .carousel-indicators button {
      width: 12px;
      height: 12px;
    }
  }


/************************************************ ESTILO FOOTER **********************************************************/
/* ESTILOS GENERALES DEL FOOTER */
.footer-main {
  background-color: #860e65;
  color: white;
  padding: 40px 0;
  font-family: Arial, sans-serif;
}

.container-foot {
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

.row-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* COLUMNA DE CONTACTO */
.contact-foot {
  flex: 0 0 50%;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* COLUMNA DE REDES SOCIALES */
.social-foot {
  flex: 0 0 40%;
  padding: 0 15px;
}

.title-foot {
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.text-foot {
  margin-bottom: 10px;
  line-height: 1.5;
}

.bold-foot {
  font-weight: bold;
}

/* ESTILOS PARA LOS ICONOS */
.social-icons-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.social-link-foot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 173, 235, 0.384);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link-foot:hover {
  transform: scale(1.1);
  background-color: rgba(255, 173, 235, 0.6);
}

.icon-foot {
  font-size: 1.5rem;
}

/* IMPORTANTE: Asegúrate de tener Font Awesome incluido */
/* Agrega esto en el <head> de tu HTML:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
*/

/* RESPONSIVIDAD */
@media (max-width: 768px) {
  .contact-foot, 
  .social-foot {
    flex: 0 0 100%;
    text-align: center;
  }
  
  .social-icons-foot {
    justify-content: center;
  }
  
  .title-foot {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 30px 0;
  }
  
  .text-foot {
    font-size: 0.9rem;
  }
  
  .social-link-foot {
    width: 40px;
    height: 40px;
  }
  
  .icon-foot {
    font-size: 1.2rem;
  }
}

    
/************************************************TEXTO PRINCIPAL NAV **********************************************************/


.navbar-brand.title-header {
  font-size: 1.5rem; 
  white-space: normal; 
  text-align: center; 
}

@media (max-width: 768px) {
  .navbar-brand.title-header {
    font-size: 1.2rem; 
  }
}

@media (max-width: 576px) {
  .navbar-brand.title-header {
    font-size: 1rem; 
  }
}
