body {
  font-family: 'Segoe UI', sans-serif;
  background: url('../img/fondo_2.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  margin: 0;
  padding: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #222;
}
.logo img {
  height: 50px;
  margin-right: 10px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.3s;
}
nav a:hover {
  color: #b88f56;
}

main {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  color: #000;
}

h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: gold;
  margin-bottom: 30px;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  color: #000;
}

th, td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  text-align: center;
}

th {
  background-color: rgba(184,143,86,0.2);
}

img.product-img {
  width: 80px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

button.delete-btn {
  background-color: #b88f56;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.delete-btn:hover {
  background-color: #a6783f;
}

.total-container {
  text-align: right;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.checkout-btn {
  display: block;
  margin: 0 auto;
  padding: 12px 30px;
  background-color: #b88f56;
  color: white;
  font-size: 1.2rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 300px;
  text-align: center;
}

.checkout-btn:hover {
  background-color: #a6783f;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9em;
  color: #555;
}
/* Estilo general del contenedor del formulario */
.formulario-compra {
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

/* Título del formulario */
.formulario-compra h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #fff;
}

/* Estilo de cada etiqueta y campo */
.formulario-compra label {
  display: block;
  margin-bottom: 15px;
  font-size: 1em;
  font-weight: 500;
}

.formulario-compra input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: #fff;
  font-size: 1em;
  outline: none;
  transition: border 0.3s ease;
}

.formulario-compra input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.formulario-compra input:focus {
  border-color: #ffffff;
}

/* Botón para generar factura */
.formulario-compra button {
  width: 100%;
  margin-top: 25px;
  padding: 12px;
  font-size: 1.1em;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.formulario-compra button:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.03);
}

/* Clase para ocultar el formulario inicialmente */
.oculto {
  display: none;
}
