
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;

    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    --primary: 188 100% 42%; /* Cyan azul principal #00B8D4 */
    --primary-foreground: 210 40% 98%;

    --secondary: 215 28% 17%; /* Azul oscuro #2C3E50 */
    --secondary-foreground: 210 40% 98%;

    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 61 73% 42%; /* Verde lima #C4D600 */
    --accent-foreground: 210 40% 98%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 188 100% 42%;

    --radius: 0.5rem;

    /* Colores personalizados para el sitio */
    --primary-cyan: #00B8D4;
    --primary-dark: #0A2240;
    --secondary-dark: #2C3E50;
    --accent-green: #4CAF50;
    --accent-lime: #C4D600;
    --neutral-gray: #95A5A6;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 84% 4.9%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* Tipografías personalizadas */
.heading-primary {
  font-family: var(--font-teko);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heading-secondary {
  font-family: var(--font-teko);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero section overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(10, 34, 64, 0.8) 0%, rgba(44, 62, 80, 0.6) 100%);
}

/* Gradients personalizados */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-dark) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-cyan) 100%);
}

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

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

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-count-up {
  animation: countUp 0.8s ease-out;
}

/* Responsive container */
.container-custom {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-cyan);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Focus styles */
.focus-visible:focus-visible {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
}
