/* Small custom: smooth scroll, focus outlines */
html {
    scroll-behavior: smooth;
}

img[src=""] {
  display: none;
}

/* Adjust scroll position for fixed header */
section {
    scroll-margin-top: 140px;
}

:focus {
    outline: 3px solid rgba(30, 148, 222, 0.18);
    outline-offset: 3px;
}

/* subtle gradient for hero wave */
.hero-wave {
    background: linear-gradient(180deg, rgba(8, 85, 127, 0.95) 0%, rgba(30, 148, 222, 0.85) 100%);
}

/* Gradient border for category icons */
.gradient-border {
    background: linear-gradient(45deg, #08557F, #66908F, #1E94DE);
    border-radius: 50%;
    padding: 8px;
}

.gradient-border>* {
    background: white;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prevent selection and dragging on category buttons and text */
.cat-btn,
.cat-btn+span {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cat-btn img {
    pointer-events: none;
}

/* Prevent hover effects on selected buttons */
.cat-btn:hover:not(.selected) {
    background-color: rgb(8 85 127 / var(--tw-bg-opacity, 1));

}

.cat-btn.selected {
    background-color: white;
    box-shadow: 0 0 25px rgb(0 196 255);
}

/* Custom background for category buttons */
.button-bg {
    background: linear-gradient(45deg, #7dc0e7, transparent);
}

/* Animación Ken Burns (Zoom lento) */
@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.animate-ken-burns {
    animation: kenburns 20s ease-out infinite alternate;
}

/* Transición suave entre slides de section hero*/
.hero-slide {
    opacity: 0;
    /* Por defecto invisible */
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    position: absolute;
    /* Aseguramos posición absoluta aquí */
    inset: 0;
}

.hero-slide.active {
    opacity: 1;
    /* Solo visible si tiene la clase active */
    z-index: 1;
    /* Se coloca por encima de las demás */
}

.hero-slide.inactive {
    opacity: 0;
}

/* Services Carousel Styles */
.services-carousel-wrapper {
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
}

.services-slide {
    min-height: 400px;
}

.services-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

.services-indicator:hover {
    transform: scale(1.2);
}

.services-indicator.active {
    background-color: #1E94DE;
    transform: scale(1.1);
}

/* Hide scrollbar for carousel */
#services-carousel::-webkit-scrollbar {
    display: none;
}

#services-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Overlay text for swiper slides */
.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1.5rem;
}

/* Section separator */
.section-separator {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #1E94DE; /* hidro-accent */
    margin: 20px auto;
}

/* Swiper navigation buttons */
.swiper-button-next, .swiper-button-prev {
    color: #1E94DE; /* hidro-accent */
    background: transparent;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

/* Swiper pagination */
.swiper-pagination-bullet {
    background: #C6D6D6; /* hidro-muted */
}

.swiper-pagination-bullet-active {
    background: #1E94DE; /* hidro-accent */
}