/* ==========================================================================
   #GLOBAL
   ========================================================================== */

:root {
    /* Colores principales */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --primary-950: #172554;
    
    /* Colores secundarios */
    --secondary-50: #ecfdf5;
    --secondary-100: #d1fae5;
    --secondary-200: #a7f3d0;
    --secondary-300: #6ee7b7;
    --secondary-400: #34d399;
    --secondary-500: #10b981;
    --secondary-600: #059669;
    --secondary-700: #047857;
    --secondary-800: #065f46;
    --secondary-900: #064e3b;
    --secondary-950: #022c22;
    
    /* Colores de acento */
    --accent-50: #f5f3ff;
    --accent-100: #ede9fe;
    --accent-200: #ddd6fe;
    --accent-300: #c4b5fd;
    --accent-400: #a78bfa;
    --accent-500: #8b5cf6;
    --accent-600: #7c3aed;
    --accent-700: #6d28d9;
    --accent-800: #5b21b6;
    --accent-900: #4c1d95;
    --accent-950: #2e1065;
    
    /* Colores de estado */
    --success-50: #f0fdf4;
    --success-500: #22c55e;
    --success-700: #15803d;
    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --warning-700: #b45309;
    --danger-50: #fef2f2;
    --danger-500: #ef4444;
    --danger-700: #b91c1c;
    
    /* Escala de grises */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-500), var(--secondary-700));
    --gradient-accent: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    --gradient-primary-to-secondary: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    --gradient-primary-to-accent: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    --gradient-secondary-to-accent: linear-gradient(135deg, var(--secondary-500), var(--accent-500));
    --gradient-conic: conic-gradient(from 225deg, var(--primary-500), var(--secondary-500), var(--accent-500), var(--primary-500));
    --gradient-radial: radial-gradient(circle, var(--primary-400) 0%, var(--primary-800) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-600), #2563eb);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   #ANIMATIONS
   ========================================================================== */

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes floatSlow {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(15px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 0.9; }
    70% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Clases de animación */
.animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease-out forwards; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease-out forwards; }
.animate-slideInLeft { animation: slideInLeft 0.5s ease-out forwards; }
.animate-slideInRight { animation: slideInRight 0.5s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-floatSlow { animation: floatSlow 6s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-ripple { animation: ripple 1.5s ease-out infinite; }
.animate-bounceIn { animation: bounceIn 0.75s ease-out forwards; }
.animate-wiggle { animation: wiggle 1s ease-in-out infinite; }
.animate-shimmer { 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
.animate-spin { animation: spin 1s linear infinite; }
.animate-spinSlow { animation: spinSlow 3s linear infinite; }

/* ==========================================================================
   #BASE
   ========================================================================== */

:root {
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* Modo oscuro */
.dark {
  --bg-primary: var(--gray-900);
  --bg-secondary: var(--gray-800);
  --text-primary: var(--gray-100);
  --text-secondary: var(--gray-300);
  --border-color: var(--gray-700);
}

/* Modo claro (default) */
:root {
  --bg-primary: var(--gray-100);
  --bg-secondary: white;
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --border-color: var(--gray-200);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  line-height: 1.6;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background-color: var(--primary-500);
  color: white;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Remove default button styling */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Responsive typography */
@media (min-width: 640px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }
}

/* ==========================================================================
   #TYPOGRAPHY
   ========================================================================== */

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h5 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

h6 {
  font-size: clamp(0.875rem, 1vw, 1rem);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--primary-600);
}

a.underline-link {
  position: relative;
  display: inline-block;
}

a.underline-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--gradient-primary-to-secondary);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

a.underline-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Text utilities */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 2rem;
}

/* Responsive typography */
@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1.35rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 3rem;
  }
}

/* ==========================================================================
   #COMPONENTS
   ========================================================================== */

/* Cards */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: rgba(199, 210, 254, 0.5);
}

.card:hover::before {
  opacity: 1;
}

/* Card with hover effect */
.card-hover-effect {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card-hover-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover {
  color: white;
}

.card-hover-effect:hover::after {
  opacity: 1;
}

.card-hover-effect:hover .card-title,
.card-hover-effect:hover .card-text {
  color: white;
}

/* Card Header */
.card-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: border-color 0.3s ease;
}

.card:hover .card-header {
  border-color: rgba(199, 210, 254, 0.4);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.card-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

/* Card Body */
.card-body {
  padding: 1.5rem;
  transition: background-color 0.3s ease;
}

.card-text {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  transition: color 0.3s ease;
}

/* Card Footer */
.card-footer {
  padding: 1rem 1.5rem;
  background-color: #f8fafc;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.card:hover .card-footer {
  background-color: #f1f5f9;
  border-color: rgba(199, 210, 254, 0.4);
}

/* Card Image */
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.03);
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

/* Card Hover Effects */
.card-hover-zoom {
  overflow: hidden;
}

