/* Estilos para las cards de skills como la referencia visual */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fijo 4 columnas en desktop */
    gap: 1rem; /* menos espacio */
    max-width: 1400px; /* más angosto */
    margin: 0 auto;
    padding: 0.7rem 0.1rem 1.3rem 0.1rem;
}

.skill-card {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 15px;
    box-shadow: 0 2px 12px 0 rgba(60, 30, 90, 0.13);
    padding: 2rem 1.5rem 1.9rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    min-height: 150px; /* más bajo */
    border: 1px solid rgba(255,255,255,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    padding-bottom: 1.5rem;
    width: 100%;
    max-width: 250px; /* Limita el ancho */
}

.skill-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.7rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    object-fit: contain;
    box-shadow: 0 0 0 3px #a95fff44;
    display: block;
}

.skill-card h3 {
    color: #fff;
    font-size: 1.08rem; /* más pequeño */
    margin-bottom: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.skill-card p {
    color: #e0e0e0;
    font-size: 0.95rem; /* más pequeño */
    margin-bottom: auto;
    margin-top: 0;
    min-height: 32px;
}

.arrow {
    font-size: 1.3rem; /* más pequeño */
    color: #fff;
    position: absolute;
    bottom: 0.1rem;
    right: 1rem;
    transition: color 0.2s;
}

.skill-card:hover .arrow {
    color: #a95fff;
}

.skill-card:hover {
    box-shadow: 0 8px 32px 0 rgba(120, 80, 200, 0.22);
    transform: translateY(-4px) scale(1.025);
}

@media (max-width: 1100px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 98vw;
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skill-card {
        min-height: 120px;
        padding: 0.7rem 0.4rem 0.8rem 0.4rem;
        max-width: 98vw;
    }
}

/* Section toggle styles */
.section-toggle-container {
    display: flex;
    justify-content: center;
    margin: 14px 0 20px 0;
    gap: 10px;
}

.section-toggle-btn {
    padding: 10px 32px;
    background: transparent;
    color: #fff;
    font-family: 'NexaHeavy', Arial, Helvetica, sans-serif;
    font-size: 1.15rem;
    border: 2px solid #b967e3;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    font-weight: 600;
    box-shadow: none;
    outline: none;
}

.section-toggle-btn:hover {
    background: #b967e3;
    color: #fff;
    border-color: #fff;
}

.section-toggle-btn.active {
    background: #b967e3;
    color: #fff;
    border-color: #fff;
}
