main {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 0px 80px 80px;
}

main section {
    max-width: 700px;
}

main section > p:first-child {
    color: #2a9d8f;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    margin: 15px 0;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
}

main section > p:last-child {
    max-width: 650px;
    color: #bdbdbd;
    font-size: 1.2rem;
    line-height: 1.7;
}

.home-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.button {
    display: inline-block;
    padding: 14px 24px;
    background: #2a9d8f;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s ease;
}

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

.button-secondary {
    background: transparent;
    border: 1px solid #555555;
}

/* =========================
   TECNOLOGÍAS
   ========================= */

#tecnologias {
    position: absolute;
    left: 80px;
    top: 1000px;
    width: calc(100% - 160px);
}

#tecnologias h2 {
    margin: 15px 0 30px;
    font-size: 30px;
    line-height: 1.1;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 50px;
}

.technology-card {
    min-height: 125px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.technology-card:hover {
    transform: translateY(-3px);
    border-color: #2a9d8f;
}

.technology-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.technology-card span {
    color: #222222;
    font-size: 0.9rem;
    font-weight: 600;
}


@media (max-width: 1024px) {

    #desarollador {
        margin-top: -22px;
    }

    #tecnologias {
        position: static;
        width: 50%;
        margin-top: 50px;
        padding-bottom: 20px;
    }

    #proyectos {
        margin-top: 0px;
    }

    .technologies-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 0
    }
}

@media (max-width: 900px) {

    #tecnologias {
        position: static;
        width: 100%;
        margin-top: 100px;
        padding-bottom: 80px;
    }

    .technologies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================
   CERTIFICACIONES
   ========================= */

#certificaciones {
    margin-top: -110px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: minmax(250px, 400px);
    gap: 20px;
}

.certification-card {
    padding: 30px;
}

.certification-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
    margin-bottom: 25px;
}

.certification-logo img {
    width: auto;
    height: auto;
    max-width: 130px;
    max-height: 80px;
    object-fit: contain;
}

/* =========================
   RESPONSIVE - CERTIFICACIONES
   ========================= */

@media (max-width: 1024px) {


    #proyectos {
        margin-top: 10px;
    }


    .certifications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .certification-card {
        padding: 25px;
    }

    .certification-logo {
        height: 70px;
        margin-bottom: 20px;
    }

    .certification-logo img {
        max-width: 115px;
        max-height: 70px;
    }

}

#proyectos {
    margin-top: 220px;
}

main {
    display: flex;
    align-items: center;
    min-height: auto;
    padding: 0 80px 80px;
}

@media (max-width: 1024px) {

    main {
        flex-direction: column;
        align-items: flex-start;
        padding: 120px 40px 80px;
    }

    #desarollador {
        margin-top: -22px;
    }

    #tecnologias {
        position: static;
        width: 100%;
        margin-top: 50px;
        padding-bottom: 20px;
    }

    .technologies-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 0;
    }

    #proyectos {
        margin-top: 20px;
    }
}

#desarollador {
    margin-top: -850px;
}

#certificaciones {
    margin-top: -680px;
}



#proyectos {
    margin-top: 180px;
}


/* =========================
   HOME RESPONSIVE - MÓVIL
   ========================= */

@media (max-width: 768px) {

    main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 65px;
        width: 100%;
        min-height: auto;
        padding: 110px 22px 50px;
    }

    main section {
        width: 100%;
        max-width: 700px;
        margin: 0;
    }

    /* PRESENTACIÓN */

    #desarollador {
        position: static;
        margin: 0;
    }

    #desarollador h1 {
        font-size: clamp(2.7rem, 11vw, 4rem);
        line-height: 1.05;
        overflow-wrap: break-word;
    }

    #desarollador h2 {
        max-width: 100%;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .home-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 25px;
    }

    .button {
        padding: 13px 19px;
    }

    /* CERTIFICACIONES */

    #certificaciones {
        position: static;
        margin: 0;
        width: 100%;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .certification-card {
        padding: 22px;
    }

    /* TECNOLOGÍAS */

    #tecnologias {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .technologies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 0;
    }

    .technology-card {
        min-width: 0;
        min-height: 115px;
        padding: 15px 10px;
    }

    .technology-card img {
        width: 60px;
        height: 60px;
    }

    /* PROYECTOS */

    #proyectos {
        position: static;
        width: 100%;
        margin: 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* MÓVILES ESTRECHOS */

@media (max-width: 380px) {

    main {
        padding-left: 18px;
        padding-right: 18px;
    }

    #desarollador h1 {
        font-size: 2.6rem;
    }

    .home-actions {
        gap: 10px;
    }

    .button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
