/* Fuente moderna desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --turquesa: #a2ede7;
  --turquesa-dark: #7fd8d2;
  --gris-suave: #f2f2f2;
  --gris-texto: #444;
  --blanco: #ffffff;
  --sombra: rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--gris-suave);
  color: var(--gris-texto);
  background-image: url('img/fondo.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--turquesa);
  color: var(--gris-texto);
  height: 130px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px var(--sombra);
  padding: 0 1em;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.logo {
  height: 130px;
  width: auto;
  margin-right: 15px;
  border-radius: 4px;
}

header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 2em;
}

nav ul {
  display: flex;
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--gris-texto);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--turquesa-dark);
}

section {
  background-color: var(--blanco);
  margin: 2em auto;
  padding: 2em;
  max-width: 1100px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--sombra);
}

h2 {
  color: var(--turquesa-dark);
  font-weight: 600;
  margin-bottom: 1em;
  font-size: 1.6em;
}

.productos {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
}

.producto {
  background-color: var(--gris-suave);
  padding: 1.5em;
  border-radius: 10px;
  width: 260px;
  box-shadow: 0 4px 8px var(--sombra);
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1em;
}

.producto p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--turquesa);
  color: black;
  padding: 1em;
  font-size: 0.9em;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.producto:hover p {
  opacity: 1;
  transform: translateY(0);
}

form input, form textarea {
  width: 100%;
  padding: 0.9em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

button {
  padding: 0.9em 2em;
  background-color: var(--turquesa-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #5accc4;
}

.contacto {
  max-width: 500px;
  margin: 2em auto;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: pulse 1.5s infinite;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  background-color: var(--turquesa-dark);
}

/* Botón flotante Facebook */
.facebook-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 90px;
  right: 20px;
  background-color: #1877f2;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: pulse 1.5s infinite;
}

.facebook-float img {
  width: 35px;
  height: 35px;
}

.facebook-float:hover {
  transform: scale(1.15);
  background-color: #145dbf;
}

/* Efecto pulso */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0.2); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0,0,0,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* Responsive */
@media (max-width: 768px) {
  .productos {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    gap: 1em;
  }

  header h1 {
    display: none;
  }
}
#servicios {
  background: url("img/laboratorio.png") no-repeat center center;
  background-size: cover;
  padding: 50px 20px;
  color: white;
}

#servicios h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  background: rgba(0,0,0,0.6); /* fondo semitransparente para que los productos resalten */
  padding: 20px;
  border-radius: 12px;
}
.productos h3 {
  color: black;
}
.contacto {
  background-image: url("img/fondo-contacto.png"); /* ruta de tu imagen */
  background-size: cover;   /* ajusta la imagen para cubrir todo */
  background-position: center; /* centra la imagen */
  background-repeat: no-repeat;
  padding: 60px 30px; /* espacio interno para que no quede apretado */
  color: white; /* texto en blanco para mejor visibilidad */
  text-align: center;
}
#contacto {
  background: url("img/contacto.png") no-repeat center center;
  background-size: cover;
  padding: 60px 20px;
  color: black; /* texto en blanco para que resalte */
  text-align: left;
}
#contacto form {
  background: rgba(255, 255, 255, 0.8); /* fondo blanco transparente */
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  margin-left: 0;
  color: black;
  text-align: left;   /* texto dentro alineado a la izquierda */
}

