@import url("generales.css");

main {
    width: 100%;
    min-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

h2 {
    width: auto;
    font-family: var(--letra-texto);
    color: var(--blanco);
    text-align: center;
    font-size: clamp(1.2rem, 2vw, 2rem);
    margin-bottom: 50px;
    padding: 0 20px;
    border-bottom: 4px solid var(--rosa);
    margin: 20px 20px 30px 20px;
}

.sobre-mi {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    gap: 80px; 
}

.etapa {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.texto-etapa {
    width: 50%;
    font-family: var(--letra-texto);
    color: var(--blanco);
    font-size: clamp(1.05rem, 1vw, 1.25rem);
    line-height: 1.6;
    text-align: left;
    
}

.img-etapa {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.img-etapa img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px var(--azul);
}

/* ------------------------------------- */
/* ---- MEDIA QUERIES ---- */

@media (max-width: 1000px) {
   .texto-etapa {
    width: 100%;
    }
    .etapa .img-etapa {
        order: 2; 
    }

    .etapa .texto-etapa {
        order: 1;
    }
}