/* ============================================
   Base & CSS Variables (neutro - multisite)
   ============================================ */
:root {
    --primary: var(--color-primary, #3B82F6);
    --secondary: var(--color-secondary, #2563EB);
    --accent: var(--color-accent, #F97316);
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ============================================
   COLORES PRIMARIOS (dinámicos por site)
   ============================================ */
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-secondary { color: var(--secondary) !important; }

/* ============================================
   HOVER STATES
   ============================================ */
.hover\:bg-primary:hover { background-color: var(--primary) !important; }
.hover\:bg-secondary:hover { background-color: var(--secondary) !important; }
.hover\:text-primary:hover { color: var(--primary) !important; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }
.hover\:bg-gray-100:hover { background-color: #F3F4F6 !important; }
.hover\:bg-gray-50:hover { background-color: #F9FAFB !important; }
.hover\:bg-primary\/10:hover { background-color: color-mix(in srgb, var(--primary) 10%, transparent) !important; }

/* ============================================
   BACKGROUNDS
   ============================================ */
.bg-white { background-color: #ffffff !important; }
.bg-gray-50 { background-color: #F9FAFB !important; }
.bg-gray-100 { background-color: #F3F4F6 !important; }
.bg-gray-200 { background-color: #E5E7EB !important; }
.bg-gray-800 { background-color: #1F2937 !important; }

/* ============================================
   TEXT COLORS
   ============================================ */
.text-white { color: #ffffff !important; }
.text-gray-500 { color: #6B7280 !important; }
.text-gray-600 { color: #4B5563 !important; }
.text-gray-800 { color: #1F2937 !important; }
.text-gray-900 { color: #111827 !important; }

/* ============================================
   SHADOWS
   ============================================ */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }

/* ============================================
   BORDER RADIUS
   ============================================ */
.rounded { border-radius: 0.25rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }

/* ============================================
   SPACING
   ============================================ */
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }

/* ============================================
   FLEXBOX
   ============================================ */
.flex { display: flex !important; }
.flex-grow { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink- 0 !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.text-center { text-align: center !important; }

/* ============================================
   GRID
   ============================================ */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

/* ============================================
   CONTAINER
   ============================================ */
.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: 700 !important; }

/* ============================================
   WIDTH/HEIGHT
   ============================================ */
.w-12 { width: 3rem !important; }
.w-16 { width: 4rem !important; }
.h-12 { height: 3rem !important; }
.h-16 { height: 4rem !important; }
.aspect-video { aspect-ratio: 16 / 9 !important; }

/* ============================================
   DISPLAY
   ============================================ */
.block { display: block !important; }
.inline-block { display: inline-block !important; }

/* ============================================
   TRANSITIONS
   ============================================ */
.transition { transition-property: all !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
