/* Heroarea */
.casha_heroarea {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 100%;
    height: 70vh;
    padding-block: 3rem;
    background-image: url(../assets/casha-bg-heroarea-lp.webp);
    background-size: cover;
    background-position: right bottom;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.casha_heroarea_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;

    h1,
    p  {
        text-align: start;
        margin: 0;
    }
}

.casha_title_span {
    color: var(--accent-dark-color);
}

.casha_heroarea_content_cta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.5rem;
    padding-block: 1.5rem;
    box-shadow: var(--inactive-color);
}


.casha_cta_link {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.casha_cta_link:hover {
    font-style: italic;
    cursor: pointer;
    text-decoration: underline 3px double  var(--accent-dark-color);
    text-underline-offset: 4px;
    text-decoration-skip-ink: auto;
}

/* --------- RESPONSIVE HERO ---------  */
@media  (max-width: 1024px) { 
    .casha_heroarea_content_cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-block: 1rem;
    }

    .casha_cta_link {
        padding-left: 0.5rem;
    }
}

@media  (max-width: 880px) { 
    .casha_heroarea {
        min-height: 60vh;
        background-image: url(../assets/casha-bg-heroarea-mb.webp);
        background-size: cover;
        background-position: bottom;
        background-repeat: no-repeat;
    }

    .casha_heroarea_content {
        align-content: center;
        gap: 2rem;

        h1,
        p  {
            text-align: center;
        }
    }
    
    .casha_heroarea_content_cta {
        align-items: center;
    }

    .casha_cta_link {
        padding-left: 0;
    }
}

@media (max-width: 375px) {
    .casha_heroarea_content {
        padding: 0;
    }

    .casha_heroarea_content_cta {
        a {
            font-size: var(--small-font-size);
            padding: 0.5rem 1.5rem;
        }
    }
}


/* About me */
.casha_aboutme {
    width: 100%;
    background-color: var(--primary-color);
    padding-block: 1rem;
}

.casha_aboutme_grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.casha_aboutme_illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45%;
    max-width: 460px;
    max-height: 500px;
    aspect-ratio: 4 / 5;
    overflow: hidden;

    img {
        object-fit: cover;
        object-position: center top;
        width: 100%;
        height: 60%;
        border-radius: 2rem;

    }
}

.casha_aboutme_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 55%; 
    color: var(--light-color);
    gap: 1.5rem;

    .casha_title {
       font-size: var(--h2-font-size);
        color: var(--light-color);
        text-align: start;
        margin: 0;
    }

    .casha_aboutme_content_text {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: start;

        p {
            margin: 0;
        }

        .casha_highlight {
            font-weight: 800;
            text-decoration: underline 3px  var(--accent-color);
            text-underline-offset: 4px;
            text-decoration-skip-ink: auto;
        }
    }

    .casha_aboutme_quote {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        margin: 0;
        gap: 0.5rem;

        p {
            font-size: var(--p-font-size);
            line-height: var(--small-line-height);
            font-weight: 400;
            margin: 0;
        }

        strong,
        a {
            color: var(--light-color);
        }

        .small {
            font-size: var(--small-font-size);
            font-style: italic;
            font-weight: 700;
            padding-top: 0.5rem;
        }
        
        .small:hover {
            color: var(--dark-color);
            cursor: pointer;
            text-decoration: underline 3px  var(--accent-color);
            text-underline-offset: 4px;
            text-decoration-skip-ink: auto;
        }
    }
}

/* --------- RESPONSIVE About me --------- */
@media (max-width: 1024px) { 
    .casha_aboutme {
        padding-block: 4rem;
    }

    .casha_aboutme_grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .col-2 {
        order: -1;
    }

    .casha_aboutme_illustration {
        width: 100%;
        max-width: 420px;
    }

    .casha_aboutme_content {
        width: 100%;
        align-items: center;
        text-align: center;

        .casha_title,
        .casha_aboutme_content_text,
        .casha_aboutme_quote {
            align-items: center;
            text-align: center;
        }
    }
}

/* SKILLS */
.casha_skills {
    width: 100%;
    background-color: var(--light-accent-color);
    padding-block: 4rem;
}

.casha_skills_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2.5rem;
    text-decoration: underline 3px double var(--accent-dark-color);
    text-underline-offset: 4px;
    text-decoration-skip-ink: auto;
}

