@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.bounce-animation {
  animation: bounce 1.6s infinite;
}

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards ease-out;
}

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

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.btn-outline-light:hover {
  color: #000;
  background-color: #fff;
}

.hover-opacity-100:hover {
  opacity: 1 !important;
}

header {
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 130% 100% at 50% 0%, transparent 50%, #020b05 100%);
}

.bg-dark-gradient {
  background: linear-gradient(180deg, #020b05 0%, #1a1d20 100%);
  padding-top: 2rem;
  position: relative;
  z-index: 3;
}

.blur-decoration {
  width: 400px;
  height: 400px;
  filter: blur(100px);
  transform: translate(30%, -30%);
  z-index: 0;
}

.opacity-10 {
  opacity: 0.15;
}

.floating-box-img {
  height: 380px;
  width: 100%;
  transform: rotate(-1deg);
  transition: all 0.28s ease;
  background-color: #212529;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.floating-box-img:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 0 30px rgba(25, 135, 84, 0.2) !important;
  z-index: 5;
}

.bg-image-hover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.floating-box-img:hover .bg-image-hover {
  transform: scale(1.1);
}

.badge-float {
  position: absolute;
  top: 25px;
  left: 25px;
  padding: 8px 16px;
  color: white;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.icon-square {
  width: 80px;
  height: 80px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.group-hover:hover .icon-square {
  transform: translateY(-10px) rotate(5deg);
  background-color: #198754 !important;
  color: white !important;
  border-color: #198754 !important;
}

.link-hover {
  transition: padding 0.2s;
}

.group-hover:hover .link-hover {
  padding-left: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.55s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.2s;
}

.reveal.delay-2 {
  transition-delay: 0.4s;
}

.reveal.delay-3 {
  transition-delay: 0.6s;
}

@media (max-width: 991px) {
  .floating-box-img {
    height: 250px;
    transform: none !important;
    margin-bottom: 20px;
  }

  .text-lg-end {
    text-align: left !important;
  }

  .offset-lg-1 {
    margin-left: 0;
  }
}

#testimonios {
  margin-top: -1px;
}

.glass-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  max-width: 900px;
}

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.carousel-control-prev:hover .nav-arrow,
.carousel-control-next:hover .nav-arrow {
  background: #198754;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(25, 135, 84, 0.4);
  border-color: #198754;
}

.carousel-indicators .active {
  opacity: 1 !important;
  background-color: #198754 !important;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .glass-card {
    padding: 2rem !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }

  .nav-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

#contacto {
  background-color: #0b0d0f;
  position: relative;
  margin-top: -1px;
}

#contacto::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 102px;
  background: linear-gradient(to bottom, transparent 0%, #0b0d0f 100%);
  z-index: 2;
  pointer-events: none;
}

.card-glass-dark {
  background-color: rgba(20, 20, 20, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-card {
  transition: all 0.2s ease;
}

.contact-card:hover {
  background-color: rgba(40, 40, 40, 0.9) !important;
  transform: translateX(5px);
  border-color: #198754 !important;
}

.icon-box {
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
}

.grayscale-map {
  filter: grayscale(100%) invert(90%) hue-rotate(180deg) brightness(90%);
  transition: all 0.3s ease;
}

.map-container:hover .grayscale-map {
  filter: grayscale(0%) invert(0%);
}

.map-container:hover .map-overlay {
  opacity: 0;
}

.bg-dark-input {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  border-color: #198754 !important;
  color: white !important;
}

.form-floating > label {
  padding-left: 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #198754 !important;
  opacity: 1;
}

.shadow-glow-hover:hover {
  box-shadow: 0 0 20px rgba(25, 135, 84, 0.6);
  transform: translateY(-2px);
}

.hero-overlay-dark {
  background: linear-gradient(to bottom, rgba(0, 30, 10, 0.85), rgba(0, 0, 0, 0.9));
}

.testimonios-overlay {
  background: linear-gradient(to bottom, #1a1d20 0%, rgba(2, 40, 15, 0.9) 40%, rgba(0, 20, 5, 0.95) 80%, #0b0d0f 100%);
}

.hero-logo-max {
  max-height: 120px;
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.8;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: none;
  opacity: 0.5;
  margin: 0 4px;
}

.contact-section-spacing {
  background-color: #0b0d0f;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.blur-decoration-xl {
  transform: translate(-50%, 50%);
  width: 600px;
  height: 600px;
  filter: blur(100px);
  opacity: 0.15;
}
