/* Essential styles that can't be replaced by Tailwind CSS */

/* Global reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Custom animations for scroll effects */
@keyframes fadeUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

.animate-on-scroll.in-view {
  animation: fadeUp 0.8s ease forwards;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  display: block;
}

/* Remove default link styling */
a {
  text-decoration: none;
  color: inherit;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #587060;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #42594b;
}

/* Hide scrollbar for team carousel */
.scrollbar-hide {
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Safari and Chrome */
}

/* Smooth scrolling for carousel */
#team-carousel {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

/* Snap alignment for carousel items */
#team-carousel > div {
  scroll-snap-align: start;
}

/* Carousel navigation */
#carousel-prev, #carousel-next {
  transition: all 0.3s ease;
}

#carousel-prev:disabled, #carousel-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hide arrows on mobile devices */
@media (max-width: 768px) {
  #carousel-prev, #carousel-next {
    display: none;
  }
  
  #team-carousel {
    padding-left: 0;
    padding-right: 0;
  }
}

/* === MEJORAS VISUALES === */

/* Gradientes sutiles para fondos */
.bg-gradient-soft {
  background: linear-gradient(135deg, #f9f7f3 0%, #f0f0f0 100%);
}

.bg-gradient-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

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

/* Sombras mejoradas */
.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(88, 112, 96, 0.15);
}

/* Animaciones mejoradas */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 112, 96, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(88, 112, 96, 0); }
}

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

/* Efectos hover mejorados */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Botones con efectos mejorados */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

/* Efectos de partículas flotantes */
.floating-particles {
  position: relative;
  overflow: hidden;
}

.floating-particles::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 112, 96, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: float 20s infinite linear;
  pointer-events: none;
}

/* Mejoras en el texto */
.text-gradient {
  background: linear-gradient(135deg, #294331 0%, #587060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bordes animados */
.animated-border {
  position: relative;
  background: linear-gradient(45deg, #587060, #42594b, #587060);
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efectos de carga */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Mejoras en scrollbar personalizada */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f1f1f1 0%, #e8e8e8 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #587060 0%, #42594b 100%);
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #42594b 0%, #294331 100%);
}

/* Efectos de parallax sutil */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Mejoras en responsive */
@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}