body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0 20px 30px;
  background: linear-gradient(135deg, #89f7fe, #66a6ff, #ff6a6a, #ff0000);
  color: #333;
  min-height: 100vh;
}

/* Encabezados con degradado */
h1, h2 {
  background: linear-gradient(to right, #000000, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  user-select: none;
}

/* Encabezado */
header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #66cfff, #ff7f7f);
  border-radius: 12px;
  margin-bottom: 20px;
  color: white;
}

header h1 {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff; /* blanco sólido */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4); /* sombra suave */
  margin: 0 0 15px;
}


/* Botones */
button {
  background: linear-gradient(90deg, #0000ff, #ff0000);
  border: none;
  padding: 10px 18px;
  margin: 5px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  user-select: none;
}

button:hover {
  transform: scale(1.1);
}

button::before {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #f1c40f, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  z-index: -1;
}

/* Contenedor de productos */
.productos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #a3f0ff, #8bbfff, #ff9a9a, #ff6666);
  border-radius: 15px;
  justify-content: center;
  user-select: none;
}

/* Producto individual */
.producto {
  background: linear-gradient(145deg, #b3f0ff, #99cfff, #ffb3b3, #ff7f7f);
  border-radius: 12px;
  width: 170px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 4px solid;
  border-image-slice: 1;
  border-width: 4px;
  border-image-source: linear-gradient(to right, #66a6ff, #ff6666);
  user-select: none;
}

.producto:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255 255 255 / 0.6);
}

.producto:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.producto img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  padding: 8px;
  border: 4px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(45deg, #ff0057, #ffbe00, #00ffe7, #005eff, #ff0057);
  margin-bottom: 10px;
  user-select: none;
}

.producto h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  background: linear-gradient(90deg, #00c6ff, #1de95b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

.producto p {
  margin: 4px 0;
  font-weight: bold;
  user-select: none;
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #89f7fe, #ff6a6a);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  user-select: none;
}

.modal-content {
  background: linear-gradient(135deg, #a3f0ff, #ff9a9a);
  margin: 6% auto;
  padding: 25px 30px;
  border-radius: 15px;
  max-width: 400px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  position: relative;
  user-select: text;
}

.close {
  color: #aaa;
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.close:hover {
  color: #000;
}

/* Formularios */
form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  user-select: none;
}

form input, form select, form textarea {
  width: 100%;
  padding: 7px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  user-select: text;
}

form button {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, #0000ff, #ff0000);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
}

form button:hover {
  background: linear-gradient(90deg, #ff0000, #0000ff);
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #66cfff, #ff7f7f);
  border-radius: 12px;
  margin-top: 20px;
  color: white;
}
/* Texto del modal de bienvenida */
#bienvenidaModal h2 {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
  margin: 0;
  user-select: none;
}

/* Animación de aparición */
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Animación de desaparición */
@keyframes fadeOutScale {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}

/* Modal de bienvenida animado */
#bienvenidaModal .modal-content {
  animation: fadeInScale 0.6s ease forwards;
}

/* Cuando cerramos con JS se le aplicará la clase fadeOut */
#bienvenidaModal.fade-out .modal-content {
  animation: fadeOutScale 0.4s ease forwards;
}

/* 🎨 Estilos para buscador */
.buscador-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

#buscadorPedidos {
  width: 60%;
  max-width: 500px;
  padding: 12px 18px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 30px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

#buscadorPedidos:focus {
  border-color: #4CAF50;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}
