
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: sans-serif; background: #F0F0F0; }
header {
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  transition: background-color 0.3s ease;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: white;
}
.navbar nav { display: flex; gap: 1rem; }
.navbar nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}
#ver-carrito {
  text-decoration: none;
  background-color: rgb(245, 245, 245);
  padding: 10px;
  margin-left: 150px;
  color: black;
  border-radius: 30px;
}
.logo {
  flex-grow: 1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
}
.carrito-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}
#btn-comprar {
    background: none;
    border: 0;
    color: inherit;
    box-decoration-break: none;
    background-color: rgb(19, 87, 174);
    color: white;
    padding: 10px;
    border-radius: 30px;
}
#cerrar-modal {
    background: none;
    border: 0;
    color: inherit;
    box-decoration-break: none;
    background-color: white;
    color: rgb(19, 87, 174);
    font-weight: 700;
    padding: 8px;
    border-radius: 30px;
    border: 3px solid rgb(19, 87, 174);
    margin: auto;
}

main { padding-top: 100px; }
.slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden; 
  background-color: #F0F0F0;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide::after{
content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px; /* altura del difuminado */
  background: linear-gradient(to bottom, 
  rgba(255,255,255,0) 0%, 
  rgba(240,240,240,0.3) 40%, 
  rgba(240,240,240,0.6) 70%, 
  rgba(240,240,240,1) 100%);
  pointer-events: none;
}

.slide.active { opacity: 1; z-index: 1; }
.slide .content {
  position: absolute;
  bottom: 60%;
  left: 15%;
  transform: translateX(-50%);
  padding: 1rem;
  border-radius: 8px;
  color: white;

}
.logo22 {
   text-decoration: none;
   color: white;
   font-family: "Anton", sans-serif;
   font-weight: 400;
   font-style: normal;
   font-size: 30px;
}

.content button {
  border: none;
  border-top: 20px;
  padding: 8px;
  background-color: white;
  border-radius: 30px;
  box-shadow: 2px 2px 5px rgba(1, 0, 0, 1);
  cursor: pointer;
  width: max-content;
}
.content button:hover {
  background-color: crimson;
  color: white;
  transition: 0.3s;
}
.content h3 {
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.slide-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-100%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2;
}


.slide-btn.left { left: 10px; }
.slide-btn.right { right: 10px; }

.filtros {
  text-align: center;
  margin: 2rem auto;
  max-width: 1200px;
}
.categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.filtro {
  background: #111;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
}
.filtro.active {
  background: crimson;
}
#busqueda {
  padding: 10px;
  width: 200px;
  border: 3px solid rgb(255, 136, 0);
  border-radius: 50px;
  text-align: center;
  font-size: 1rem;  
}
#productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  background-color: #F0F0F0;
  
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay.activo {
  display: flex;
}

.card {
  background: white;
  padding: 1rem;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.colores.seleccionado {
  outline: 3px solid black;
  box-shadow: 0 0 5px #000;
}

  input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
  }

.card button {
    display: flex;
    padding: 8px 12px;
    border: none;
    background-color: #1a73e8;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    justify-content: center;
    margin: auto;
    margin-top: 5px;
  }
.card-nombre {
    display: flex;
    justify-content: space-between;
}


.card button:hover {
    background-color: #155ab6;
  }
.capacidades.seleccionado {
  background-color: #4285f4;
  color: white;
  font-weight: bold;
  border: 2px solid #333;

}

.agregar.efecto-exito {
  background-color: #28a745 !important;
  animation: confirmarEmoji 1s ease;
}

