/* Fuente general */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

/* Header con fondo suave */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #cdeccd; /* verde suave natural */
  color: #333;
}

.logo img {
  width: 150px;
  height: 150px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* HOME */
.home {
  position: relative;
  text-align: center;
}

.imagenesHome {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.linkBienestar, .linkTecnologia {
  flex: 1; /* cada enlace ocupa la mitad */
}

.linkBienestar img, .linkTecnologia img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.linkBienestar img:hover,
.linkTecnologia img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Logo central sobrepuesto */
.logoCentral {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logoCentral img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
}

/* Sección Info (Mapa + Contacto) en fila centrada */
.info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
}

.mapa, .contacto {
  flex: 1 1 45%;
  max-width: 500px;
  margin: 20px;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 10px;
}


/* Contacto con letras más grandes */



.contacto {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente */
  font-size: 1.2rem; /* letras más grandes */
  line-height: 1.8;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: #fff;
}

/* Página Bienestar */
.bienestar-page {
  text-align: center;
  padding: 40px 20px;
  background: url("Img BSL/fondo-naturaleza.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #333;
}

.bienestar-page h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2e8b57;
}

.productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.producto {
  width: 200px;
  text-align: center;
}

.producto img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.producto img:hover {
  transform: scale(1.05);
}

.producto h2 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #333;
}

/* Responsivo */
@media (max-width: 768px) {
  .info {
    flex-direction: column;
    align-items: center;
  }

  .mapa, .contacto {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .mapa iframe {
    height: 300px;
  }

  .productos {
    flex-direction: column;
    align-items: center;
  }
}



/* Logo en página de Tecnología */



.logoTecnologia {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.logoTecnologia:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Página Tecnología */
.tecnologia-page {
  text-align: center;
  padding: 40px 20px;
  background: url("Img BSL/fondo-tecnologia.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #333;
}

.tecnologia-page h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #1e90ff; /* azul tecnológico */
}

/* Productos en Tecnología (igual que Bienestar) */
.productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.producto {
  width: 200px;
  text-align: center;
}

.producto img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.producto img:hover {
  transform: scale(1.05);
}

.producto h2 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #333;
}

/* estilos para la sección de productos ver mas pagina .bienestar-page */



.btn {
  display: inline-block;
  margin: 5px;
  padding: 8px 12px;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}

.btn:hover {
  background: #45a049;
}

.info-producto {
  margin-top: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-left: 3px solid #4CAF50;
  text-align: left;
}

.oculto {
  display: none;
}



/* ====== Estilos generales ====== */
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 20px;
  color: #333;
}

h1, h2, h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}

p {
  margin: 5px 0;
}

/* ====== Contenedores ====== */
.contenedor {
  max-width: 900px;
  margin: auto;
}

.caja {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

/* ====== Botones ====== */
button {
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #45a049;
}

button.eliminar {
  background: #e74c3c;
}

button.eliminar:hover {
  background: #c0392b;
}

/* ====== Carrito ====== */
#carrito ul {
  list-style: none;
  padding: 0;
}

#carrito li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

#carrito li:last-child {
  border-bottom: none;
}

#carrito strong {
  color: #4CAF50;
}

/* ====== Formulario checkout ====== */
form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

form input, form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form textarea {
  resize: vertical;
}

/* ====== Tabla de productos (correo/factura) ====== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

table th {
  background: #4CAF50;
  color: white;
}

table tr:nth-child(even) {
  background: #f2f2f2;
}




/* ====== Botones de cantidad personalizados ====== */
.cantidad {
  margin: 10px 0;
}

.cantidad button {
  border: none;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.cantidad button:first-child {
  background: #e74c3c; /* rojo para restar */
  color: #fff;
}

.cantidad button:last-child {
  background: #2ecc71; /* verde para sumar */
  color: #fff;
}

.cantidad button:hover {
  opacity: 0.8;
}

.cantidad span {
  margin: 0 10px;
  font-size: 18px;
  font-weight: 600;
}

/* ====== Carrito mejorado ====== */
.caja {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 30px auto;
  max-width: 600px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.caja h2 {
  margin-bottom: 15px;
}

.caja button {
  margin: 5px;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.caja button:first-child {
  background: #e74c3c; /* rojo para vaciar */
  color: #fff;
}

.caja button:last-child {
  background: #2ecc71; /* verde para checkout */
  color: #fff;
}

.caja button:hover {
  opacity: 0.85;
}






.whatsapp-float {
  position: fixed;
  bottom: 20px;   /* parte inferior */
  right: 20px;    /* parte derecha */
  background-color: #25D366; /* color oficial WhatsApp */
  color: #fff;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  box-shadow: 2px 2px 5px #999;
  z-index: 100;
  transition: transform 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.05);
  background-color: #20b954;
}
.whatsapp-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}


/* Iconos de redes sociales en el pie de página */
.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}
.redes-sociales a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4CAF50;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.redes-sociales a:hover,
.redes-sociales a:focus-visible {
  background: #fff;
  color: #333;
  transform: translateY(-3px);
}
