@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700;900&display=swap');

body { 
    font-family: 'Space Grotesk', sans-serif; 
    overflow-x: hidden;
    scroll-behavior: smooth;
    color: #1a1a1a;
}

/* Efecto Parallax en el fondo */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    will-change: transform;
}

/* Navbar links */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #059669;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Micro-interacciones */
.group:hover h3 {
    color: #065f46;
}

/* LinkedIn Gallery Styles */
.linkedin-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 550px;
    border: 1px solid #f0f0f0;
}

.linkedin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.1);
}

.linkedin-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

/* Esconde el skeleton cuando el iframe carga (manejado vía JS opcionalmente o simplemente queda debajo) */
.linkedin-card iframe {
    position: relative;
    z-index: 2;
    background: transparent;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Suavizado para móviles */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}