.card-hover-zoom .card-img {
  transition: transform 0.5s ease;
}

.card-hover-zoom:hover .card-img {
  transform: scale(1.1);
}

/* Card with Icon */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-600);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: var(--gradient-primary);
  color: white;
  transform: rotate(5deg) scale(1.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, box-shadow, background-color, border-color;
}

/* Button States */
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.25);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 1rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
  border-radius: 1.25rem;
}

/* Button Variants */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px -3px rgba(14, 165, 233, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hover);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px -5px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover:not(:disabled)::before {
  opacity: 1;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px -3px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-600);
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-500);
  transition: all 0.3s ease, transform 0.2s ease;
}

.btn-outline:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px -3px rgba(14, 165, 233, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid transparent;
  transition: all 0.3s ease, transform 0.2s ease;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.05);
  transform: translateY(-2px);
}

/* Button with icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.btn-icon:hover:not(:disabled) svg {
  transform: translateX(4px);
}

/* Button with loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  top: 50%;
  left: 50%;
  margin: -0.625rem 0 0 -0.625rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.btn-outline.btn-loading::after,
.btn-ghost.btn-loading::after {
  border: 2px solid rgba(14, 165, 233, 0.2);
  border-top-color: var(--primary-500);
}

/* Button group */
.btn-group {
  display: inline-flex;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.1);
}

.btn-group .btn {
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.btn-group .btn:not(:first-child) {
  margin-left: -1px;
}

.btn-group .btn:first-child {
  border-top-left-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
}

.btn-group .btn:last-child {
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  z-index: 0;
}

/* Floating Action Button */
.btn-fab {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px -5px rgba(14, 165, 233, 0.3);
}

.btn-fab.btn-sm {
  width: 2.75rem;
  height: 2.75rem;
}

.btn-fab.btn-lg {
  width: 4.5rem;
  height: 4.5rem;
}

/* Button with badge */
.btn-badge {
  position: relative;
}

.btn-badge::after {
  content: attr(data-badge);
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  background: #ef4444;
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--primary-600);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, color 0.2s ease;
  will-change: transform;
}

.nav-logo:hover {
  transform: translateY(-1px);
  color: var(--primary-700);
}

.nav-logo:active {
  transform: translateY(0);
}

.nav-logo img {
  height: 2.25rem;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  animation: pulse 1.5s infinite;
}

.nav-links {
  display: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 0.6rem 1rem;
  margin: 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, color, background;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.nav-link:hover {
  color: var(--primary-600);
  background: rgba(14, 165, 233, 0.05);
  transform: translateY(-1px);
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--primary-600);
  font-weight: 600;
}

.nav-link.active::before {
  transform: scaleX(1);
}

/* Nav CTA Button */
.nav-cta {
  display: none;
  margin-left: 1rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
  will-change: transform, box-shadow;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -1px rgba(14, 165, 233, 0.3);
}

.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px -1px rgba(14, 165, 233, 0.2);
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-block;
  }
}

/* Mobile Menu Button */
.nav-mobile-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #334155;
}

.nav-mobile-button:active {
  transform: scale(0.95);
}

@media (min-width: 768px) {
  .nav-mobile-button {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  padding: 0.5rem 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border-radius: 0 0 1rem 1rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .nav-link {
  display: block;
  padding: 1rem 1.5rem;
  margin: 0.25rem 1rem;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
}

.mobile-menu .nav-link:hover {
  background: rgba(14, 165, 233, 0.05);
  color: var(--primary-600);
  transform: translateX(4px);
}

.mobile-menu .nav-link.active {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-600);
  font-weight: 600;
}

.mobile-menu .nav-cta {
  display: block;
  margin: 1rem 1.5rem;
  text-align: center;
}

/* Nav Scroll Progress */
.nav-scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.1s ease-out;
  z-index: 1001;
}

/* Timeline */
.timeline {
  @apply relative max-w-3xl mx-auto;
}

.timeline::before {
  content: '';
  @apply absolute left-1/2 top-0 bottom-0 w-1 bg-gradient-to-b from-primary-500 to-secondary-500 transform -translate-x-1/2;
}

.timeline-item {
  @apply relative mb-12 w-full;
}

.timeline-item:nth-child(odd) {
  @apply pr-8 md:pr-0 md:pl-8 self-end;
}

.timeline-item:nth-child(even) {
  @apply pl-8 md:pl-0 md:pr-8 self-start md:self-end;
}

.timeline-dot {
  @apply absolute w-6 h-6 rounded-full bg-gradient-to-br from-primary-500 to-blue-600 border-4 border-white dark:border-slate-900 z-10;
  left: 50%;
  transform: translateX(-50%);
  top: 32px;
}

/* Accordion */
.accordion {
  @apply rounded-xl overflow-hidden border border-gray-200 dark:border-slate-700 mb-4;
}

