/* GENERALIDADES */

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Albert Sans', sans-serif;
    letter-spacing: 0.8px;
    text-decoration: none;
}

:root {
    --white: #e6e6e6;
    --gray: #9e9e9e;
    --title: #177aa8;
    --title_second: rgba(23, 122, 168, 0.5);
    --layer0: 0;
    --layer1: 1;
    --layer2: 2;
    --layer3: 3;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #0b0d0f;
    color: var(--white);
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Fondo con degradado y cuadrícula solo al inicio */
.page-bg {
    position: absolute;
    inset: 0;
    z-index: var(--layer0);
    background: linear-gradient(180deg, #177aa8 0%, #177aa8 45%, #0b0d0f 100%);
    height: 100%;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    display: flex;
    justify-content: center;
}

/* Capa de puntos + líneas */
.page-bg::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 0, 0, 0.5) 1.5px, transparent 1.5px);

    background-size: 22px 22px;
    /* tamaño de cada celda */
    opacity: 0.8;
    pointer-events: none;
    mix-blend-mode: normal;
}

.contend-container {
    position: relative;
    width: 1000px;
    height: auto;
    min-height: 100vh;
    padding: 100px;
    padding-top: 10px;
}

.button__job{
    border: 1px solid var(--white);
    padding: 8px;
    color: var(--white);
    border-radius: 10px;
    background-color: rgba(11, 13, 15, 0.4);
}

@media (max-width: 900px) {

    .contend-container {
        padding-top: 5px;
        padding: 20px;
    }

}

/*============= Bloque intro ================*/
.intro {
    width: 100%;
    height: auto;
    margin-top: 100px;
}

.intro__title,
.intro__subtitle {
    text-align: center;
    margin-top: 5px;
    color: var(--white);
}

.intro__title {
    font-weight: bold;
    font-size: clamp(1.8rem, 4vw + 1rem, 2.6rem);
}

.intro__subtitle {
    font-size: clamp(0.8rem, 1vw + 0.9rem, 1.3rem);
}

.intro__photo {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 500px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.intro__img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
}

.intro__description {
    font-weight: 100;
    font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1.1rem);
}

.intro__description p {
    font-weight: 100;
    margin-top: 15px;
    max-width: 150ch;
    line-height: 1.5;
}

/*============= Bloque contenido ================*/

.sub-title {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sub-title__icon {
    max-width: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--white);
}

.sub-title__text {
    color: var(--white);
    font-size: clamp(1.3rem, 3vw + 1rem, 2.2rem);
    margin-left: 10px;
    font-weight: bold;
}

.section-contend {
    width: 100%;
    height: auto;
    min-height: 50px;
    display: flex;
}

.section-contend--skills {
    flex-direction: column;

}

.section-contend__reference {
    width: 40%;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: start;
}

/*----- sub bloque reference -----*/

.reference__border-image {
    width: 250px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 3px solid var(--title);
    border-radius: 10px;
}

.reference__image {
    width: 90%;
    height: 90%;
    border-radius: 10px;
    object-fit: cover;
}

.reference__line {
    width: 1px;
    height: 100%;
    position: absolute;
    margin-left: 15px;
    background-color: var(--gray);
    z-index: 1;
}

.reference__line--projects {
    height: 650px;
    display: none;
}

.reference__line--skills {
    height: 320px;
    display: none;
}

@media(min-width: 1200px) {

    .reference__line--projects,
    .reference__line--skills {
        display: flex;
    }
}

.reference__dot {
    position: absolute;
    z-index: 2;
    margin-right: 15px;
    color: var(--title);
}

.reference__job-name {
    color: var(--title);
    font-size: clamp(1.5rem, 1.5vw + 1rem, 1.5rem);
}

.reference__company {
    color: var(--white);
    font-size: clamp(1.1rem, 1.1vw + 1rem, 1.1rem);
}

