
  
  
  /* ===================== */
  /* ==== SECCIONES ====== */
  /* ===================== */
  
  .productos-section,
  .nosotros-section,
  .contacto-section {
    padding: 60px 20px;
    background: white;
    text-align: center;
  }
  
  .productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }
  
  .producto {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .producto img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
  }
  
 .titulo-categorias {
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

.titulo-categorias::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #e74c3c;
  margin: 10px auto 0;
  border-radius: 2px;
}

  
 


/* Botón circular de compra */
.btn-compra.circular {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;  /* Verde característico de WhatsApp */
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
}

/* Efecto hover: aumenta ligeramente la escala, cambia el fondo y activa animación */
.btn-compra.circular:hover {
  background-color: #1ebe5f;
  animation: pulse 1s infinite;
}

/* Keyframes para el efecto pulse */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}



.categorias-tecnologia {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
}

.categorias-tecnologia h2 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #111;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.categoria-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  text-decoration: none;
  color: #000;
  display: flex;
  align-items: flex-end;
  height: 250px;
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.categoria-item:hover img {
  transform: scale(1.05);
}

.categoria-item p {
  position: relative;
  z-index: 2;
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* Botón pequeño tipo enlace */
.categoria-item span {
  position: relative;
  z-index: 2;
  margin: 0 20px 20px;
  font-size: 0.9em;
  font-weight: bold;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.categoria-item:hover span {
  background: #111;
}
/* Evita que el contenido se desborde en móvil */
body, html {
  overflow-x: hidden;
  max-width: 100%;
}

/* Las imágenes nunca deben ser más grandes que su contenedor */
.categoria-item img,
.producto-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========================== */
/* ==== RESPONSIVO ==== */
/* ========================== */
@media (max-width: 480px) {
  .categorias-grid {
    grid-template-columns: 1fr; /* una columna en celular */
  }

  .categoria-item {
    height: 200px; /* más bajo en móvil */
  }

  .categoria-item p {
    font-size: 1.1em; /* texto más pequeño */
  }

  .categoria-item span {
    font-size: 0.8em;
    padding: 4px 10px;
  }
}
