  body {
    margin: 0;
    font-family: sans-serif;
    background-color: #000000;
    color: #fff;
  }

  header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
  }

  button {
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #000;
    background: rgb(158, 0, 0);
    cursor: pointer;
  }

  button:active {
    transform: scale(0.97);
  }

  .seccion {
    display: none; /* todas ocultas por defecto */
    padding: 10px;
  }

  .visible {
    display: block; /* solo la visible se muestra */
  }

  .categorias {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 10px;
  }

  .categorias button {
    font-size: 1rem;
    padding: 15px 25px;
    border-radius: 25px;
    border: 2px solid #555;
    margin: 5px;
    background: white;
  }

  .productos {
    display: grid;
    gap: 10px;
  }

  .producto {
    border: 2px solid orange;
    border-radius: 15px;
    padding: 15px;
    background: #970f0f;
    margin: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
     transition: transform 0.3s ease;
  }

  /*.boton-agregar {
    display: block;
    width: 100%;
    border: 2px solid green;
    background: #00ff00;
    border-radius: 10px;
    padding: 10px;
    font-size: 1rem;
  }*/

  .input_bonito{
    border: 1px solid #000;
    border-radius: 5px;
    padding: 10px;
    height: auto;
    width: 80%;
    margin: 5px ;
  }

      /* ocultar */
   .oculto{
    display: none;
   }

   /* nuevo*/

    .producto:hover {
      transform: translateY(-5px);
    }

    .boton-agregar {
      background: #ff7e5f;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 12px;
      cursor: pointer;
      font-weight: bold;
      transition: background 0.3s ease;
    }

    .boton-agregar:hover {
      background: #ff5a36;
    }

     /* --- FORMULARIO --- */
      .redise {
        margin-top: 15px;
        background: #f0f0f0;
        padding: 15px;
        border-radius: 15px;
      
        animation: aparecer 0.5s ease forwards;
      }

    @keyframes aparecer {
      from {
        opacity: 0;
        transform: scale(0.9);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    label {
      display: block;
      text-align: left;
      font-size: 0.9rem;
      margin-top: 10px;
      color: #555;
    }

    input {
      width: 100%;
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 8px;
      margin-top: 5px;
      font-size: 1rem;
      box-sizing: border-box;
    }

    .botones-form {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
    }

    .botones-form button {
      flex: 1;
      margin: 0 5px;
      padding: 8px;
      border: none;
      border-radius: 10px;
      font-weight: bold;
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .botones-form button:hover {
      transform: scale(1.05);
    }

    .aceptar {
      background: #4caf50;
      color: white;
    }

    .rechazar {
      background: #e74c3c;
      color: white;
    }

    /* lista */
    /* --- Sección general --- */
#registro {
  color: #000000;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 20px auto;
  font-family: "Segoe UI", sans-serif;
}


#registro h2 {
  text-align: center;
  color: #222;
  margin-bottom: 20px;
  font-weight: 600;
}
/* --- Cabecera tipo tabla --- */
.encabezado-lista {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #4f46e5;
  color: #fff;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  
  font-size: 14px;
  text-align: center;
}
/* --- Lista principal --- */
#listaRegistro {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

/* --- Cada ítem agregado --- */
#listaRegistro li {
  background: #d4d4d4;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.4s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#listaRegistro li:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* --- Texto del pedido --- */
#listaRegistro li::before {
 
  font-size: 18px;
}

#listaRegistro li span {
  flex: 1;
  font-size: 15px;
  color: #333;
  margin-right: 10px;
}

/* --- Botones dentro del item --- */
#listaRegistro li button {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  margin-left: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

/* Botón editar */
#listaRegistro li button:nth-of-type(1) {
  background: #4f46e5;
  color: #fff;
}

#listaRegistro li button:nth-of-type(1):hover {
  background: #6366f1;
  transform: scale(1.05);
}

/* Botón eliminar */
#listaRegistro li button:nth-of-type(2) {
  background: #e11d48;
  color: #fff;
}

#listaRegistro li button:nth-of-type(2):hover {
  background: #f43f5e;
  transform: scale(1.05);
}

/* --- Animación al aparecer --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsivo móvil --- */
@media (max-width: 480px) {
  #listaRegistro li {
    flex-direction: column;
    align-items: flex-start;
  }
  #listaRegistro li button {
    width: 100%;
    margin-top: 6px;
  }
}

  