/* Barra superior */
.barra-menu {
  background-color: #000;
  padding: 0.5rem 1rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.contenedor-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.logo img {
  height: 50px;
  object-fit: contain;
}

.nav-principal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-principal a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
}

.nav-principal a:hover {
  color: #ddd;
}

/* Submenús */
.submenu {
  position: relative;
}

.submenu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #111;
  padding: 0.5rem 0;
  border-radius: 4px;
  min-width: 150px;
}

.submenu:hover ul {
  display: block;
}

.submenu ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
}

.submenu ul li a:hover {
  background-color: #222;
  color: #fff;
}

/* Generales */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #222;
}

/* Productos */
.grid-section {
  padding: 40px;
  background-color: #f8f8f8;
}

.grid-section h2 {
  text-align: center;
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
}

.grid-productos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.grid-producto {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 15px;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  gap: 1rem;
  transition: transform 0.2s;
}

.grid-producto:hover {
  transform: scale(1.03);
}

.grid-producto img {
  width: 150px;
  height: auto;
  border-radius: 10px;
}

.grid-producto h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.grid-producto p {
  margin: 3px 0;
  font-size: 14px;
  color: #444;
}

/* Modal detalle */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

#imagenesProducto {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.detalle-img {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.precio {
  font-weight: bold;
  color: #444;
  margin-top: 1rem;
}

/* WhatsApp */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp img:hover {
  transform: scale(1.1);
}

/* Carrusel de productos */
.productos-wrapper {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.productos-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.producto {
  flex: 0 0 30%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 50%;
}

.arrow.left {
  left: 0.5rem;
}

.arrow.right {
  right: 0.5rem;
}

/* Footer */
.footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px 10px;
  font-family: sans-serif;
}

.footer-contenido {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1 1 200px;
  max-width: 300px;
}

.footer-col h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.footer-col hr {
  border: 0;
  height: 1px;
  background-color: #fff;
  margin: 10px auto 20px;
  width: 80%;
}

.footer-col p,
.footer-col a {
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
}

.redes-sociales a {
  color: white;
  font-size: 20px;
  margin-right: 15px;
  transition: color 0.3s;
}

.redes-sociales a:hover {
  color: #aaa;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: #888;
  padding-top: 10px;
  border-top: 1px solid #222;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 40px;
  background-color: #fff;
  justify-items: center;
}

.producto-item {
  text-align: center;
  transition: transform 0.2s ease;
}

.producto-item:hover {
  transform: scale(1.03);
}

.producto-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.producto-item h3 {
  font-size: 100px;
  margin: 10px 0 5px;
  color: #222;
}

.producto-item p {
  font-size: 100px;
  color: #444;
}

