/* styles.css - Estilos comunes para el sistema de inscripciones */

:root {
  --primary-color: #212529;
  --success-color: #198754;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --bg-light: #f8f9fa;
  --accent-color: #6c63ff;
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --danger-color: #dc3545;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--primary-color);
  min-height: 100vh;
}

/* Contenedor principal para páginas centradas */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.content-wrapper {
  width: 100%;
  max-width: 600px;
}

/* Tarjetas */
.custom-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

/* Títulos */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  color: var(--primary-color);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Formularios */
.form-section {
  margin-bottom: 2rem;
}

.form-label {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control, .custom-select {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  line-height: 1.5;
  min-height: calc(1.5em + 1.5rem + 2px);
}

/* Fix específico para selects */
select.form-control,
.custom-select {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  height: auto !important;
}

.form-control:focus, .custom-select:focus {
  border-color: var(--gradient-start);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  outline: none;
}

/* Indicador de campo requerido */
.red {
  color: var(--danger-color);
  font-weight: 600;
}

/* Botones principales */
.btn-custom {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #48bb78, #6c63ff, #764ba2);
  border-radius: 8px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-custom:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.btn-custom:hover::before {
  opacity: 0.3;
}

.btn-custom:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
}

/* Info cards */
.info-card {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.info-card .participant-name {
  font-size: 1.25rem;
  font-weight: 600;
  /* margin-bottom: 0.5rem; */
}

.info-card .participant-name i {
  color: var(--accent-color);
}

.info-card .participant-details {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-card .participant-details i {
  color: var(--gradient-start);
  font-size: 1rem;
}

.info-card .participant-details strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Success icon */
.success-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #48bb78, #38a169);
  border-radius: 50%;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(72, 187, 120, 0.3);
}

.success-icon-wrapper::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid #48bb78;
  border-radius: 50%;
  opacity: 0.2;
}

.success-icon-wrapper i {
  font-size: 2.5rem;
  color: white;
}

/* Footer notes */
.footer-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-note i {
  color: var(--success-color);
  margin-right: 0.25rem;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Header específico para formularios */
.form-header {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.form-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .custom-card {
      padding: 2rem 1.5rem;
  }
  
  .page-title {
      font-size: 1.75rem;
  }
  
  .form-header h4 {
      font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  /* Sobrescribir estilos de card en móvil */
  .custom-card {
      background: #ffffff;
      border: none !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      padding: 2rem 1.25rem;
  }
  
  .btn-custom {
      width: 100%;
  }
}

/* Utilidades */
.text-primary-custom {
  color: var(--gradient-start) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.mt-section {
  margin-top: 3rem;
}

.mb-section {
  margin-bottom: 3rem;
}
.invisibles {
  display: none;
}