.card{
    background-color: #fff;
}
.busqueda {
  margin: 2rem auto;
  margin-top: 90px;
}
.card img {
  width: 100%;
  height: auto;
  display: block;
  margin: auto;


}
.card {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.card h3{
    margin-top: auto;
    position: relative;
    justify-content: center;    
}
.card p{
    margin-top: 2px;
    text-align: center;
}
.disponible {
    color: rgb(0, 154, 0);
    margin-bottom: 10px;
}
.agotado{
    color: rgb(255, 47, 47);
    margin-bottom: 10px;

}
.card-precio { 
   font-weight: bold;
  font-size: 1.5rem;
  color: #51c537;
}
.capacidad {
    display: flex;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 5px;
    display: inline-block;
}
.capacidad.seleccionado {
    background-color: rgb(49, 49, 49);
    color: white;
    border-color: #000000;
}

@keyframes confirmarEmoji {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .slider {
    overflow-x: scroll;
    display: flex;
    scroll-snap-type: x mandatory;
    height: auto;
  }
  .slide {
    flex: 0 0 100%;
    position: relative;
    scroll-snap-align: start;
    opacity: 1 !important;
    height: 500px;
  }
  .slide .content {
  bottom: 30%;
  left: 20%;
  }
  .slide-btn { display: none; }
  #productos {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 0.5rem !important;
    padding: 0 1rem; /* opcional, para que no quede pegado al borde */
  }
  .navbar {
  display: grid;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}
  #ver-carrito  {   
    margin: auto;
}
.content h3 {
  text-align: center;
}
.car11 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-direction: column-reverse;
}
.busqueda {
  margin-top: 150px;
}
}
/* Botón carrito */
    .cart-btn {
      top: 20px;
      right: 20px;
      background: #fff;
      color: rgb(78, 78, 78);
      padding: 10px 20px;
      border: none;
      border-radius: 15px;
      cursor: pointer;
      z-index: 1001;
      font-size: 16px;
      font-weight: 500;
      transition: background 0.3s;
    }
    .cart-btn:hover {
      background: rgb(107, 255, 107);
      color: black;
    }

    /* Panel carrito */
    .cart-panel {
      position: fixed;
      top: 0;
      right: -100%;
      width: 33%;
      height: 100%;
      background: #fff;
      box-shadow: -4px 0 20px rgba(0,0,0,0.15);
      transition: right 0.35s ease;
      display: flex;
      flex-direction: column;
      z-index: 1000;
    }

    .cart-panel.active {
      right: 0;
    }

    /* Header */
    .cart-header {
      display: flex;
      align-items: center;
      border-bottom: 1px solid #e0e0e0;
      padding: 16px;
    }

    .back-btn {
      background: none;
      border: none;
      font-size: 16px;
      cursor: pointer;
      color: #0066cc;
      font-weight: 500;
      margin-right: 10px;
      transition: color 0.3s;
    }
    .back-btn:hover {
      color: #004999;
    }

    .cart-header h2 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: #0066cc;
    }

    /* Contenido scrollable */
    .cart-content {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
    }

    .cart-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      background: #fafafa;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid #e5e5e5;
      font-size: 15px;
    }

    .cart-item button {
      background: #0066cc;
      color: #fff;
      border: none;
      padding: 5px 8px;
      border-radius: 4px;
      cursor: pointer;
      margin: 0 3px;
      font-size: 14px;
      transition: background 0.3s;
    }
    .cart-item button:hover {
      background: #004999;
    }

    .cart-total {
      margin: 20px 0 10px;
      font-size: 18px;
      font-weight: 600;
      color: #222;
    }

    .cart-discount input {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 6px;
      outline: none;
      font-size: 14px;
    }
    .cart-discount input:focus {
      border-color: #0066cc;
      box-shadow: 0 0 0 2px rgba(0,102,204,0.2);
    }

    /* Footer fijo */
    .cart-footer {
      padding: 16px;
      border-top: 1px solid #e0e0e0;
      background: #fff;
    }

    .cart-footer button {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 500;
      transition: background 0.3s;
    }

    .finalize {
      background: #28a745;
      color: #fff;
    }
    .finalize:hover {
      background: #1e7e34;
    }
        @media (max-width: 700px) {
       .cart-btn {
      position: fixed;
      top: 40px;
      right: -5px;
      background: #fff;
      color: rgb(78, 78, 78);
      padding: 3px 16px;
      border: none;
      border-radius: 0px;
      cursor: pointer;
      z-index: 1001;
      font-size: 16px;
      font-weight: 500;
      transition: background 0.3s;
      margin: auto; 
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
    }
    .cart-panel {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      height: 100%;
      background: #fff;
      box-shadow: -4px 0 20px rgba(0,0,0,0.15);
      transition: right 0.35s ease;
      display: flex;
      flex-direction: column;
      z-index: 1000;
    }
    }