:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --light-color: #f0f9ff;
    --dark-color: #1e293b;
    --gray-color: #64748b;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
  }
    .project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .project-card:hover {
    transform: translateY(-8px);
  }
  
  .gallery-overlay {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover .gallery-overlay {
    transform: translateY(0);
  }

  .scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999; /* Asegura que esté por encima de todo */
}

  .input-field {
    transition: border-color 0.2s ease;
  }
  
  .input-field:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
  }
  

    /* Mobile Menu Styles */
    .mobile-menu {
      transition: transform 0.3s ease;
    }
    
    .mobile-menu.hidden {
      transform: translateX(100%);
    }
  
  /* Error message styles */
  .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
  }
  
  .invalid .error-message {
    display: block;
  }
  
  .invalid input, 
  .invalid textarea {
    border-color: #ef4444;
  }
  
  /* Scroll to top button */
  .scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .scroll-top.visible {
    opacity: 1;
    visibility: visible;
  }

/* ALERTA PERSONALIZADA - ULTRA MODERNA */
.custom-alert {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-color);
  padding: 1rem 2rem;
  border-radius: 14px;
  box-shadow: 
    0 8px 32px rgba(30, 64, 175, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 1000;
  display: none;
  opacity: 0;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  max-width: calc(100% - 40px);
  width: auto;
  min-width: 280px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.custom-alert::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), rgba(255, 255, 255, 0.8));
  opacity: 0.6;
}

.custom-alert.show {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: 
    alertSlideIn 0.6s cubic-bezier(0.2, 0.8, 0.4, 1),
    alertFloat 4s ease-in-out infinite;
}

@keyframes alertSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes alertFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}

.custom-alert.hide {
  animation: alertSlideOut 0.4s cubic-bezier(0.8, 0.2, 1, 0.9) forwards;
}

@keyframes alertSlideOut {
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px);
  }
}