.accordion-toggle {
  @apply w-full flex items-center justify-between p-6 text-left font-medium transition-colors duration-200;
  @apply bg-white hover:bg-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700;
}

.accordion-content {
  @apply overflow-hidden transition-all duration-300;
  max-height: 0;
}

.accordion.active .accordion-content {
  max-height: 1000px;
}

.accordion.active .accordion-toggle {
  @apply bg-gray-50 dark:bg-slate-700;
}

/* Skills */
.skill-bar {
  @apply w-full h-2 bg-gray-200 dark:bg-slate-700 rounded-full overflow-hidden;
}

.skill-level {
  @apply h-full rounded-full bg-gradient-to-r from-primary-500 to-blue-600 transition-all duration-1000;
  width: 0;
}

/* Project Card */
.project-card {
  @apply relative overflow-hidden rounded-xl bg-white dark:bg-slate-800 shadow-lg transition-all duration-300;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card::before {
  content: '';
  @apply absolute inset-0 bg-gradient-to-t from-black/70 to-transparent opacity-0 transition-opacity duration-300 z-10;
}

.project-card:hover::before {
  @apply opacity-100;
}

.project-content {
  @apply absolute inset-0 flex flex-col justify-end p-6 text-white opacity-0 transition-opacity duration-300 z-20;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.project-card:hover .project-content {
  @apply opacity-100;
}

/* ==========================================================================
   #FORMS
   ========================================================================== */

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.5;
}

.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1e293b;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Textarea specific styles */
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Select dropdown arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

/* Checkbox and Radio buttons */
.form-checkbox,
.form-radio {
  position: absolute;
  opacity: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.form-checkbox + .form-checkbox-label,
.form-radio + .form-radio-label {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
  color: #334155;
  line-height: 1.5;
}

.form-checkbox + .form-checkbox-label::before,
.form-radio + .form-radio-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  background-color: #fff;
  transition: all 0.2s ease;
}

.form-radio + .form-radio-label::before {
  border-radius: 50%;
}

/* Checked state */
.form-checkbox:checked + .form-checkbox-label::before {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 75% 75%;
}

.form-radio:checked + .form-radio-label::before {
  border-color: var(--primary-500);
  background-color: #fff;
  box-shadow: inset 0 0 0 4px var(--primary-500);
}

/* Error state */
.form-input-error,
.form-select-error,
.form-textarea-error {
  border-color: #ef4444 !important;
}

.form-input-error:focus,
.form-select-error:focus,
.form-textarea-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: #ef4444;
  line-height: 1.5;
}

/* Form group with icon */
.form-group-icon {
  position: relative;
}

.form-group-icon .form-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.form-group-icon .form-input,
.form-group-icon .form-select {
  padding-left: 2.5rem;
}

/* Form group with button */
.form-group-button {
  display: flex;
  gap: 0.5rem;
}

.form-group-button .form-input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.form-group-button .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}

/* Form help text */
.form-help {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   #UTILITIES
   ========================================================================== */

/* Spacing */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 9rem 0;
  }
}

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

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

/* Animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Gradients */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Transitions */
.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  opacity: 0.9;
}

/* Flex utilities */
.flex {
  display: flex;
}

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

.justify-between {
  justify-content: space-between;
}

/* Spacing utilities */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

/* ==========================================================================
   #UTILIDADES
   ========================================================================== */

/* Efectos de glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sombras personalizadas */
.shadow-glow {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.shadow-glow-secondary {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.shadow-glow-accent {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Bordes redondeados */
.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

/* Gradientes de texto */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.text-gradient-primary {
  background-image: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.text-gradient-secondary {
  background-image: var(--gradient-secondary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.text-gradient-accent {
  background-image: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.text-gradient-primary-secondary {
  background-image: var(--gradient-primary-to-secondary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Bordes con gradiente */
.border-gradient {
  position: relative;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  padding: 2px;
  background: var(--gradient-primary-to-secondary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Efectos hover */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Utilidades de espaciado */
.section-spacing {
  padding: 5rem 0;
}

.section-spacing-sm {
  padding: 3rem 0;
}

/* Utilidades de contenedor */
.container-narrow {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:text-left {
    text-align: left;
  }
  
  .sm\:flex {
    display: flex;
  }
}

@media (min-width: 768px) {
  .md\:text-center {
    text-align: center;
  }
  
  .md\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .lg\:text-right {
    text-align: right;
  }
  
  .lg\:justify-end {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   #RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .timeline::before {
    @apply left-6;
  }
  
  .timeline-item {
    @apply pl-16 pr-0;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    @apply pl-16 pr-0 self-start;
  }
  
  .timeline-dot {
    left: 24px;
    transform: none;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    @apply bg-white text-black;
  }
  
  .card {
    @apply border border-gray-200 shadow-none;
  }
}
