/* About section */
* {
  margin: 0;
}

body {
  background-color: #f4f4f4;
  color: #333;
}

.about-section {
  padding: 30px 20px;
  background-color: #fff;
  text-align: center;
}

.container {
  max-width: 100%;
  margin: 0 auto;
}

.about-title { /* Clase para el h1 */
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.about-text { /* Clase para el p */
  font-family: 'Open Sans', sans-serif;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
  text-align: left;
}

strong {
  font-weight: 600;
  color: #2c3e50;
}

/* Section titles */
.services-title { /* Clase para el h2 en "Servicios" */
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Services section */
.services-section {
  padding: 30px 50px;
  background-color: #f9f9f9;
}

.services {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.service {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: all 0.3s ease-in-out; 
}


.service-title { /* Clase para el h3 */
  font-family: 'Playfair Display', serif;
  font-size: 2;
  color: #2c3e50;
  margin-bottom: 10px;
}

.service-text { /* Clase para el p dentro de service */
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #555;
}

.service:hover {
  transform: scale(1.05); 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

/* Section de galeria */
.image-gallery {
  padding: 30px 20px;
  background-color: #f4f4f4;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.gallery-title { /* Clase para el h2 en galería */
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.gallery img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Efecto de zoom a pantalla completa */
.zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Map section */
.map-section {
  width: 100%; 
  padding: 30px 20px;
  background-color: #fff;
  box-sizing: border-box;
}

.map-title { /* Clase para el h2 en la sección del mapa */
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.map-container {
  width: 100%; 
  height: 450px;
  overflow: hidden;
  border-radius: 15px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  transition: box-shadow 0.3s;
}

.map-container:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
}

.map-container iframe {
  width: 100%; 
  height: 100%; 
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .about-title { /* Ajuste en h1 */
      font-size: 2rem;
  }

  .services-title, .gallery-title, .map-title { /* Ajustes en h2 */
      font-size: 1.5rem;
  }

  .about-text { /* Ajuste en p */
      font-size: 1rem;
  }

  .gallery img {
      width: 150px;
      height: 100px;
  }

  .service {
      flex: 1 1 100%; /* Cambia a una columna */
  }
}

@media (max-width: 1469px) {
  .service{
    flex: 1 1 calc(30% - 0px);
  }
}


/* Contact Section */
.contact-section {
  width: 100%; 
  padding: 30px 20px;
  background-color: #f3f3f3;
  box-sizing: border-box;
  text-align: center;
}

.contact-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.contact-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Permite que los elementos se ajusten al ancho disponible */
  gap: 30px;
}

.contact-links ul {
  text-align: center;
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap; /* Ajusta el contenido si no cabe en una línea */
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.contact-links li {
  display: inline-block;
  flex: 1 1 auto; /* Los elementos ocupan un ancho adaptable */
  max-width: none;
  box-sizing: border-box;
}

.contact-links a {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  padding: 10px;
  border-radius: 8px;
  background-color: #c5c5c52a;
  display: block;
}

.contact-links a:hover {
  color: #2c3e50;
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

@media (max-width: 1024px) {
  /* Rango para pantallas intermedias */
  .contact-links ul {
    flex-wrap: wrap;
  }

  .contact-links li {
    flex: 1 1 calc(33.33% - 20px); /* Tres elementos por fila */
    max-width: calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .contact-title {
    font-size: 2rem;
  }

  .contact-links ul {
    flex-wrap: wrap;
  }

  .contact-links li {
    flex: 1 1 calc(50% - 20px); /* Dos elementos por fila */
    max-width: calc(50% - 20px);
  }

  .contact-links a {
    font-size: 1rem;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .contact-title {
    font-size: 1.8rem;
  }

  .contact-links ul {
    flex-wrap: wrap;
  }

  .contact-links li {
    flex: 1 1 calc(100% - 20px); /* Un elemento por fila */
    max-width: 100%;
  }

  .contact-links a {
    font-size: 0.9rem;
    padding: 6px;
  }

  .contact-links {
    gap: 10px;
  }
}


