* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  max-width: 1200px;
  margin: 10px auto;
  padding: 20px;
  color: #03447c;
  background: #ffffff;
  min-height: 100vh;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.donaciones-image {
  background: #000;
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  color: #03447c;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(3,68,124,0.2);
}

.Formulario {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

form {
  max-width: 500px;
  width: 100%;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 30px;
  background: white;
  position: relative;
}

form::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 10px 60px rgba(255, 141, 0, 0.4);
  z-index: -1;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    box-shadow: 0 10px 60px rgba(255, 141, 0, 0.4);
  }
  50% {
    box-shadow: 0 15px 80px rgba(255, 141, 0, 0.6);
  }
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #03447c;
  font-size: 14px;
}

input, select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}

input:focus, select:focus {
  outline: none;
  border-color: #667eea;
}

.tipo-donacion-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.tipo-btn {
  padding: 20px;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.tipo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tipo-btn.active {
  border-color: #ff8d00;
  background: linear-gradient(135deg, #ff8d00 0%, #ff8d00 100%);
  color: white;
}

.tipo-btn .icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.tipo-btn .title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.tipo-btn .subtitle {
  font-size: 12px;
  opacity: 0.8;
}

.seccion-condicional {
  display: none;
  animation: fadeIn 0.3s;
}

.seccion-condicional.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card-section {
  margin-top: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
}

.card-section h3 {
  margin-bottom: 15px;
  color: #03447c;
  font-size: 16px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.checkbox-group {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.checkbox-item:last-child {
  margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 3px 10px 0 0;
  flex-shrink: 0;
}

.checkbox-item label {
  margin: 0;
  font-weight: 400;
  color: #03447c;
  cursor: pointer;
}

.checkbox-item a {
  color: #03447c;
  text-decoration: none;
  font-weight: 700;
}

.checkbox-item a:hover {
  color: #ff8d00;
  text-decoration: underline;
}

button {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background: linear-gradient(135deg, #ff8d00 0%, #ff8d00 100%);
  color: #03447c;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #000, #379777);
  box-shadow: 0 0 25px #000;
  transform: translateY(-3px);
}

button:active { 
  transform: translateY(0); 
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  color: #666;
}

.entorno-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  margin-top: 15px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.entorno-badge:hover {
  opacity: 1;
}

.sandbox { 
  background: #fff3cd; 
  color: #856404; 
}

.produccion { 
  background: #e8f5e9; 
  color: #2e7d32; 
}

.loading {
  display: none;
  text-align: center;
  padding: 20px;
  color: #666;
}

.loading.active { 
  display: block; 
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff8d00;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 30px;
  text-align: center;
  color: white;
}

.modal-header.success {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-header.error {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.modal-icon {
  font-size: 50px;
  display: block;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.modal-body {
  padding: 30px;
  color: #333;
}

.modal-info {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child { 
  border-bottom: none; 
}

.info-label {
  font-weight: 600;
  color: #666;
  font-size: 14px;
}

.info-value {
  font-weight: 700;
  color: #333;
  font-size: 15px;
  text-align: right;
}

.info-value.highlight {
  color: #11998e;
  font-size: 20px;
}

.modal-footer {
  padding: 20px 30px;
  text-align: center;
  background: #f8f9fa;
}

.modal-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-btn:hover {
  transform: translateY(-2px);
}

.modal-message {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.info-box {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 12px;
  margin: 15px 0;
  border-radius: 5px;
  font-size: 13px;
  color: #1565c0;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}