body {
    font-family: "Arial Narrow";
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #333;
  }
  header {
    background-color: #2b3f80;
    color: white;
    padding: 1em 0;
    text-align: center;
    font-size: 1.5em;
  }
  nav {
    display: flex;
    justify-content: center;
    background-color: #273870;
    padding: 1em 0;
  }
  nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
    margin: 0 10px;
  }
  nav a:hover {
    background-color: #004d80;
  }
  .container {
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
  }
  .section {
    margin-bottom: 4em;
    padding: 2em;
    background-color: #e6f2ff;
    border-radius: 8px;
  }
  .section:nth-child(even) {
    background-color: #d9eaf7;
  }
  .section-title {
    margin: 1em 0;
    font-size: 1.5em;
    color: #005f99;
    text-align: center;
  }
  .pharmacy-list,
  .autoservice-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
  }
  .item {
    background-color: white;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
  }
  .item:hover {
    transform: translateY(-5px);
  }
  .item img {
    width: 100%;
    height: 120px;

    object-fit: cover;
    border-radius: 8px;
  }
  .item h3 {
    margin: 0.5em 0;
    color: #005f99;
  }
  .item a {
    text-decoration: none;
    color: #007acc;
  }
  .item a:hover {
    text-decoration: underline;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 600px;
    margin: 0 auto;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
  }
  .contact-form button {
    padding: 1em;
    border: none;
    border-radius: 8px;
    background-color: #2b3f80;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .contact-form button:hover {
    background-color: #2b3f80;
  }
  .hero {
    position: relative;
    height: 400px;
    background: url("/img/portada.png") no-repeat center center/cover;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 51, 0.7); /* Dark blue overlay */
  }
  .hero-content {
    position: relative;
    z-index: 1;
  }
  .hero h1 {
    font-size: 2.5em;
    margin: 0;
  }
  .hero p {
    font-size: 1.2em;
    margin: 0.5em 0 0;
  }
  #map {
    width: 100%;
    height: 580px;
    box-shadow: 5px 5px 5px #888;
  }
  .doctor-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    align-items: center;
  }
  .doctor-section img {
    flex: 1 1 300px;
    max-width: 100%;
    border-radius: 8px;
  }
  .doctor-description {
    flex: 2 1 400px;
  }
  @media (max-width: 768px) {
    nav {
      flex-direction: column;
    }
    .section {
      padding: 1em;
    }
    .pharmacy-list,
    .autoservice-list {
      grid-template-columns: 1fr;
    }
    .hero {
      height: 300px;
    }
    .hero h1 {
      font-size: 1.8em;
    }
    .hero p {
      font-size: 1em;
    }
  }
  .footer-like {
    background-color: #2b3f80;
    color: white;
    padding: 2em 0;
    text-align: center;
  }

  .footer-like .section-title {
    color: #ffffff;
    margin-bottom: 1em;
  }

  .footer-like p {
    color: #ffffff;
    margin-bottom: 0.5em;
  }

  .footer-like .contact-info {
    margin-top: 1em;
    color: #ffffff;
  }
  .whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .whatsapp-button img {
    width: 35px;
    height: 35px;
  }
  .footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #2b3f80;
    color: #fff;
    padding: 20px;
  }

  .footer-section {
    flex: 1;
    margin: 0 10px;
    min-width: 200px;
  }

  .footer-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }

  .footer-section p,
  .footer-section ul {
    margin: 5px 0;
  }

  .footer-section a {
    color: #fff;
    text-decoration: none;
  }

  .footer-section ul {
    list-style: none;
    padding: 0;
  }

  .footer-section ul li {
    margin: 5px 0;
  }

  .social-icons a {
    margin: 0 5px;
  }

  .social-icons img,
  .whatsapp-icon {
    width: 20px;
    height: 20px;
  }

  .quote-button {
    background-color: #f00;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
    border-radius: 5px;
  }

  .quote-button:hover {
    background-color: #c00;
  }

  .footer-section.copyright {
    flex-basis: 100%;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 10px;
  }
  .carousel {
    max-width: 80%; /* Ancho máximo del carrusel */
    margin: 0 auto; 
    margin-bottom: 10px;/* Centrar horizontalmente */
  }

  .carousel img {
    width: 100%; /* Asegura que las imágenes ocupen todo el ancho del contenedor */
    height: auto; /* Mantener la proporción de la imagen */
  }
  @media (max-width: 480px) {
    .hero {
      height: 200px;
    }
    .hero h1 {
      font-size: 1.5em;
    }
    .hero p {
      font-size: 0.9em;
    }
  }