@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

:root {
    --c-bg: hsl(0, 0%, 90%);
    --c-text: hsl(0, 0%, 10%);
    --pad: max(20px, 4vmin);
    --fs-text: 12px;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Tajawal", serif;
    cursor: url('./img/cursor.svg'), auto;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    /* Para navegadores WebKit (Chrome, Safari) */
    user-drag: none;
    /* Para otros navegadores */
}

a {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

#Page {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--c-bg);
    color: #fff;
    white-space: nowrap;
    transition-property: background-color;
    transition-duration: .9s;
    transition-timing-function: cubic-bezier(0.1, 0.4, 0.2, 1);
    background-color: black;
}

.canvas {
    width: 100%;
    height: 100vh;
    margin: auto;
}

#Background {
    position: fixed;
    z-index: 1;
    left: var(--pad);
    right: var(--pad);
    top: var(--pad);
    bottom: var(--pad);
    pointer-events: none;
    overflow: hidden;
}

.mask {
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.mask_top,
.mask_bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: max(20px, 4vmin);
    background-color: black;
    transition-property: background-color;
    transition-duration: .9s;
    transition-timing-function: cubic-bezier(0.1, 0.4, 0.2, 1);
    opacity: .8;
    z-index: 199;
}

.mask_top {
    top: 0;
}

.mask_bottom {
    bottom: 0;
}

.mask_right {
    right: 0;
    position: absolute;
    height: 100vh;
    z-index: 199;
    background: black;
    width: max(20px, 4vmin);
    opacity: 0.8;
}

.mask_left {
    left: 0;
    position: absolute;
    height: 100vh;
    z-index: 199;
    background: black;
    width: max(20px, 4vmin);
    opacity: 0.8;
}

.frame {
    position: fixed;
    z-index: 10;
    left: var(--pad);
    right: var(--pad);
    top: var(--pad);
    bottom: var(--pad);
    mix-blend-mode: difference;
    pointer-events: none;
}

.frame_line {
    position: absolute;
    background-color: #fff;
    opacity: .5;
}

.frame_line-left {
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
}

.frame_line-right {
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
}

.frame_line-top {
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
}

.frame_line-bottom {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
}

.intro {
    position: fixed;
    z-index: 10;
    right: calc(var(--pad)* 2);
    top: calc(var(--pad)* 2);
    mix-blend-mode: difference;
    text-align: right;
}

.intro_title {
    font-size: 60px;
    font-weight: 100;
}

.intro_copy {
    font-size: 15px;
    font-weight: 100;
    margin-top: -10px;
}

ol,
ul {
    list-style: none;
}

.intro_nav {
    font-weight: 100;
    font-size: 20px;
    margin-top: 20px;
}

.content {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*overflow: hidden;*/
    mix-blend-mode: difference;
    display: flex;
    /* Opcional: Para distribuir hijos adecuadamente */
    flex-direction: column;
}

.content_inner {
    position: relative;
    min-height: 100%;
    overflow-y: auto;
    /* Habilitar desplazamiento vertical */
    overflow-y: auto;
    /* Habilitar desplazamiento vertical */
    overflow: hidden;

}

.home {
    position: absolute;
    left: calc(var(--pad)* 2);
    bottom: calc(var(--pad)* 2);
    white-space: nowrap;
}

.about {
    line-height: 1.5;
    width: 300px;
    font-weight: 100;
    bottom: calc(var(--pad)* 2);
    position: relative;
}

.about span {
    display: block;
}

.project {
    padding: calc(var(--pad)* 2 + 96px) calc(var(--pad)* 0);
    text-align: left;
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 70vh;
}

#proyectos_canvas {
    position: absolute;
    top: 0;
    z-index: 1;
    height: 100vh;
    width: 100%;
}

.project_list {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    column-gap: 100px;
    overflow-x: scroll;
    white-space: nowrap;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 70vh;
    padding: 0 60px;
}

.project_list::-webkit-scrollbar {
    display: none;
}

.project_list.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 20px;
    margin-left: 20px;
    padding-left: 50px;
    padding-right: 80px;
}

.scroll-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 550px;
    height: 490px;
    margin-right: 20px;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
}

.project_item {
    width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    column-gap: 15px;
}

.page_proyectos {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    border: 1px solid red;
}

.text-btn {
    transition-property: opacity;
    transition-duration: .4s;
    transition-timing-function: cubic-bezier(0.1, 0.4, 0.2, 1);
}

.page {
    opacity: 0;
    visibility: hidden;
    /* Asegura que no sea interactuable mientras está oculto */
    transition: opacity .5s ease-in-out, visibility 1s ease-in-out;
    /* Suaviza ambos cambios */
    position: absolute;
    /* Opcional, para evitar problemas de diseño */
    top: 0;
    left: 0;
    width: 100%;
    /* Asegura que ocupe todo el contenedor */
}

.page.active {
    opacity: 1;
    visibility: visible;
    /* Hace que el elemento sea interactuable */
    position: relative;
    /* Ajusta el flujo de diseño */
}

.project_title {
    font-weight: 200;
    font-size: 8vw;
    text-align: right;
}

.project_image {
    width: 100%;
    height: 390px;
    background-color: blue;
    background-size: cover;
}

.bk_1 {
    background-image: url(./img/bk_resumen.jpg);
}

.bk_2 {
    background-image: url(./img/bk_caprile.jpg);
}

.bk_3 {
    background-image: url(./img/bk_plantly.jpg);
}

.bk_4 {
    background-image: url(./img/black_friday.jpg);
}

.bk_5 {
    background-image: url(./img/ruleta.jpg);
}

.bk_6 {
    background-image: url(./img/corporativas.jpg);
}

