.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero span {
    color: var(--accent);
}

.hero-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
}

.btn {
    width: 180px;          
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;         
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.25, 1.5, 0.5, 1),
                background-color 0.2s ease,
                color 0.2s ease;
}

.btn.primary {
    border: 1px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
}

.btn.primary:hover {
    background-color: var(--accent);
    color: #020617;
    transform: translateY(-2px); 
}

.btn.secondary {
    border: 1px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
}

.btn.secondary:hover {
    background-color: var(--accent);
    color: #020617;
    transform: translateY(-2px);
}

.tech-stack {
    padding-top: -12px;   /* 👈 más cerca del hero */
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.tech-stack h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.stack-item img {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

.stack-item:hover {
    transform: translateY(-2px);
    color: var(--text-main);
}

@media (max-width: 768px) {

    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    /* Tech stack */
    .stack-grid {
        gap: 24px;
    }

    .stack-item img {
        width: 40px;
        height: 40px;
    }
}
