/* Estilos específicos para el landing de diseño web */

/* Hero fondo animado */
.hero-fondo-animado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(19, 109, 236, 0.05) 0%, rgba(19, 109, 236, 0.1) 50%, rgba(19, 109, 236, 0.05) 100%);
    opacity: 0.5;
    z-index: 0;
}

/* Animaciones para tarjetas flotantes */
.tarjeta-flotante {
    animation: float 6s ease-in-out infinite;
}

.tarjeta-1 {
    animation-delay: 0s;
}

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

.tarjeta-3 {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Badge de experiencia */
.badge-experiencia {
    animation: pulse-scale 3s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Filtros de portfolio */
.filtro-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn:hover {
    transform: translateY(-2px);
}

/* Proyectos ocultos por filtro */
.proyecto-item {
    transition: all 0.3s ease;
}

.proyecto-item.oculto {
    display: none;
}

/* Botón scroll to top */
.boton-scroll-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.boton-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.boton-scroll-top:hover {
    transform: translateY(-4px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tarjeta-flotante {
        position: static !important;
        margin-bottom: 1rem;
    }
    
    .badge-experiencia {
        position: static !important;
        margin-top: 1rem;
        display: inline-block;
    }
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Hero visual container */
.hero-visual {
    position: relative;
}

/* Ensure images load smoothly */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
