* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  background-color: #f9f9f9;
}

section {
  padding: 50px 20px; /* Menos separación */
  text-align: center;
}

/* Colores y estilo general */
h1, h2 {
  color: #0177FD;
  margin-bottom: 20px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Botón de WhatsApp */
button {
  background-color: #0177FD;
  color: white;
  border: none;
  padding: 15px 25px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}
button:hover {
  background-color: #015ac2;
  transform: scale(1.05);
}

/* Servicios */
.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.servicios-grid div {
  flex: 1 1 250px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.servicios-grid div:hover {
  transform: translateY(-5px);
}
.servicios-grid h3 {
  margin-bottom: 10px;
  color: #005bb5;
}

/* Galería */
.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.galeria img {
  width: 300px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.galeria img:hover {
  transform: scale(1.05);
}

/* Logos */
.logos {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.logos img {
  width: 150px;
  height: 80px;
  object-fit: contain;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, opacity 0.3s;
}
.logos img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Animaciones */
.fade-in {
  animation: fadeIn 1.2s ease forwards;
}
.slide-up {
  animation: slideUp 1.2s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
footer {
  background: #0177FD;
  color: white;
  padding: 15px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsividad */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .galeria img {
    width: 90%;
    height: auto;
  }
  .logos img {
    width: 120px;
    height: 70px;
  }
}

/* Logo principal */
.logo {
  max-width: 150px; /* antes 200px */
  height: auto;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .logo {
    max-width: 100px; /* más pequeño en móviles */
  }

}

/* Estilo del modal de imagen */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Cursor de cierre */
.modal {
  cursor: pointer;
}
