
@import url("https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css");
/* 🎨 VARIABLES DE COLOR (Recuperadas de tu tailwind.config) */
:root {
  --color-primary: #111827; /* Negro elegante */
  --color-secondary: #00acee; /* Azul premium */
  --color-call: #dc2626; /* Rojo premium */
  --color-accent: #059669; /* Verde éxito */
  --color-light: #f8fafc;
  --color-dark: #1f2937;
  scroll-behavior: smooth;
}

/* 🖌️ CLASES DE UTILIDAD PARA COLORES */
.bg-primary { background-color: var(--color-primary); }
.text-primary { color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.text-secondary { color: var(--color-secondary); }
.bg-call { background-color: var(--color-call); }
.text-call { color: var(--color-call); }
.bg-accent { background-color: var(--color-accent); }
.text-accent { color: var(--color-accent); }
.bg-light { background-color: var(--color-light); }
.text-light { color: var(--color-light); }
.bg-dark { background-color: var(--color-dark); }
.text-dark { color: var(--color-dark); }

/* 🚀 KEYFRAMES Y ANIMACIONES */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse { 
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* CLASES DE ANIMACIÓN CORRESPONDIENTES */
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-pulse-slow { animation: pulse 3s infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* ✅ FIX: Clases para Gradientes Personalizados */
.custom-gradient-br {
    background: linear-gradient(to bottom right, var(--color-primary), var(--color-secondary));
}
.custom-gradient-r {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

/* 🖼️ ESTILOS CRÍTICOS Y PERSONALIZADOS (Tu CSS existente) */
body {
  background-color: #ffffff;
  color: var(--color-primary);
  font-family: 'Helvetica', 'Arial', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Ajuste de colores por consistencia de diseño */
.bg-blue-100 { background-color: #e0f7ff; } 
.bg-green-100 { background-color: #d1fae5; }
.text-blue-600 { color: var(--color-secondary); } 

/* Tus estilos de Neurodiseño (.card-elegant, .modal, etc.) */
.card-elegant {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f3f4f6;
}

.card-elegant:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.gradient-subtle {
  background: linear-gradient(135deg, var(--color-light) 0%, #f1f5f9 100%);
}

.text-readable { line-height: 1.7; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

img { max-width: 100%; height: auto; }

.icon-elegant {
  filter: grayscale(100%) brightness(0.3);
  transition: all 0.3s ease;
}

.card-elegant:hover .icon-elegant {
  filter: grayscale(0%) brightness(1);
}

.counter { font-variant-numeric: tabular-nums; }

.neuro-shadow {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pulse-urgency { animation: pulse 2s infinite; }

.will-change-transform { will-change: transform; }

/* Estilos funcionales del Modal */
.modal {
  display: none; 
  position: fixed;
  inset: 0; 
  z-index: 1000;
  overflow: hidden; 
  background-color: rgba(0, 0, 0, 0.95); 
  align-items: center; 
  justify-content: center;
  flex-direction: column;
}

.modal-content {
  position: relative;
  width: 95%; 
  height: 95%; 
  border-radius: 1rem; 
  overflow: hidden; 
  box-shadow: 0 10px 25px var(--color-secondary); 
}

.close {
  color: #fff;
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001; 
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
}

.close:hover,
.close:focus {
  color: var(--color-secondary); 
  text-decoration: none;
  cursor: pointer;
}

/* Estilos Estéticos AVANZADOS (Animaciones) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll.animate-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}
.card-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(3, 138, 248, 0.3), 0 4px 6px -4px rgba(94, 169, 255, 0.3);
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color:var(--color-secondary); 
  background-color: var(--color-secondary); 
  border-radius: 9999px;
}
