* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    display: block;
}

p a {
    display: inline;
}

img,
picture,
video,
iframe {
    display: block;
    width: 100%;
    /* height: initial; */
}

form,
input,
label,
select,
option,
textarea,
button {
    font-size: inherit;
    font-family: inherit;
    display: block;
    background-color: transparent;
}

:root {
    font-size: 100%;
    --color-enlaces: #ff8d36;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", serif;

}

::selection {
    background-color: #2483475c;
    color: #111111;
}



/**************** FIN RESET *****************/



/**************** INICIO HEADER *****************/

.header {
    width: 100%;
    /* min-height: 2rem; */
    /* background-color: rgb(70, 238, 70); */

    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;

    padding: .5rem 2rem;
    position: fixed;
    top: 0;
    z-index: 2;
}

.header__h1 {
    font-size: 2em;
    font-weight: 500;
    transition: all .4s ease;
}



/* Animación del degradado */
@keyframes gradientShift {
    0% {
        background-position: 50% 0%;
    }

    100% {
        background-position: 50% 100%;
    }
}

/* Clase con animación de degradado en el texto */
.gradient-animated-text {
    background: linear-gradient(180deg, #ff8d36, #feb176, #ff8d36, rgb(242, 242, 255));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s linear infinite;
    transition: all 0.3s ease;
}



.header__h1:hover {
    color: #ff8d36;
    transform: scale(1.03);
}

.header__btn {
    /* background-color: aqua; */
    display: none;
    padding-left: 1rem;
    font-size: 2rem;

    cursor: pointer;
}

.header__nav {
    position: relative;
    /* margin: 0 1rem; */
}

.nav__ul {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.nav__li a {
    position: relative;
    font-size: 1em;
}

.nav__li {
    transition: all .4s ease;
}

.nav__li:hover {
    color: #ff8d36;
    transform: scale(1.03);
}

.arrow {
    width: 2rem;
    position: fixed;
    right: 1rem;
    bottom: 3.3rem;
    z-index: 2;
    cursor: pointer;
}


/**************** FIN HEADER *****************/

/**************** INICIO MAIN *****************/

.main {
    margin-top: 3.5rem;
}


.wrapper__principal {
    width: 100%;
    /* min-height: 30rem; */
    /* background-color: rgb(255, 255, 151); */
    margin-bottom: 4rem;
    opacity: 0;
    animation: aparecer 1s ease-out 0.3s forwards;
}

.principal__grid {
    width: 98%;
    min-width: 20rem;
    /* background-color: aqua; */
    margin: 0 auto;
    padding-top: 3rem;
    gap: .7rem;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

}

.principal__img {
    /* background-color: white; */
    margin-bottom: 2rem;
}

.principal__img picture {
    width: 100%;
    /* min-height: 15rem; */
    /* background-color: rebeccapurple; */
}

.principal__h2 {
    /* background-color: lightsalmon; */
    margin-top: 1.4rem;
    font-size: 1.2em;
    font-weight: 400;
}

.principal__h4 {
    /* background-color: lightsalmon; */
    margin-top: 1.3rem;
    font-size: 1.1em;
    font-weight: 600;
}

.principal__p {
    /* background-color: lightslategray; */
    margin-top: 1.5rem;
    font-weight: 300;
}

/***************** INICIO CARRUSEL *****************/

.carrusel {
    width: 100%;
    /* background-color: lightgrey; */
    /* margin: 2rem auto; */
    position: relative;

    overflow: hidden;
    border-radius: .7rem;
}

.carrusel__img {
    width: 300%;
    /* 300% porque tiene 3 imágenes */
    /* background-color: orange; */

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 1rem; */

    transition: all 0.5s ease;
    transform: translateX(0);
}

.carrusel__imgs {
    min-height: 200px;
    /* background-color: aqua; */
}

/* .carrusel__arrow{
    width: 3rem;
    height: 3rem;
    background-color: rgb(186, 185, 185);

    position: absolute;
    top: calc(50% - 1.5rem);
} */
.siguiente {
    right: 0;
}

.anterior {
    left: 0;
}

.carrusel__ul {
    width: 100%;
    position: absolute;
    bottom: .6rem;
    /* background-color: brown; */

    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.wrapper__logproyecto__h3 {
    width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;

    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.wrapper__logproyecto__h3 img {
    width: 18vh;
}

.logo__konngol img {
    width: 25vh;
}

.logoproyecto__h3 {
    color: white;
    font-size: 3.5vw;
    font-weight: 600;
    cursor: pointer;
    transition: all .4s ease;
}

.logoproyecto__h3:hover {
    transform: scale(1.05);
}

.h3__pedalucha {
    transition: all .4s ease;
}

.h3__pedalucha:hover {
    transform: scale(1.05);
    color: rgb(86, 88, 217);
    background-color: rgb(250, 226, 47);
}

.konngol__h3 {
    /* max-width: 70%; */
    /* background-color: red; */
    /* text-align: center; */
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;

}

.konngol__span {
    /* background-color: red; */
}

.rewbe__span {
    /* background-color: blue; */
    margin-top: -.5rem;
}

.carrusel__btn {
    width: 4vw;
    height: .3rem;
    background-color: rgb(125, 125, 125);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* display: none; */
}

.carrusel__btn span {
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: rgb(217, 217, 217);
    /* transition: width 3s linear; */
}
.carrusel__btn span.active {
    background-color: rgb(217, 217, 217);
  width: 100%;
}

.progress-bar {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0%;
    height: 5px;
    background: rgb(255, 241, 241);
    /* Cambio de color para destacar */
}

.sin__carrusel {
    width: 100%;
    /* min-height: 100%; */
    /* background-color: red; */
    cursor: pointer;

}

.opacidad__negro {
    width: 100%;
    min-height: 100%;
    background-color: black;
    z-index: 1;
    opacity: 30%;
    position: absolute;
    top: 0;
}


.carrusel:hover .opacidad__negro {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enlaces:hover {
    color: var(--color-enlaces);
}


/***************** FIN CARRUSEL *****************/


/* *************** MAIN PRINCIPAL MODO DESKTOP * ***************/


.wrapper__section__principal {
    width: 100%;
    padding: 2rem;
    margin-top: 4rem;
    /* position: relative; */
}

.wrap__projects {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .5rem;
    border-top: 1px dotted #000000;
    position: relative;
    font-weight: 300;
}

.wrap__projects:hover {
    background-color: rgb(233, 233, 233);
}

.principal__h2__proj {
    font-size: 1.3em;
}


.principal__text__proj {
    max-width: 20rem;
}

.imgs__projects {
    position: fixed;
    /* se saca del flujo y se pega a la pantalla */
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 20rem;
    /* tamaño relativo a la pantalla */
    opacity: 0;
    pointer-events: none;
    /* evita interferir con el hover */
    transition: opacity .3s ease, transform .4s ease;
    z-index: 2;
}

.imgs__projects.isVisible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


.wrap_name {
    width: 100%;
    min-height: 100vh;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    position: fixed;
    z-index: 3;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.6s ease;
}



.fade-text {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* *************** FIN MAIN PRINCIPAL MODO DESKTOP * ***************/


/***************** ANIMACIONES ****************/

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/***************** ANIMACIONES ****************/



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

@media (max-width: 1000px) {

    .wrapper__section__principal {
        display: none;
    }

    .principal__grid {
        width: 96%;
        grid-template-columns: repeat(1, 1fr);
        gap: 6rem;
    }

    .logoproyecto__h3 {
        font-size: 12vw;
    }

    .carrusel__btn {
        width: 15vw;
    }

    .header__btn {
        display: block;
    }

    .header__nav {
        width: 100%;
        /* display: none; */

        height: 0;
        overflow: hidden;
        transition: height 0.4s ease;
    }

    .header__nav.isActive {
        /* display: block; */
        /* height: auto; */
        overflow: hidden;

    }

    .nav__ul {
        width: 100%;
        min-height: 100vh;
        background-color: rgb(255, 255, 255);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: absolute;
        font-size: 1.5em;


        padding: 7rem 0 0 4rem;
        /* margin-top: 1rem; */
        /* backdrop-filter: blur(.58rem); */
    }

    .nav__li:first-child {
        margin-bottom: 1rem;
    }

    .header {
        padding: 0;
        background-color: white;
        z-index: 3;
    }

    .header__h1,
    .header__btn {
        padding: .5rem 1rem;
        color: black;


    }

    .principal__img {
        margin-bottom: 2rem;
    }

    .wrapper__principal {
        display: none;
    }

    .wrapper__principal__mobile {
        margin: 6rem 0;
    }

    .tab {
        margin: 0 .7rem 0 .6rem;
        font-size: 1.2em;
        font-weight: 300;
        background-color: #ffffff;
        padding: 1rem 0;
        cursor: pointer;
        border-top: 1px dotted #000000;
        /* user-select: none; */
        touch-action: manipulation;
    }

    .content {
        /* display: none; */
        padding: 0 1rem 0rem 1rem;
        /* border: 1px solid #ccc; */
        border-top: none;


        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: height .3s ease, opacity 0.3s ease;

    }

    .content.visible {
        opacity: 1;
        padding-bottom: 2rem;
    }


    .principal__p {
        margin-top: 1rem;
    }

    .nav__li a::before {
        content: "⌵";
        display: inline-block;
        margin-right: .7rem;
        transform: rotate(-90deg);
        vertical-align: middle;
        font-size: 1em;
    }

    .wrapper__logproyecto__h3 img {
        /* width: 8rem; */
    }


.wrap_name {
    align-items: flex-start;
  padding-top: 20rem;
}
}

@media (min-width: 1001px) {
    .wrapper__principal__mobile {
        display: none;
    }

    .arrow__mobile {
        display: none;
    }
}