/* Small custom: smooth scroll, focus outlines */
html {
    scroll-behavior: smooth;
}

/* 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;
}