/* Legales footer hover effects */
#collapseLegales ul li a {
  color: #fff !important;
  transition: all 0.3s ease;
}

#collapseLegales ul li a:hover {
  color: #203376 !important;
  text-shadow: 0 0 8px rgba(32, 51, 118, 0.5);
  transform: translateX(5px);
}

#collapseLegales ul li a:hover svg {
  color: #203376 !important;
  filter: drop-shadow(0 0 4px rgba(32, 51, 118, 0.4));
}

/* Global Extra Styles Extracted Extracted from HTML */

.nav-link i {
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.2);
}

/* Global Extra Styles Extracted Extracted from HTML */

/* Por defecto, desktop visible y mobile oculto */
.desktop-slide {
  display: block !important;
  max-width: 1200px;
  /* Control the max width so images become smaller in height */
  margin: 20px auto;
  /* Center the carousel and add small spacing above/below */
  border-radius: 20px;
  /* Optional: smooth corners to look more modern */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  /* Adds a subtle depth effect */
}

.mobile-slide {
  display: none !important;
}

/* En móviles, ocultar desktop y mostrar solo mobile */
@media (max-width: 768px) {
  .desktop-slide {
    display: none !important;
  }

  .mobile-slide {
    display: block !important;
  }

  .slider_section {
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .hero_area {
    min-height: auto !important;
    padding: 0 !important;
  }

  .carousel,
  .carousel-inner,
  .carousel-item {
    height: auto !important;
  }

  .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

/* Global Extra Styles Extracted Extracted from HTML */

.location-item {
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-start;
}

.location-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: white !important;
}

.map-container:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

/* Global Extra Styles Extracted Extracted from HTML */

/* Mejora visual para el select en desktop y mobile */
#coloniaSelect:hover,
#coloniaSelect:focus {
  border-color: #203376 !important;
  box-shadow: 0 0 0 2px #1abc9c55 !important;
}

#coloniaSelect option {
  padding: 12px;
  font-size: 1rem;
  background: #fff;
  color: #203376;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .colonia-select-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }

  #coloniaSelect {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* Global Extra Styles Extracted Extracted from HTML */

.single-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.single-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 10px 30px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  margin-bottom: 15px;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@supports not (backdrop-filter: blur(10px)) {
  .single-card {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* Global Extra Styles Extracted Extracted from HTML */

.benefit-card {
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.icon-wrapper {
  background: rgba(255, 255, 255, 0.1);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .benefit-card {
    margin-bottom: 20px;
  }
}

/* Global Extra Styles Extracted Extracted from HTML */

.tech-card {
  transition: transform 0.3s ease, background 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15) !important;
}

.tech-icon {
  background: rgba(255, 255, 255, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
  transform: scale(1.1);
}

/* Global Extra Styles Extracted Extracted from HTML */

.trust-banner img:hover {
  filter: grayscale(0%) !important;
  transform: scale(1.05);
}

/* Global Extra Styles Extracted Extracted from HTML */

.testimonial-card {
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 320px;
}

@media (max-width: 768px) {
  .testimonial-card {
    height: 850px;
  }

  .testimonial-card .detail-box {
    flex-wrap: wrap;
  }

  .testimonial-card .detail-box .rating {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.carousel-indicators li {
  cursor: pointer;
}

.carousel-indicators li.active {
  background-color: #4ddf6d !important;
}

/* Global Extra Styles Extracted Extracted from HTML */

.accordion .card-header button:hover {
  color: #4ddf6d !important;
}

.accordion .card-header button[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.accordion .card-header button i {
  transition: transform 0.3s ease;
}

/* Global Extra Styles Extracted Extracted from HTML */

.contact-card:hover {
  transform: translateY(-10px);
}

.icon-wrapper {
  transition: transform 0.3s ease;
}

.contact-card:hover .icon-wrapper {
  transform: scale(1.1);
}

.btn-light:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Global Extra Styles Extracted Extracted from HTML */

.nav-link i {
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.2);
}

/* Global Extra Styles Extracted Extracted from HTML */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.content-section p,
.content-section ul {
  text-align: justify;
}

/* Justify text for content sections in Terminos y Condiciones */
.content-section p,
.content-section ul li {
  text-align: justify;
}

.px-lg-5.px-md-4.py-2>p {
  text-align: justify;
}


/* Header Nav Text Hover Scale */
.custom_nav-container.navbar-expand-lg .navbar-nav .nav-link {
  transition: transform 0.3s ease !important;
  display: inline-block !important;
  /* Ensure transform works smoothly */
}

.custom_nav-container.navbar-expand-lg .navbar-nav .nav-link:hover {
  transform: scale(1.15) !important;
}

/* Override the old icon-only scale, so everything scales together evenly */
.nav-link:hover i {
  transform: none !important;
}

/* Scroll to Top Button */
#backToTop {
  display: none !important;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #203376;
  color: white;
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999999 !important;
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#backToTop:hover {
  background-color: #4ddf6d;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(77, 223, 109, 0.5);
}

@media (max-width: 768px) {
  body.politicas-privacidad #backToTop {
    display: flex !important;
  }

  #backToTop {
    bottom: 110px;
    /* Evitar que estorbe el menú móvil inferior si existe */
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}