.reference__dates {
    color: var(--gray);
    font-size: clamp(1rem, 1vw + 1rem, 1rem);
}

.reference__text {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: calc(100vh - 80vh);
    font-size: clamp(2rem, 4vw, 4.5rem);
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    text-align: center;
}

.section-contend__description {
    display: flex;
    flex-direction: column;
    width: 60%;
    height: auto;
    padding: 20px;
}

/*----- sub bloque description -----*/

.description__text {
    color: var(--gray);
    font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1.1rem);
}

.section-contend__references {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 15px;
}

.section-contend__video {
    width: 90%;
    height: 650px;
    margin: 10px auto;
}

@media(max-width: 790px) {
    .section-contend {
        flex-direction: column;
    }

    .section-contend__reference,
    .section-contend__description {
        width: 100%;
    }

    .section-contend__description {
        width: auto;
        margin-left: 15px;
        border-left: 1px solid var(--gray);
    }

    .button--curriculum {
        margin-left: 10px;
    }

    .section-contend__video {
        height: 400px;
    }

}

.experience,
.education,
.skills,
.projects, 
.certifications {
    margin-top: 60px;
}

/*----- BLOQUE SKILLS -----*/
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-template-rows: masonry;
    gap: 10px;
    width: 100%;
    align-items: start;
    margin-top: 15px;
}

.skill {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10%;
    border: 1px solid #0b0d0f;
    color: var(--white);
    padding: 8px;
    border-radius: 10px;
    height: 100px;
    font-size: clamp(0.7rem, 0.5vw + 0.7rem, 0.8rem);
    text-align: center;
    transition: all 0.2s ease;
    cursor: default;
}

.skill__image {
    width: 50%;
    object-fit: contain;
    color: var(--white);
}

.skill:hover {
    border: 1px solid var(--gray);
    transform: scale(1.05);
}

/*----- BLOQUE PROYECTOS -----*/

.projects {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 25px;
}

.section-contend__project {
    display: flex;
    width: 100%;
    height: auto;
    background-color: var(--title_second);
    padding: 7px;
    border-radius: 10px;
    border: 1px solid var(--title);
}

.section-contend__project--height {
    flex-direction: column;
}

.project__section-info {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100%;
    padding: 25px;
}

.project__section-info--heigth {
    width: 100%;
    height: 50%;
}

.project__section-info--certifications{
    padding: 10px;
}

.project__name {
    font-size: clamp(1.5rem, 1.5vw + 1rem, 1.5rem);
    font-weight: bold;
    color: var(--white);
}

.project__name--certifications{
    color: var(--white);
    font-size: clamp(0.9rem, 0.7vw + 0.8rem, 1.2rem);
}

.project__category {
    color: var(--title);
    font-size: clamp(0.7rem, 0.5vw + 0.7rem, 0.8rem);
}

.project__section-image {
    width: 50%;
    height: 250px;
    transition: transform 0.3s ease-in-out;
}

.project__section-image:hover {
  transform: scale(1.015); /* Zoom apenas perceptible */
}

.project__section-image--height{
    width: 100%;
    height: 50%;
    height: 250px;
}

.project__section-image--certifications{
    height: 150px;
}

.project__image-portfolio {
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

.project__image-portfolio {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project__description {
    color: var(--white);
    font-size: clamp(0.7rem, 0.5vw + 0.7rem, 0.8rem);
    margin-top: 15px;
}

.project__buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    width: 100%;
    height: 40px;
    padding-top: 20px;
}

.project__projects-height {
    display: flex;
    gap: 15px;
}

@media(max-width: 900px) {
    .section-contend__project {
        flex-direction: column;
    }

    .project__section-info,
    .project__section-image {
        width: 100%;
    }

    .project__section-image {
        order: -1;
    }
}

@media(max-width: 600px) {
    .project__projects-height {
        flex-direction: column;
    }
}

.certifications{
    display: flex;
    flex-direction: column;
    gap: 25px;
}