.bk_7 {
    background-image: url(./img/flash.jpg);
}

.bk_8 {
    background-image: url(./img/cyber.gif);
}

.proyecto_1 {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.proyecto_1 iframe {
    width: 500px;
    height: 90vh;
    border: solid 9px white;
    border-radius: 30px;
}

/* Contenedor principal */
.marketing_container {
    height: 100vh;
    /* Ocupa toda la altura de la pantalla */
    width: 100vw;
    /* Ocupa todo el ancho de la pantalla */
    overflow-y: scroll;
    /* Permite el desplazamiento vertical */
    scroll-snap-type: y mandatory;
    /* Activa el ajuste del scroll */
    scroll-behavior: smooth;
    /* Suaviza el desplazamiento */
    position: relative;
    z-index: 5;
}

/* Cada sección dentro del contenedor */
.marketing_section {
    height: 100vh;
    /* Cada sección ocupa toda la altura de la pantalla */
    width: 100vw;
    /* Cada sección ocupa todo el ancho de la pantalla */
    scroll-snap-align: start;
    /* Alinea el inicio de cada sección con el scroll */
    display: flex;
    justify-content: center;
    align-items: center;
}

#canvas_marketing {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

#marketing_canvas {
    position: absolute;
    top: 0;
    z-index: 1;
    height: 100vh;
    width: 100%;
}

.tap {
    position: absolute;
    bottom: 30px;
    z-index: 222250;
    text-align: center;
    height: 120px;
    right: calc(var(--pad)* 2);
}

.tap img {
    width: 70px;
}

#background-svg {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100vw;
    /* Ancho total de la ventana */
    height: 10px;
    /* Ajusta según el diseño */
    z-index: -1;
    /* Envía el SVG al fondo */
}

.carrera iframe{
    width: 100%;
    height: 100vh;
    position:relative;
    z-index: 100;
    overflow: auto; /* Permite el scroll */

}
.wrapper .center-line {
    position: absolute;
    height: 100%;
    width: 4px;
    background: #fff;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
}

.center-line .scroll-icon {
    bottom: 0px;
    left: 50%;
    font-size: 25px;
    transform: translateX(-50%);
}

.row section .icon,
.center-line .scroll-icon {
    position: absolute;
    background: #f2f2f2;
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ff7979;
    font-size: 17px;
    box-shadow: 0 0 0 4px #fff, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}

.fa,
.far,
.fas {
    font-family: "Font Awesome 5 Free";
}


.fa-caret-up:before {
    content: "\f0d8";
}
.career{
    max-width: 1080px;
    margin: 50px auto;
    padding: 150px 20px 0;;
    position: relative;
}

.center-line{
    position: absolute;
    height: 100%;
    width: 4px;
    background: #fff;
    left: 50%;
    top: 146px;
    transform: translateX(-50%);
}

.etapa{
    display:flex;
    margin-top: 100px;
}

#first{
    margin-top: 0;
}
.etapa-1{
    justify-content: flex-start;
}

.etapa-2{
    justify-content: flex-end;
}

.section_career{
    background: #fff;
    border-radius: 5px;
    width: calc(50% - 80px);
    padding: 20px;
    position: relative;
    color: black;
}

.section_career::before{
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    background: #fff;
    top: 28px;
    z-index: -1;
    transform: rotate(41deg);
}

.etapa-1 .section_career::before {
    right: -7px;
}

.etapa-2 .section_career::before {
    left: -7px;
}

.etapa-1 .section_career .icon {
    top: 15px;
    right: -60px;
}

.etapa-2 .section_career .icon {
    top: 15px;
    left: -60px;
}

.icon{
    position: absolute;
    background: #f2f2f2;
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ff7979;
    font-size: 17px;
    box-shadow: 0 0 0 4px #fff, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section_career p{
    white-space: break-spaces;
}
.career_description {
    font-size: 18px;
    margin-top: 10px;
}

.etapa-1 .section_career p{
    text-align: left;
}

.etapa-2 .section_career p{
    text-align: right;
}

.career_date{
    font-size: 22px;
}

.section_career span{
    font-style: italic;
    font-weight: 300;
    margin-left: 10px;
    font-size: 16px;
}

.section_career h3{
    font-weight: 700;
    margin-top: 10px;
    font-size: 22px;
}

.etapa-1 .section_career h3{
    text-align: left;
}

.etapa-2 .section_career h3{
    text-align: right;
}

.contact{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.contact a{
    font-size: 30px;
    border: solid 1px white;
    padding: 20px 55px 16px;
    background-color: none;
    transition: 150ms;
}

.contact a:hover{
    background-color: white;
    color: black;
}

/* Necesario para hacer scroll completo (si no hay contenido adicional) */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Elimina el scroll del body */
}

/* ------ QUERYS MOVIL -------*/
@media (max-width: 590px) {
    .intro_title {
        font-size: 30px;
    }

    .project_title {
        font-size: 6vw;
    }

    .project {
        padding: 0;
        height: 100vh;
        display: flex;
        align-items: flex-end;
        bottom: 100px;
    }

    .project_item {
        min-width: 80%;
    }

    .project_image {
        width: 100%;
        height: 280px;
        background-size: cover;
        background-position-x: center;
    }

    .project_list {
        gap: 40px;
        height: 60vh;
    }

    .scroll-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .scroll-item {
        height: 290px;
        width: 220px;
    }

    .about {
        bottom: calc(var(--pad)* 4);
    }

}

@media (min-width: 800px) {
    .project_title {
        font-size: 60px;
    }
}

@media (min-width: 1280px) {
    .project {
        padding: calc(var(--pad)* 2 + 115px) calc(var(--pad)* 0);
    }

}