.presupuesto-grid {
  display: flex;
  flex-direction: column;
  max-width: 1000px; /* Tamaño máximo del formulario */
  margin: auto;
  gap: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.caracteristicas-section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
  gap: 15px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.caracteristicas-section h3 {
  grid-column: span 2;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  font-weight: 600;
}

.presupuesto-grid label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #000000;
  margin-bottom: 10px;
}

.presupuesto-grid select {
  padding: 2px 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 5px;
  background-color: #fff;
  transition: border-color 0.3s;
}

.presupuesto-grid select:focus {
  border-color: #1e90ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
}

.presupuesto-grid input,
.presupuesto-grid textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 5px;
  transition: border-color 0.3s;
}

.presupuesto-grid input:focus,
.presupuesto-grid textarea:focus {
  border-color: #1e90ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
}

.cliente-info-section {
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cliente-info-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  font-weight: 600;
}

.cliente-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.cliente-campo {
  margin-bottom: 10px;
}

.tipo-cliente-section {
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tipo-cliente-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  font-weight: 600;
}

.tipo-cliente-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tipo-cliente-grid label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s;
}

.tipo-cliente-grid label:hover {
  background-color: #f0f8ff;
  border-color: #1e90ff;
}

.tipo-cliente-grid input[type="radio"] {
  margin-right: 10px;
  margin-top: 0;
}

.tipo-cliente-grid label input[type="radio"]:checked + span,
.tipo-cliente-grid label:has(input[type="radio"]:checked) {
  background-color: #e3f2fd;
  border-color: #1e90ff;
  font-weight: 600;
}

/* Ajustar el total y botón para centrar */

.presupuesto-total {
  font-size: 22px;
  font-weight: 600;
  margin-top: 20px;
  text-align: center;
  color: #333;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 6px;
}

.presupuesto-subtotal {
  font-size: 16px;
  margin-top: 10px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* Estilos para el sistema de descuentos */
.codigo-descuento-section {
  margin: 20px 0;
  padding: 20px;
  background: #F4FAFE;
  /* border: 2px solid #ffc107; */
  border-radius: 8px;
  text-align: center;
}

.codigo-descuento-section h4 {
  margin: 0 0 15px 0;
  color: #000000;
  font-size: 1.2em;
}

.codigo-descuento-input {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
  align-items: stretch;
}

.codigo-descuento-input input {
  flex: 1;
  padding: 12px;
  border-radius: 5px;
  font-size: 14px;
}

.codigo-descuento-input input:focus {
  outline: none;
  border-color: #F33152;
}

.codigo-descuento-input button {
  background: #1E90FF;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.codigo-descuento-input button:hover {
  background: #1E90FF;
  transform: translateY(-1px);
}

.codigo-descuento-input button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#codigo-descuento-mensaje {
  margin-top: 10px;
  min-height: 20px;
}

.presupuesto-descuento {
  text-align: center;
  font-size: 1.4em;
  font-weight: bold;
  margin: 10px 0;
  padding: 15px;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  border-radius: 8px;
  color: #155724;
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Destacar cuando se aplica descuento automático */
.presupuesto-descuento.automatico {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border: 2px solid #28a745;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.presupuesto-descuento.automatico::before {
  content: "🎉 ";
  font-size: 1.2em;
}

.botones-presupuesto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 20px;
}

#descargar-pdf {
  background-color: #1e90ff; /* Color azul por defecto */
  color: #ffffff;
  font-size: 18px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: block;
  width: 100%;
  max-width: 300px;
  text-align: center;
  margin: 20px auto;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#descargar-pdf:hover {
  background-color: #1670c5; /* Azul más oscuro al pasar el ratón */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-reset {
  background-color: #f61943; /* Color rojo por defecto */
  color: #ffffff;
  font-size: 18px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: block;
  width: 100%;
  max-width: 300px;
  text-align: center;
  margin: 20px auto;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-reset:hover {
  background-color: #d01538; /* Rojo más oscuro en hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Añadir estilos para el checkbox de consentimiento */
.wppo-consent-checkbox {
  margin: 20px 0;
  text-align: center;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #eee;
}

.wppo-consent-checkbox label {
  display: block;
  font-size: 17px;
  color: #505050;
  position: relative;
  text-align: left;
  padding-left: 20px;
}

.wppo-consent-checkbox input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 10px;
  margin: 0;
}

.wppo-consent-checkbox .error-message {
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 100%;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .caracteristicas-section {
    grid-template-columns: 1fr;
  }

  .caracteristicas-section h3 {
    grid-column: span 1;
  }

  .cliente-grid {
    grid-template-columns: 1fr;
  }

  .botones-presupuesto {
    flex-direction: column;
  }

  #descargar-pdf,
  .btn-reset {
    margin: 10px auto;
  }

  .tipo-cliente-grid {
    gap: 8px;
  }

  .tipo-cliente-grid label {
    padding: 8px;
    font-size: 14px;
  }

  .wppo-consent-checkbox label {
    flex-direction: row;
    text-align: left;
  }
}

/* Estilos para mensajes de aviso */
.notice {
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notice-warning {
  background-color: #fff8e5;
  border-left: 4px solid #ffb900;
}

.notice-error {
  background-color: #fbeaea;
  border-left: 4px solid #dc3232;
}

.notice-success {
  background-color: #ecf7ed;
  border-left: 4px solid #46b450;
}

.error-message {
  color: #dc3232;
  font-size: 12px;
  margin-top: 5px;
  font-weight: normal;
}

/* Estilos para el mensaje de procesamiento */
#wppo-processing-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 5px;
  z-index: 9999;
  text-align: center;
  font-weight: bold;
}

#wppo-success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 5px;
  z-index: 9999;
  font-weight: bold;
  text-align: center;
  max-width: 80%;
  background: rgba(46, 125, 50, 0.9);
  color: white;
}

/* Estilos para el logo */
.logo-upload-section {
  margin-bottom: 20px;
  text-align: center;
}

.logo-upload-section label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #555;
}

#logo-preview-container {
  margin-top: 15px;
}

#logo-preview {
  max-width: 200px;
  max-height: 100px;
  border: 1px solid #ddd;
  padding: 5px;
  background: white;
}
