

:root {
  --primary: #3d6bec;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --light-bg: #f8f9fa;
  --border-radius: 0.8rem; /* Más redondeado */
  --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* Sombra más suave */
}

body {
  background: linear-gradient(135deg, #f5f7fb 0%, #e6e9ff 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fb;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.header-container {
  
  
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  color: white;
}

.card {
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  margin-bottom: 1.8rem;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card-header {
  border-top-left-radius: var(--border-radius) !important;
  border-top-right-radius: var(--border-radius) !important;
  background-color: var(--primary);
  color: white;
  padding: 1.2rem 1.8rem;
}

.card-title {
  margin-bottom: 0;
  font-weight: 600;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(61, 107, 236, 0.25);
}

.activity-item {
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  background-color: white;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.activity-item:hover {
  background-color: #e9ecef;
}

.activity-checkbox {
  width: 1.2rem;
  height: 1.2rem;
}

.points-badge {
  background-color: var(--primary);
  color: white;
  border-radius: 30px;
  padding: 0.25rem 0.75rem;
  font-weight: 500;
}

.total-points {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: bold;
}

.total-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #2a56d5;
  border-color: #2a56d5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(42, 86, 213, 0.3);
}

.btn-success {
  background-color: var(--success);
  border-color: var(--success);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-reset {
  background-color: var(--secondary);
  border-color: var(--secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-reset:hover {
  background-color: #5a6268;
  border-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(90, 98, 104, 0.3);
}

/* Factura */
.invoice {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid #eaeaea;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.invoice-header {
  border-bottom: 2px solid #eee;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 3px solid var(--primary);
}

.invoice-title {
  color: var(--primary);
  font-weight: 700;
}

.invoice-details {
  font-size: 0.9rem;
}

.table-invoice th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.barcode-container {
  margin: 2rem 0 1rem;
  text-align: center;
  overflow-x: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.barcode-container svg {
  max-width: 100%;
  height: auto;
}

/* Estilos para imagen de factura */
#invoiceImage {
  max-width: 100%;
  height: auto;
  display: none;
  margin: 1rem auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
}

@media (max-width: 768px) {
  .invoice {
    padding: 1rem;
  }

  .barcode-container {
    margin: 1rem 0;
  }

  .barcode-container svg {
    height: 60px !important;
    width: 100% !important;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Estilos para impresión */
@media print {
  body {
    background-color: white !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .no-print {
    display: none !important;
  }

  .invoice {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  .card {
    box-shadow: none !important;
    border: none !important;
  }
}

/* Colores para los Teams */
.team-debut {
  color: #7d2eff;
}

.team-fearless {
  color: #ffd700;
}

.team-speaknow {
  color: #8a2be2;
}

.team-red {
  color: #ff0000;
}

.team-1989 {
  color: #1e90ff;
}

.team-rep {
  color: #000000;
}

.team-lover {
  color: #ff69b4;
}

.team-folklore {
  color: #708090;
}

.team-ever {
  color: #228b22;
}

.team-midnights {
  color: #4b0082;
}

.team-ttdp {
  color: #ff8c00;
}

/* Toast de confirmación */
.toast-success {
  background-color: var(--success);
  color: white;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}