/* Resetear márgenes y rellenos para un inicio coherente */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo general de la página */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* Navegación */
nav {
  background-color: #ffffff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}

nav a {
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 10px 20px;
  margin-left: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: #0078d4;
  transform: scale(1.05);
}

/* Carrusel */
.carrusel-container {
  position: relative;
  width: 80%;
  max-width: 800px;
  overflow: hidden;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.carrusel {
  display: flex;
  transition: transform 0.5s ease;
}

.carrusel img {
  width: 100%;
  object-fit: cover;
}

.boton {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
}

.boton:hover {
  background-color: rgba(0,0,0,0.8);
}

.boton.izquierda {
  left: 10px;
}

.boton.derecha {
  right: 10px;
}

/* Hero Cards */
.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  justify-content: center;
}

.hero-card {
  flex: 1;
  min-width: 250px;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.hero-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 1rem;
  font-size: 1rem;
  text-align: center;
}

/* Redes sociales flotantes */
.social-bubble {
  background-color: #ffffff;
  color: #333;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.social-icons a img:hover {
  transform: scale(1.15);
}

.social-networks-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

/* Banner principal */
.banner {
  position: relative;
  background-image: url("fondo.jpeg");
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.banner-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: 'Arial', sans-serif;
  padding: 20px;
}

.banner-text h2 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.5s ease-out;
}

.banner-text p {
  font-size: 22px;
  margin-top: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.8s ease-out;
}

/* Donaciones */
.donaciones-banner {
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  padding: 60px 20px;
  text-align: center;
  margin: 40px 0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.donaciones-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #222;
}

.donaciones-text p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555;
}

.donar-btn {
  background-color: #007bff;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: background 0.3s;
}

.donar-btn:hover {
  background-color: #0056b3;
}

/* Footer - ¿Quiénes somos? */
.footer-info {
  padding: 60px 20px;
  margin-top: 40px;
  text-align: center;
}

.about-us h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
}

.about-us p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* Galerías de imágenes */
.imagenes-container,
.imagenes-container2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: auto;
}

.imagenes-container {
  margin-top: 100px;
}

.imagen {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagen:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Productos */
.productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 70px auto 30px auto;
}

.producto {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.producto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

/* Mejor adaptación en tablets */
@media (max-width: 768px) {
  .productos-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .producto img {
    height: 200px;
  }
}

/* Mejor adaptación en celulares */
@media (max-width: 480px) {
  .productos-container {
    grid-template-columns: 1fr;
  }

  .producto {
    padding: 20px;
  }

  .producto img {
    height: 180px;
  }
}

    /* Estilos para la barra de carga */
    .loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 5px;
      background: linear-gradient(to right, #e91e63, #ffc107);
      animation: carga 2s infinite;
      z-index: 9999;
      transition: width 0.3s ease;
    }

    @keyframes carga {
      0% { width: 0%; }
      50% { width: 50%; }
      100% { width: 100%; }
    }

    .loader.hidden {
      display: none;
    }
    .cerrar-btn {
      position: absolute;
      top: 5px;
      right: 10px;
      background: transparent;
      border: none;
      font-size: 18px;
      cursor: pointer;
      color: red;
    }
    
    /* Estilo para el botón "abrir menú" */
    .abrir-btn {
      position: fixed;
      top: 10px;
      left: 10px;
      z-index: 1000;
      background-color: #fff;
      border: 1px solid #ccc;
      padding: 5px 10px;
      font-size: 16px;
      cursor: pointer;
      border-radius: 4px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
/* Responsividad: Solo para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
  .producto {
    width: calc(50% - 10px); /* Dos productos por fila */
    max-width: calc(50% - 10px); /* El máximo ancho de cada producto */
  }

  .productos-container {
    gap: 10px; /* Espacio reducido entre los productos */
  }

  .producto-texto h2 {
    font-size: 16px; /* Reducir el tamaño del título en dispositivos móviles */
  }

  .producto-texto p {
    font-size: 12px; /* Reducir el tamaño de la descripción en móviles */
  }
}

@media (max-width: 480px) {
  .producto {
    width: calc(100% - 20px); /* Los productos ocupan casi todo el ancho de la pantalla */
    max-width: calc(100%); /* El máximo ancho de cada producto */
  }

  .productos-container {
    gap: 15px; /* Espacio ligeramente mayor entre productos */
  }

  .producto-texto h2 {
    font-size: 18px; /* Aumentar el tamaño del título */
  }

  .producto-texto p {
    font-size: 14px; /* Aumentar el tamaño de la descripción */
  }
}