/* Hero Section - Complete Styles */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 600px;
  isolation: isolate;
  animation: changeBackground 18s infinite ease-in-out;
}

/* Background Image Animation */
@keyframes changeBackground {
  0%, 33% {
    background-image: url('../imagenes/travel.jpg');
  }
  34%, 66% {
    background-image: url('../imagenes/travel1.jpg');
  }
  67%, 100% {
    background-image: url('../imagenes/travel2.jpg');
  }
}

/* Image Transition Effect */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeInOut 18s infinite;
  z-index: 1;
}

@keyframes fadeInOut {
  0%, 30%, 63%, 97%, 100% {
    opacity: 0;
  }
  33%, 66% {
    opacity: 1;
  }
}

/* Dark Overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

/* Content Container */
.hero-content {
  position: relative;
  width: 100%;
  padding: 20px;
  z-index: 3;
  margin-bottom: 20px;
}

/* Text Styles */
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s forwards 0.5s;
  opacity: 0;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  max-width: 500px;
  animation: fadeInUp 1s forwards 0.8s;
  opacity: 0;
  line-height: 1.6;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}



/* Additional Gradient Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 2;
}

/* Services Button Styles */
.more-services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  width: 100%;
}

.more-services-btn {
  background: linear-gradient(135deg, #51a9c1 0%, #5fc9e5 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(32, 200, 222)yyyyyyyy;
  display: flex;
  align-items: center;
  gap: 8px;
}

.more-services-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(32, 200, 222);
  background: linear-gradient(135deg, #77c3e9 0%, #76cbea 100%);
}

/* Services Section Styles */
#servicios .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  overflow: visible;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.servicio-card {
  display: block;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.servicio-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
}

.servicio-content {
  padding: 15px;
  display: block;
}