@media (max-width: 768px) {
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Ajuste del logo en la navbar y el footer */
  footer .navbar-brand img {
    width: 100%;
    height: auto;
  }

  .nav-item {
    margin-bottom: 10px;
  }

  /* Sección de servicio (título y fondo) */
  .service-image {
    width: 100%;
  }

  .service-title h2 {
    font-size: 2rem;
  }

  .service-title h3 {
    font-size: 2rem;
  }

  /* Descripción del servicio */
  .service-description h2 {
    font-size: 1.4rem;
  }

  .service-description p {
    font-size: 1rem;
    padding: 1rem;
  }

  /* Beneficios del servicio */
  .caracteristicas {
    padding: 1rem;
  }

  .caracteristicas .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .feature-title {
    font-size: 1.2rem;
  }

  .feature-description {
    font-size: 1rem;
  }

  /* Testimonios */
  .testimonial-section .col-md-4 {
    flex: 0 0 100%;
    max-width: 90%;
    margin-bottom: 1rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* Footer */
  footer .row {
    text-align: center;
    flex-direction: column;
  }

  footer .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  footer .nav-item {
    text-align: center;
    margin-bottom: 10px;
  }

  footer .col-md-4 {
    margin-bottom: 20px;
  }

  /* Iconos de redes sociales en el footer */
  .fim {
    font-size: 2.5rem;
  }
  .nav-item{
    text-align: center;
  }
  .underline-effect:hover::after {
    width: 50%;
  }
}
