/* Estilos Generales */
body {
    font-family: 'Inter', sans-serif;
}
body.overflow-hidden {
    overflow: hidden;
}

/* Estilos para las etiquetas de habilidades */
.skill-tag {
    transition: all 0.2s ease-in-out;
}
.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.1);
}

/* Estilos para la animación de entrada al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition-property: opacity, transform;
    transition-duration: 0.6s;
    transition-timing-function: ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Clases para el retardo de la animación */
.delay-100 {
    transition-delay: 100ms;
}
.delay-200 {
    transition-delay: 200ms;
}


/* === ESTILOS PARA EL MENÚ LATERAL === */

/* Capa de superposición que oscurece el fondo */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* El menú de navegación (Contenedor UL) */
.nav-menu {
    /* Por defecto, está oculto en móvil y se muestra en escritorio */
    display: none;
}

#div-experience {
    display: flex;
    justify-content: space-between;
}

/* Estilos para el menú de escritorio (pantallas de más de 768px) */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 2rem; /* space-x-8 */
    }
}

/* Estilos para el menú lateral en móviles (pantallas de menos de 767px) */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: #1e293b; /* bg-slate-800 */
        z-index: 100;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 1rem;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .nav-menu.is-open {
        right: 0;
    }
}

/* === ESTILOS PARA LAS IMÁGENES DE CERTIFICADOS === */
.certificate-image {
    background-size: contain; /* Asegura que toda la imagen sea visible */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    background-position: center; /* Centra la imagen en el contenedor */
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}
.certificate-image:hover {
    transform: scale(1.05); /* Efecto de zoom sutil al pasar el mouse */
}