body {
  font-family: 'Segoe UI', sans-serif;
  margin: 20px;
  background: #f4f4f4;
  color: #333;
}
h1, h2 {
  text-align: center;
}
.container {
  max-width: 750px;  /* antes: 1000px */
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}
.flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.col {
  flex: 1 1 45%;
}
label {
  font-weight: bold;
  margin-top: 10px;
  display: block;
}
input, textarea {
  width: 100%;
  padding: 6px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
th {
  background: #f0f0f0;
}
.imagePreview {
  max-width: 160px;
  max-height: 160px;
  margin-top: 5px;
}
.btn {
  padding: 10px 20px;
  margin: 10px 5px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn:hover {
  background: #0056b3;
}
#proformaHTML {
  display: none;
}
.logo {
  max-width: 150px;
}
.totals p {
  font-weight: bold;
}
.footer {
  font-size: 0.9em;
  margin-top: 20px;
}
/* Modal de promoción */
.modal-promo {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 1em;
  margin-bottom: 20px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5em;
  color: #aaa;
  cursor: pointer;
}
.close-btn:hover {
  color: #000;
}
@media (max-width: 768px) {
  .flex {
    flex-direction: column;
  }
  .col {
    flex: 1 1 100%;
  }
  table, th, td {
    font-size: 14px;
  }
  .promo-content {
    width: 90% !important;
    padding: 20px !important;
  }
  .imagePreview {
    max-width: 100px;
    max-height: 100px;
  }
}