/** Color naranja ----> #f86449 */

#habilidades {
    box-sizing: border-box;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
}

#habilidades h2 {
    padding: 32px 0 8px;
    margin: 0;
    text-align: center;
    color: #f86449;
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

#habilidades > div:nth-child(2) {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
}

#habilidades > div:nth-child(3) {
    grid-row: 3 / 4;
    grid-column: 1 / 2;
}

#habilidades > div:nth-child(4) {
    grid-row: 4 / 5;
    grid-column: 1 / 2;
}

#habilidades > div:nth-child(5) {
    grid-row: 5 / 6;
    grid-column: 1 / 2;
}

.frontend,
.backend,
.herramientas,
.aprendiendo {
    /* background-color: #fff; */
    border-radius: 16px;
    padding: 32px 16px;
}

#habilidades h3 {
    margin: 0 0 32px;
    padding: 0;
    text-align: center;
    color: #f86449;
    /* text-shadow: 0 0 12px #f86449; */
}

#habilidades ul {
    list-style: none;
    padding: 0;
    /* background-color: lightpink; */
    display: grid;
    gap: 24px 16px;
    grid-template-columns: 1fr 1fr 1fr;
}

#habilidades li {
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

#habilidades img {
    width: 100px;
    height: 100px;
}

@media (width <= 576px) {
    .frontend,
    .backend,
    .herramientas,
    .aprendiendo {
        padding: 16px 0;
    }

    #habilidades ul {
        gap: 24px 0;
        font-size: 4vw;
    }

    #habilidades img {
        width: 16vw;
        height: 16vw;
    }
}

@media (width >= 992px) {
    #habilidades {
        grid-template-columns: 1fr 1fr;
    }

    #habilidades h2 {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    #habilidades > div:nth-child(2) {
        grid-row: 2 / 4;
        grid-column: 1 / 2;
    }

    #habilidades > div:nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }

    #habilidades > div:nth-child(4) {
        grid-row: 4 / 5;
        grid-column: 1 / 2;
    }

    #habilidades > div:nth-child(5) {
        grid-row: 3 / 6;
        grid-column: 2 / 3;
    }
}

/** ---------- ANIMACIÓN ---------- */

@keyframes rotar{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(-360deg);
    }
}

.animar-borde {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #fff;
    border: 4px solid #ccc;
    z-index: -1;
}

/* .animar-borde::before {
    content: "";
    position: absolute;
    top: -150%;
    left: -50%;
    height: 400%;
    width: 200%;
    z-index: -1;
    background-image: conic-gradient(#ff2600 20deg, transparent 120deg);
    animation: rotar 2s linear infinite;
} */

.animar-borde:nth-child(2)::before { animation-duration: 3.6s; }
.animar-borde:nth-child(3)::before { animation-duration: 2.4s; }
.animar-borde:nth-child(4)::before { animation-duration: 3.0s; }
.animar-borde:nth-child(5)::before { animation-duration: 4.0s; }

/* .animar-borde::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(100% - 8px);
    z-index: -1;
    background-color: #fff;
    border-radius: 16px;
} */