/* ===============================================
   CLAP - SISTEMA DE ESTILOS PROFESIONAL
   Versión mejorada y optimizada
   =============================================== */

/* Importar módulos en orden de cascada */
@import url('../marketing/index/reset.css');
@import url('../marketing/index/components.css');
@import url('../marketing/index/header.css');
@import url('../marketing/index/sections.css');
@import url('../marketing/index/footer.css');

/* ===============================================
   CUSTOM SELECT MEJORADO
   =============================================== */

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}

select:hover {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

select:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

select option {
  background: #0f0a1f;
  color: #f1f5f9;
  padding: 12px;
  font-weight: 500;
}

select option:hover,
select option:checked {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
}

/* ===============================================
   UTILIDADES ADICIONALES
   =============================================== */

.text-gradient {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-white {
  background: linear-gradient(135deg, #fff 0%, #e9d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-glow {
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.shadow-glow-lg {
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

.ml-auto {
  margin-left: auto;
}

.mr-auto {
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.gap-4 {
  gap: 2rem;
}

/* ===============================================
   MEJORAS DE ACCESIBILIDAD
   =============================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible para accesibilidad */
*:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===============================================
   MEJORAS DE PERFORMANCE
   =============================================== */

.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ===============================================
   ESTADOS DE CARGA
   =============================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0.05) 0%,
    rgba(139, 92, 246, 0.15) 50%,
    rgba(139, 92, 246, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.loading {
  pointer-events: none;
  opacity: 0.6;
  cursor: wait;
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
  header,
  footer,
  .btn-primary,
  .btn-secondary,
  .particles {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .glass-card {
    background: white;
    border: 1px solid #ccc;
  }
}