.margin-banner {
  margin: 0rem 0 4rem 0rem;
}

#noticias_principales {
  background-color: #f2f6f8;
  padding: 5rem 0rem;
  margin: 5rem 0rem 0rem 0rem;
}

#servicios {
  background-color: #fafbfd;
  padding: 3rem 0rem;
}

/*Modulos Home*/
.modulo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--blanco);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0rem;
  transition: all 0.5s ease-in-out;
  -webkit-box-shadow: 0rem 0.1rem 0.5rem 0.3rem rgba(212, 212, 212, 0.43);
  -moz-box-shadow: 0rem 0.1rem 0.5rem 0.3rem rgba(212, 212, 212, 0.43);
  box-shadow: 0rem 0.1rem 0.5rem 0.3rem rgba(212, 212, 212, 0.43);
}

.modulo:hover {
  transition: all 0.5s ease-in-out;
  -webkit-box-shadow: 0rem 0.2rem 0.6rem 0.4rem rgba(212, 212, 212, 0.9);
  -moz-box-shadow: 0rem 0.2rem 0.6rem 0.4rem rgba(212, 212, 212, 0.9);
  box-shadow: 0rem 0.2rem 0.6rem 0.4rem rgba(212, 212, 212, 0.9);
}

.icono_modulo {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--blanco);
  display: flex;
  justify-content: center;
  align-items: center;
}

.icono_modulo i {
  font-size: 2.5rem;
}

.texto_modulo {
  padding-left: 1rem;
  color: var(--blanco);
}

.texto_principal_modulo {
  font-size: 1.8rem;
  font-weight: 500;
}

/*Fin modulos Home*/

/*NOTICIAS*/

a .noticia img {
  border-radius: 0.8rem 0.8rem 0rem 0rem;

  width: 100%;
  display: block;
}