.casha_skills_content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    gap: 1.5rem;
    padding-top: 2.5rem;
}

/* Tamaño específico de las tarjetas en Skills */
.casha_skillcard_size {
    width: 500px;
    height: 400px;
}

/* Ilustración interna (Frente) */
.casha_skillcard_illustration {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    max-width: 11rem;
    min-height: 0;
}

.casha_skillcard_illustration img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Lista de servicios (Reverso) */
.casha_skillcard_back_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    gap: 1.5rem;
    box-sizing: border-box;

    h3 {
        width: 100%;
        text-align: center; 
        margin: 0;
        padding-bottom: 1rem;
    }
}

.casha_skillcard_back_content ul {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
    gap: 0.6rem;
    text-align: left;
    margin-top: 1.5rem;
    margin-inline: auto;
    padding: 0;
}

.casha_skillcard_back_content li {
    font-size: var(--li-font-size);
    line-height: var(--li-line-height);
    color: var(--light-color);
    list-style-type: none;
}

.casha_skillcard_back_content li::before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: 700;
}

/* --------- RESPONSIVE Skills --------- */
@media (max-width: 1090px ) {
    .casha_skillcard_size {
        width: 350px;
        height: 400px;
    }

    .casha_skills_content {
        justify-content: center;
    }
}

@media (max-width: 990px) {
    .casha_skills {
        padding-block: 3rem;
    }

    .casha_skillcard_size {
        width: 340px;
        height: 360px;
    }

    .casha_skillcard_illustration {
        max-width: 9.5rem;
    }

    .casha_skillcard_back_content {
        padding: 2rem;
    }

    .casha_skillcard_back_content ul {
        margin-top: 1rem;
        gap: 0.45rem;
    }
}

@media (max-width: 480px) {
    .casha_skillcard_size {
        width: 100%;
        max-width: 320px;
        height: 340px;
    }

    .casha_skillcard_back_content {
        padding: 1rem;
    }
}

@media (max-width: 425px) {
    .casha_skillcard_back_content li {
        font-size: var(--small-font-size);
        line-height: var(--small-line-height);
    }

    .casha_skillcard_back_content {
        align-items: flex-start;
        padding: 1.5rem;
    }

    .casha_skillcard_back_content ul {
        width: 100%;
        margin-inline: 0;
        margin-top: 1rem;
        gap: 0.45rem;
    }
}

/* Contact */
.casha_contact {
    width: 100%;
    background-color: var( --dark-color);
    color: var(--light-color);
    padding-block: 4rem;
}

.casha_contact_grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.casha_contact_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 55%;   
    gap: 1.25rem;
}

.casha_contact_title {
    width: 100%;

    h2 {
        color: var(--light-color);
        text-align: start;
        margin: 0;
    }
}

.casha_contact_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;

    p {
        text-align: start;
        margin: 0;
    }
}

.casha_contact_cta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0.75rem;
    width: 100%;
    
    .casha_cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        width: fit-content;
        min-width: 240px;
    }
}

.casha_contact_rrss {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0.75rem;
    width: 100%;
    gap: 1.75rem;

    .casha_icon {
        width: 28px;
        height: 28px;
        stroke: var(--light-color);
        stroke-width: 1.8;
        transition: stroke 0.25s ease, transform 0.25s ease;
    }
    
    .casha_icon:hover {
        stroke: var(--secondary-color);
        transform: translateY(-2px);
    }
}

.casha_contact_illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45%;

    img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }        
}

/* --------- RESPONSIVE Contact ---------  */
@media (max-width: 1024px) { 
    .casha_contact {
        padding-block: 3rem;
    }

    .casha_contact_grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .casha_contact_content {
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .casha_contact_title h2 {
        text-align: center;
    }

    .casha_contact_text {
        justify-items: center;
        align-items: center;
        text-align: center;

        p {
            text-align: center;
        }
}

    .casha_contact_cta {
        justify-content: center;

        .casha_cta {
            width: 100%;
            max-width: 320px;
        }
    }

    .casha_contact_rrss {
        justify-content: center;
    }

    .casha_contact_illustration {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 320px) {
    .casha_contact_cta {
        a {
            font-size: var(--small-font-size);
        }
    }
}