/* Banner Principal Barra Principal */
.bg-muni {
    background-color: #BC1817 !important;
}

.bg-muni .brr-nav a img {
    height: 3rem;
    object-fit: contain;
}

.bg-muni .brr-nav{
    padding: 0 1rem;
    max-width: 1320px;
    margin: auto;
}

.contentNoticiaScr .cuerpodescripNoti{
        height: 300px;
    }

@media (max-width: 768px) {
    /* Banner Principal en Movil */
    .bg-muni .brr-nav a img {
        height: 2.5rem;
        object-fit: contain;
    }

    .bg-muni .brr-nav{
        padding: 0 2px !important;
    }

    .Portales{
        width: 100%;
    }

    .Portales img{
        max-width: 100%;
        height: 50px !important;
    }

    .menuPrincipal{
        background: #BC1817;
    }
}

/*CONTENEDOR DE TODO EL CUERPO */
#todo{
	width: 100%;
	height: auto;
	margin: auto;
    padding: 0;
	box-shadow: 0px 5px 5px #888888;
	background: #FFFFFF;
    padding-bottom: 1px;
}

/*FOOTER*/
footer a{
    text-decoration: none;
}

footer a:hover {
  color: #fff !important;
  text-decoration: underline;
  text-decoration: none;
}

.tituloseccion{
    border-bottom: 3px red solid !important;
    padding-bottom: 7px;
    margin-bottom: 24px;
    font-family: 'Trebuchet MS', sans-serif;
}

.tituloNoticia{
    font-weight: bold !important;
    text-align: center;
}

.imagen-tarjeta {
  height: 100%;
}

#contenido{
    padding: 0 30px;
}

/* Sección de Enlaces */
.tarjeta-enlaces-principal{
    border-radius: 20px !important;
    /* border: 1px #BC1817 solid !important; */
}

.card-img {
    height: 200px;
    border-radius: 20px !important;
}



/* Modal que carga en la pagina principal */
.cuerpo_modal{ 
    padding: 0 70px !important; 
    text-align: justify; 
    padding-bottom: 25px !important;
}

.rsptaGeneralModal{
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-family: Verdana; 
    width: 100%; 
    padding: 20px; 
    gap: 30px;
}

.cuerpoModalAviso{
    display: flex; 
    align-items: center; 
    gap: 15px; 
    width: 100%;
}

.logoMunilambayequeMODAL{
    width: 180px;
}

.seccionNoticiaPrinc{
    padding: 0 24px;
}

/* Para el movil */
@media (max-width: 992px) {
    .cuerpo_modal{
        padding: 0 30px !important;
        padding-bottom: 25px !important;
    }

    .rsptaGeneralModal{
        padding: 0 !important; 
        gap: 1px;
    }

    .cuerpoModalAviso{
        display: flex;
        font-size: 0.913rem;
        flex-direction: column;
        align-items: center;
        gap: 10px; 
        width: 100%;
    }
}




@media (max-width: 768px) {
    .contentNoticiaScr .cuerpodescripNoti{
        height: 150px;
    }
}

@media (max-width: 992px) {
  .social-icons,
  form[role="search"] {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .Portales {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .Portales img {
    height: 45px !important;
  }

  .Portales .portalTranparencia {
    height: 60px !important;
  }

  .Portales .gob {
    height: 70px !important;
  }
}

/* Tarjeta Principal, debajo del carousel */

.seccionTarjetasPaginasDinamicas{
    padding: 24px;
}

.tarjetaPrinc{
    width: 23rem; 
    height: 14rem; 
}

.tarjetaPrinc .cuerpoTarjeta{
    align-items: center;
    display: flex;
    flex-direction: column;
}

.tarjetaPrinc .cuerpoTarjeta img{
    width: 100px;
    height: 120px;
    padding-bottom: 10px;
}

/* TARJETAS QUE ESTA EN LA SECCIÓN DE BIENVENIDOS */
/*ESTILOS DE LA PÁG PRINCIPAL DE SERVICIOS*/
.ContenedorTarjetasMunicipalidad{
  display: flex;
  flex-wrap: wrap;
  border-radius: 15px;
  margin-top: 25px;
  gap: 20px;
}

.ContenedorTarjetasMunicipalidad .tituloCardServicio{
  margin: 0;
  text-align: center;
  text-decoration: none;
  color: black;
}

.ContenedorTarjetasMunicipalidad .tituloCardServicio h5{
  font-size: 17px;
  margin-top: 12px;
}

.ContenedorTarjetasMunicipalidad .cuerpoTrajetaServicio {
  padding: 0 15px;
  color: rgb(105, 103, 103);
  font-size: 14px;
}

.cabeceraContendorTarjetasServicios{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Contenedor scroll horizontal */
.tarjetas-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tarjetas-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;

  flex-wrap: nowrap; /* No permitir que las tarjetas se envuelvan */
}

.tarjetas-scroll-container .tarjetaPrinc {
  flex: 0 0 auto; /* Evita que las tarjetas se encogan o estiren */
  width: 22rem;   /* Ancho fijo */
  height: 15rem;  /* Alto fijo */
}

.tarjetas-scroll-container .tarjetaPrinc .titleTarjetaPrincip{
    padding-bottom: 16px;
}

/* Opcional: ocultar scroll en navegadores webkit */
.tarjetas-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Botones */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  border: none;
  color: black;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 10;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media(max-width: 1200px){

    .seccionTarjetasPaginasDinamicas{
        padding-top: 15px;
        padding-bottom: 10px;
    }

    .tarjetas-scroll-container .tarjetaPrinc {
        width: 18rem;   /* Ancho fijo */
        height: 11rem;  /* Alto fijo */
    }

    .tarjetas-scroll-container .tarjetaPrinc .tarjetaPrincipIMG{
        width: 4rem;
        height: 4.5rem;
    }

    .tarjetas-scroll-container .tarjetaPrinc .titleTarjetaPrincip{
        font-size: 17px;
        padding-bottom: 12px;
    }

    .tarjetas-scroll-container .tarjetaPrinc  .botonaccesoPrinciTarj{
        font-size: 13px;
    }
}


.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

.scroll-btn:hover {
  background-color: rgba(255, 255, 255, 0.889);
  color: black;
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-btn {
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 469px){

    .logoMunilambayequeMODAL{
        width: 120px;
    }

    .cuerpoModalAviso{
        font-size: 13px;
    }

    
}

@media (max-width: 400px){
    .tarjetas-scroll-container{
        padding-bottom: 0px;
    }

    .tituloseccion{
        padding-bottom: 5px;
        margin-bottom: 16px;
    }

    .tarjetas-scroll-container .tarjetaPrinc {
        width: 18rem;   /* Ancho fijo */
        height: 11rem;  /* Alto fijo */
        margin: 0 2rem;
    }
}


.linkTarjetaDinamica {
  text-decoration: none;
}

/* ============================= */
/* SECCIÓN CONTÁCTANOS */
/* ============================= */

.tarjeta-enlaces-principal {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tarjeta-enlaces-principal:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.tarjeta-enlaces-principal img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    padding: 15px;
    background: #fff;
}


/* ============================= */
/* SECCIÓN VER MÁS SOBRE */
/* ============================= */

.tarjeta-enlaces-principal-ver {
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.tarjeta-enlaces-principal-ver:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.tarjeta-enlaces-principal-ver img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}


/* Responsive */
@media (max-width: 768px) {

    .tarjeta-enlaces-principal img {
        height: 130px;
    }

    .tarjeta-enlaces-principal-ver img {
        height: 100px;
    }
}
