.inicio_projects {
    width: 100dvw;
    min-height: 100dvh;
    display: flex;
    align-items: start;
    justify-content: space-around;
    flex-direction: column;
    background-color: var(--dark);
}

.inicio_projects h1 {
    width: 50%;
    font-size: 4rem;
    font-weight: 300;
    color: var(--white);
    background-image: linear-gradient(45deg, var(--white) 15%, var(--grey) 82%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 300;
    padding: 5%;
}

.info_inicio_projects {
    width: 100%;
    height: 50dvh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10dvh;
}

.info_inicio_projects .info_inicio_projects {
    width: 100dvw;
    height: 30dvh;
}

.info_inicio_projects .desc_inicio_projects {
    width: 49%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    gap: 10%;
    text-align: left;
}

.info_inicio_projects .desc_inicio_projects p {
    font-size: 1.2rem;
    width: 75%;
    color: var(--white);
    margin-top: 5dvh;
}

.info_inicio_projects .desc_inicio_projects .buttons_inicio_projects {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info_inicio_projects .desc_inicio_projects .btn {
    width: 30%;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* TABLET (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .inicio_projects {
        justify-content: flex-start;
        gap: 2rem;
        min-height: 100dvh;
        margin-top: 12vh; /* Más espacio en tablet */
        padding-top: 2rem;
    }

    .inicio_projects h1 {
        width: 90%;
        font-size: 2.5rem;
        padding: 0 5%;
        margin-bottom: 1rem;
        text-align: center; /* Centrado en tablet */
    }

    .info_inicio_projects {
        width: 100%;
        height: auto;
        flex-direction: column;
        margin-top: 0;
        gap: 2rem;
        align-items: center;
    }

    .info_inicio_projects .desc_inicio_projects {
        width: 85%;
        height: auto;
        gap: 1.5rem;
        padding: 0;
        text-align: center; /* Centrado en tablet */
        align-items: center;
    }

    .info_inicio_projects .desc_inicio_projects p {
        width: 100%;
        font-size: 1rem;
        margin-top: 0;
        line-height: 1.5;
        text-align: center; /* Centrado en tablet */
    }

    .info_inicio_projects .desc_inicio_projects .buttons_inicio_projects {
        width: 70%;
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
    }

    .info_inicio_projects .desc_inicio_projects .btn {
        width: 25%; /* Más pequeños en tablet */
        min-width: 110px;
        max-width: 140px;
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    /* Gráfico mantiene su posición y tamaño */
    .grafico {
        width: 85%;
        flex-shrink: 0;
    }
}

/* MÓVIL GRANDE (481px - 767px) */
@media screen and (max-width: 767px) {
    .inicio_projects {
        gap: 1.5rem;
        margin-top: 10vh;
        padding-top: 1.5rem;
    }

    .inicio_projects h1 {
        width: 95%;
        font-size: 2.6rem ! important;
        padding: 0 2.5%;
        line-height: 1.2;
        text-align: center; /* Centrado en móvil grande */
    }

    .info_inicio_projects {
        flex-direction: column;
        margin-top: 0;
        gap: 1.5rem;
    }

    .info_inicio_projects .desc_inicio_projects {
        width: 90%;
        gap: 1.2rem;
        padding: 0 5%;
        text-align: center; /* Centrado en móvil grande */
        align-items: center;
    }

    .info_inicio_projects .desc_inicio_projects p {
        width: 100%;
        font-size: 0.95rem;
        line-height: 1.4;
        text-align: center; /* Centrado en móvil grande */
    }

    .info_inicio_projects .desc_inicio_projects .buttons_inicio_projects {
        width: 80%;
        gap: 0.7rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .info_inicio_projects .desc_inicio_projects .btn {
        width: 28%;
        min-width: 85px;
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Gráfico completo pero más compacto */
    .grafico {
        width: 90%;
        margin: 0 5%;
    }
}

/* MÓVIL PEQUEÑO (hasta 480px) */
@media screen and (max-width: 480px) {
    .inicio_projects {
        min-height: auto;
        padding-bottom: 2rem;
        gap: 1rem;
        margin-top: 8vh;
        padding-top: 1rem;
    }

    .inicio_projects h1 {
        width: 95%;
        font-size: 2.2rem;
        padding: 0 2.5%;
        line-height: 1.1;
        margin-bottom: 0.5rem;
        text-align: center; /* Centrado en móvil pequeño */
    }

    .info_inicio_projects {
        margin-top: 0;
        gap: 1rem;
    }

    .info_inicio_projects .desc_inicio_projects {
        width: 95%;
        gap: 1rem;
        padding: 0 2.5%;
        text-align: center; /* Centrado en móvil pequeño */
        align-items: center;
    }

    .info_inicio_projects .desc_inicio_projects p {
        width: 100%;
        font-size: 0.9rem;
        line-height: 1.4;
        text-align: center; /* Centrado en móvil pequeño */
    }

    .info_inicio_projects .desc_inicio_projects .buttons_inicio_projects {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .info_inicio_projects .desc_inicio_projects .btn {
        width: 80%;
        max-width: 200px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    /* Gráfico completo en móvil */
    .grafico {
        width: 95%;
        margin: 0.5rem 2.5%;
    }
}

/* MÓVIL MUY PEQUEÑO (hasta 360px) */
@media screen and (max-width: 360px) {
    .inicio_projects {
        margin-top: 7vh;
    }

    .inicio_projects h1 {
        font-size: 1.9rem;
        width: 100%;
        padding: 0 2%;
    }

    .info_inicio_projects .desc_inicio_projects {
        width: 100%;
        padding: 0 2%;
    }

    .info_inicio_projects .desc_inicio_projects p {
        font-size: 0.85rem;
    }

    .info_inicio_projects .desc_inicio_projects .btn {
        width: 85%;
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }

    .grafico {
        width: 100%;
        margin: 0.3rem 0;
    }
}