.subtitulo-home {
  padding: 0.5rem 0rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.titulo-parte1 {
  color: var(--negro);
}

.titulo-parte2 {
  color: var(--primario);
}

.subtitulo {
  font-size: 2.5rem;
  padding-left: 1rem;
}

.subtitulo-home i {
  color: var(--negro);
  font-weight: 500;
  font-size: 3rem;
}

.titulo-noticias {
  padding: 0;
  margin: 0;
}

.noticia {
  background-color: #fff;
  border-radius: 0.8rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 0rem;
  margin: 1.3rem;
  overflow: hidden;
}

.descripcion-noticia {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  justify-content: space-between;
}

.fecha_noticia {
  margin: 0;
}

.boton_leer_noticia {
  background-color: var(--primario);
  color: var(--blanco);
  border-radius: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.7rem;
}

.boton_leer_noticia i {
  font-size: 1.2rem;
}

/*Eventos*/
@media (max-width: 768px) {
  .iframe-calendar {
    min-height: 72rem;
  }
}

@media (min-width: 768px) {
  .iframe-calendar {
    min-height: 40rem;
  }
}

.eventos {
  margin: 5rem auto;
}

.icono-izquierda {
  background-color: #d9f2ff;
  border-radius: 10px;
  padding: 12px;
}

.icono-izquierda svg {
  width: 22px;
  height: 22px;
  color: #009ee2;
}

.subtitulo-home {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.icono-red {
  color: #009ee2;
}

/*Servicios*/
.contenedor-servicio {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  margin: 1.3rem;
  overflow: hidden;
}

.servicio_items {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nombre-servicio {
  font-weight: 800;
  font-size: 1.7rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.link-card {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(211, 211, 211, 0.06);
  text-align: center;
  padding: 1rem 1rem;
  transition: all 0.3s ease;
  height: 13rem;
  min-height: 13rem;
  max-height: 13rem;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  /* más realce al hacer hover */
}

.link-card a {
  color: var(--negro);
}

.descripcion-servicio {
  font-size: 1.2rem;
}

.icono-servicios {
  background-color: #d9f2ff;
  border-radius: 10px;
  padding: 10px;
}

.icono-servicios svg {
  width: 27px;
  height: 27px;
  color: #fff;
}
.icono-servicio-1 {
  background-color: var(--celeste);
  box-shadow: 0px 4px 12px -2px rgba(0, 158, 226, 0.25); /* sombra celeste */
  transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.icono-servicio-2 {
  background-color: var(--rojo);
  box-shadow: 0px 4px 12px -2px rgba(220, 53, 69, 0.25); /* sombra roja */
  transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.icono-servicio-3 {
  background-color: var(--verde);
  box-shadow: 0px 4px 12px -2px rgba(40, 167, 69, 0.25); /* sombra verde */
  transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.icono-servicio-4 {
  background-color: var(--amarillo);
  box-shadow: 0px 4px 12px -2px rgba(255, 193, 7, 0.25); /* sombra amarilla */
  transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.icono-servicio-5 {
  background-color: var(--naranja);
  box-shadow: 0px 4px 12px -2px rgba(255, 193, 7, 0.25); /* sombra amarilla */
  transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 768px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 768px) {
  .contenedor-servicio.link-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.5rem;
    background: #fff;
  }

  .contenedor-servicio .servicio_items {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
  }

  .contenedor-servicio .icono-servicios {
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    margin-bottom: 0;
  }

  /* NUEVO: Bloque de texto vertical */
  .contenedor-servicio .servicio-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }

  .contenedor-servicio .nombre-servicio {
    font-weight: bold;
    margin-bottom: 0.2rem;
    text-align: left;
  }

  .contenedor-servicio .descripcion-servicio {
    color: #555;
    text-align: left;
    margin: 0;
    padding: 0;
  }
}

/* Alto fijo solo en escritorio (web) */
@media (min-width: 769px) {
  .contenedor-servicio.link-card {
    min-height: 170px;
    max-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .link-inner {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .link-card span {
    font-size: 1.4rem;
    hyphens: auto;
  }
}

@media (max-width: 768px) {
  .icono-svg {
    width: 24px;
    height: 24px;
  }
}

/* 1. El padre directo de .listWrap */
.wrapSearch {
  position: relative;
  z-index: 10;
  /* suficiente para stacking, pero menor que .listWrap */
}

/* 2. El cuadro de sugerencias */
.listWrap {
  position: absolute;
  z-index: 9999;
  /* bien alto para que quede arriba de todo */
  width: 100%;
}

/* 3. Las tarjetas de acceso rápido */
.link-card {
  position: relative;
  z-index: 1;
  /* bajo, para que nunca tape al buscador */
}

@media (max-width: 768px) {
  #texto_busqueda::placeholder {
    font-size: 1.3rem;
    /* más chico aún si lo deseas */
  }
}

.contenedor-servicio {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.contenedor-servicio:hover {
  transform: scale(1.035);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13);
}

.contenedor-servicio .icono-servicios {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.contenedor-servicio:hover .icono-servicios {
  transform: scale(1.15);
}

.titulo-ayuda {
  font-size: 3rem;
  font-weight: 800;
  color: var(--negro);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  text-align: center;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .titulo-ayuda {
    font-size: 1.7rem;
  }
}

.titulo-ayuda {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.titulo-ayuda {
  font-size: 3rem;
  font-weight: 800;
  color: var(--negro);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  text-align: center;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .titulo-ayuda {
    font-size: 1.6rem;
  }
}

.titulo-ayuda {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.titulo-ayuda {
  color: #ffffff;
  /* Blanco puro */
  font-size: 2.8rem;
  /* Aumentado de 2.3rem */
  font-weight: 800;
  text-align: center;
  margin: 0 auto 2rem auto;
  /* Aumentado el margen inferior */
  padding: 0.6rem 1.2rem;
  /* Aumentado el padding */
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.3);
  /* Aumentadas las sombras */
  line-height: 1.2;
  /* Ajustado para mejor proporciÃ³n */
  letter-spacing: 0.8px;
  /* Ligeramente mÃ¡s espaciado */
  display: block;
  width: 100%;
  max-width: 900px;
  /* Aumentado el ancho mÃ¡ximo */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  transition: all 0.3s ease;
}

/* Efecto sutil al pasar el mouse */
.titulo-ayuda:hover {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7), 0 8px 16px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

/* Ajustes para mÃ³viles */
@media (max-width: 768px) {
  .titulo-ayuda {
    font-size: 2.2rem;
    /* TamaÃ±o mÃ¡s manejable en mÃ³viles */
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .titulo-ayuda {
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 767px) {
  .tana-float-mobile {
    position: fixed;
    bottom: 250px;
    right: 16px;
    z-index: 9998;
  }

  .tana-float-mobile picture img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primario);
  }
}

/* Ocultar en escritorio */
@media (min-width: 768px) {
  .tana-float-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .link-card span {
    white-space: normal;
    text-align: center;
    font-size: 1.4rem;
  }
}

@media (max-width:768px) {
  .link-card {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
    overflow: hidden;
  }

  .link-inner {
    flex-direction: row !important;
    /* icono a la izquierda, texto a la derecha */
    align-items: center;
    justify-content: flex-start;
    gap: 12px !important;
    height: 100%;
  }

  .link-card span {
    text-align: left;
  }
  .icono-svg {
    width: 28px;
    height: 28px;
}
}

@media (min-width: 992px) {
  .cinco-columnas .col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}