/* =======================================
   CONTENEDOR PRINCIPAL
======================================= */
.contenedor-carrito {
  max-width: 1100px;
  margin: 200px auto 30px auto;  /* top | right | bottom | left */
  padding: 20px;

  
}
body h1 {
  text-align: center;
  margin-top: 50px;  /* Ajusta el valor según necesites */
  margin-bottom: 40px;
}


/* Título */
.contenedor-carrito h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
}

/* =======================================
   ITEM DEL CARRITO
======================================= */
.item-carrito {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 18px;
  padding: 15px;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.12);
}

/* Imagen del producto */
.img-carrito {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* Información del producto */
.item-carrito .info {
  flex: 1;
}

.item-carrito .info p {
  margin: 4px 0;
  font-size: 16px;
}

/* =======================================
   BOTÓN ELIMINAR
======================================= */
.btn-eliminar {
  background: #d9534f;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 15px;
}

.btn-eliminar:hover {
  background: #c9302c;
}


/* =======================================
   TOTAL DEL CARRITO
======================================= */
.total {

  text-align: left;
  margin-top: 5px;
  font-size: 40px;
  font-weight: bold;
  padding: 10px;
}
.total2 {

  text-align: center;
  margin-top: 5px;
  font-size: 40px;
  font-weight: bold;
  padding: 10px;
}


/* =======================================
   RESPONSIVE PARA CELULARES
======================================= */
@media (max-width: 600px) {
  
  .item-carrito {
    flex-direction: column;
    text-align: center;
  }

  .img-carrito {
    width: 300px;
    height: 300px;
    margin-bottom: 10px;
  }

  .btn-eliminar {
    width: 100%;
    margin-top: 10px;
  }

  .total-carrito {
    text-align: center;
    font-size: 50px;
  }




}
.btn-carrito {
  width: auto;          /* esfuerzo máximo para evitar estiramiento */
  display: inline-block;
  white-space: nowrap;  /* evita que el texto se corte en 2 líneas */
  padding: 12px 18px;
  background-color: #5e5b8a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.25s ease;
  margin: 10px 5px;
}

.btn-carritop {
  width: auto;          /* esfuerzo máximo para evitar estiramiento */
  display: inline-block;
  white-space: nowrap;  /* evita que el texto se corte en 2 líneas */
  padding: 12px 18px;
  background-color: #cec000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.25s ease;
  margin: 10px 5px;
}



.btn-carrito:hover {
  background-color: #293369;
  transform: scale(1.05);
}

.btn-carritop:hover {
  background-color: #d39716;
  transform: scale(1.05);
}

/* Botón rojo para generar orden */
.btn-generar {
  background-color: #2fbe53;
}

.btn-generar:hover {
  background-color: #23814a;
}

/** CSS DEL FOMRMULARIO*/
.form-datos {
  margin: 1px auto;
  padding: 60px;
  width: 100 px;
  max-width: 600;        /* ✔ ancho amplio en escritorio */
  background: #d8d1d1ee;     /* tarjeta blanca */
  border-radius: 35px;
  box-shadow: 5 4px 20px rgba(0,0,0,0.1); /* sombra suave */
  display: flex;
  flex-direction: column;
  gap: 10px;               /* ✔ separación automática entre elementos */
}

/* Título elegante */
.form-datos h2 {
  text-align: center;
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Estilos de labels */
.form-datos label {
  font-weight: 600;
  color: #444;
}

/* Inputs redondeados y modernos */
.form-datos input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
  transition: all 0.2s ease;
}

/* Efecto al enfocar input */
.form-datos input:focus {
  border-color: #4a90e2;      /* borde azul suave */
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.4);
  outline: none;
}

/* Ajustes para pantallas grandes */
@media (min-width: 1024px) {
  .form-datos {
    padding: 35px;
    max-width: 750px;
  }

  .form-datos h2 {
    font-size: 1.8rem;
  }
}








