body{
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--txt-color);
    position: relative;
    margin: 0 auto;
}

:root{
    --bg-color:#181824;
    --bg-color-contraste:#242333 ;
    --txt-color:#f8f9ff;
    --color-live: #fc0c0c;
    --color-decoration:#9000fe;
    --bg-color-grid:#1a192b;
    --color-border: #302f4183;
    --tittle-color:#f8f9ff;
    --background-color: black;
}

html{
    scroll-behavior: smooth;
}

p{
    font-family: 'Lato', sans-serif;
    font-weight:500;
    font-size: 1.2rem;
    margin: 0;
    color: var(--txt-color);
}

h1 {
    position: relative;
    font-size: clamp(1.5rem, 4vw + 1.5rem ,5rem);
    display: inline-block;
    margin: 50px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    user-select: none;
    color: var(--tittle-color);
}

h2{
    font-size: clamp(1.5rem, 3vw + 1.5rem ,3rem);
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--tittle-color);
}

h3{
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--tittle-color);
    margin: 0;
}

a{
    text-decoration: none;
    font-family: 'Lato', sans-serif;;
}



/* NAVEGADOR */

.navegador{
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    z-index: 10;
    margin: 0 auto;
    background-color: transparent;
    animation: enganchar_nav linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100px;
}

.wrapper_nav{
    display: grid;
    place-content: center;
    background-color: var(--bg-color);
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--txt-color);
    cursor: pointer;
    user-select: none;
}

.wrapper_nav > div {
    grid-area: 1/1/-1/-1;
}

.navegador_contenedor{
    display: flex;
    gap: 16px;
}

.navegador_main{
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.navegador_link{
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Lato', sans-serif;
    color: var(--txt-color);
    position: relative;
    border: 2px solid var(--color-border);
    background-color: var(--bg-color-contraste);
    padding: 6px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color .3s ease;
}

.navegador_link:hover::after {
    width: 100%;
    right: 0;
}

.navegador_link:hover{
    background-color: #323144;
}

.abrir__menu, .cerrar__menu{
    display: none;
}

/* INICIO */

.entrada{
    width: 100%;
    height: 100vh;
    position: absolute;
    bottom: 0;
    z-index: 300;
    animation: telon 2s linear both;
}

.cortina{
    width: 100%;
    height: 100%;
    background-color: var(--bg-color-contraste);
}

.entrada .ola1{
    bottom: -10%;
    transform: rotate(180deg);
    animation: oleaje 1s linear infinite;
}

#inicio{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 40px;
}

.inicio_contenedor{
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wrapper {
    display: grid;
    place-content: center;
    background-color: var(--bg-color);
    font-family: "Oswald", sans-serif;
    font-size: clamp(1.5rem, 8vw + 1.5rem ,8rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--txt-color);
    user-select: none;
}

.wrapper > div {
    grid-area: 1/1/-1/-1;
}

.top {
    clip-path: polygon(0% 0%, 100% 0%, 100% 48%, 0% 58%);
}

.bottom {
    clip-path: polygon(0% 60%, 100% 50%, 100% 100%, 0% 100%);
    color: transparent;
    background: linear-gradient(179deg, rgb(63, 59, 59) 53%, var(--txt-color) 65%);
    background-clip: text;
    -webkit-background-clip: text;
    transform: translateX(-0.02em);
}

.inicio_links{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: absolute;
    bottom: 30px;
    right: 90px;
    opacity: 1; 
    transform: translateX(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}


.inicio_links::after{
    content: "";
    width: 2px;
    opacity: .6;
    height: 100px;
    background-color: var(--txt-color);
}

.inicio_links.ocultar {
    opacity: 0;
    transform: translateX(100px); 
}

.inicio_links a{
    opacity: .6;
    transition: opacity .3s ease;
}

.inicio_links a:hover{
    opacity: 1;
}

.inicio_dager {
    position: relative;
    width: 300px;
    height: 300px;
    background-color: #1d1e1d;
    border-radius: 50% 50% 0% 100% / 50% 50% 51% 55%;
    border: 20px solid var(--txt-color);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 100.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.inicio_dager img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.inicio_dager::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 2px solid var(--color-decoration);
    opacity: .3;
    border-radius: inherit;
    top: -30px;
    left: -32px;
    z-index: 1;
}

.twitch_status{
    font-size: 1.2rem;
    color: var(--txt-color);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Lato', sans-serif;;
}

.escribiendo {
    font-size: clamp(.6rem, 1.5vw + .6rem ,1.5rem);
    font-weight: bold;
    color: var(--txt-color); 
    display: inline-block;
    position: relative;
    height: 30px;
    padding-bottom: 10px;
}

.escribiendo::after {
    content: "|";
    font-weight: normal;
    position: absolute;
    right: -10px;
    animation: blink 0.7s infinite;
}

/* CARROUSEL */

#carrusel_videos {
    margin: 0 auto;
    max-width: 1000px;
    width: 100%;
    position: relative;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 80px 6px 80px 6px;
}

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

.carrusel_header a{
    color: var(--color-decoration);
    opacity: .8;
    display: flex;
    align-items: center;
}

#carrusel_videos .carrusel{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: 0;
    cursor: grab;
}

#carrusel_videos .carrusel::-webkit-scrollbar{
    display: none;
}

#carrusel_videos .carrusel.dragging{
    scroll-behavior: auto;
}

#carrusel_videos .carrusel.dragging .video_card{
    cursor: grabbing;
    user-select: none;
}

.fa_solid{
    display: block;
    height: 50px;
    width: 50px;
    background-color: var(--color-border);
    text-align: center;
    border-radius: 100vmax;
    cursor: pointer;
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgb(0, 0, 0, 0.23);
    z-index: 3;
}

.fa_solid:first-child{
    left: 40%;
}

.fa_solid:last-child{
    right: 40%;
}

.video_card{
    display: flex;
    flex-direction: column;
    height: 342px;
    list-style: none;
    background-color: var(--bg-color-contraste);
    border-radius: 8px; 
    padding: 16px;
    border: 2px solid var(--color-border);
}

.video_thumbnail{
    width: 100%;
    object-fit: cover;
}

.video_thumbnail img{
    width: 100%;
    border-radius: 8px;
}

.video_info{
    width: 100%;
    height: 100%;
    display: flex;
    padding: 8px 16px;
    justify-content: space-between;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 20px;
}

.video_info h3{
    height: auto;
    display: -webkit-box;
    max-width: 100%;
    line-height: 1;

    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video_footer{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video_footer a{
    color: var(--txt-color);
    border: 1px solid #f8f9ff1f;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    gap: 6px;
    justify-self: center;
    align-self: center;
    background-color:transparent;
    transition: background-color .4s ease;
}

.video_footer a:hover{
    background-color: var(--color-border);
}

.video_footer span{
    display: flex;
    gap: 6px;
    font-family: 'Lato', sans-serif;
}


/* SOBRE MÍ */

#sobre_mi {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    padding: 80px 40px; 
}

.sobre_mi_header {
    max-width: 1200px;
    margin-bottom: 40px;
    text-align: center;
}

.sobre_mi_header h2 {
    text-align: center;
}

.sobre_mi_grid {
    display: grid;
    max-width: 1200px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 300px)); 
    grid-auto-rows:  250px;
    gap: 20px;
    font-size: 1rem;
    justify-content: center;
}

.sobre_mi_grid_item {
    background-color: #1c1c2a;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    position: relative;
    cursor: pointer;
    text-align: center;
    scale: 0;
    transition: scale .4s ease, background-color .4s ease;
}

.sobre_mi_grid_item.in-view{
    scale: 1;
}

.sobre_mi_grid_item:hover{
    background-color: #252433;
}

.sobre_mi_grid_item header {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
    gap: 10px;
}

.sobre_mi_grid_item img {
    width: 40px;
}

.sobre_mi_grid_item:first-child {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: none;
    padding: 5px;
    margin: 0;
}


#pepinos{
    z-index: 2;
    position: relative;
}

.pepino {
    width: 150px;
    height: 300px;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: 1;
    opacity: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.pepino img{
    width: 150px;
    height: 300px;
}

.gota {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    visibility: hidden;
    opacity: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 4;
    transition: opacity .4s ease;
}

.gota img{
    width: 100%;
    height: 100%;
}

#gota1 {
    transform: translate(-80%, -50%);
}

#gota2 {
    transform: translate(-20%, -60%);
}

#gota3 {
    transform: translate(-50%, -20%);
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1c1c2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    max-width: 400px;
    text-align: center;
    color: #fff;
}

.popup p {
    margin: 20px 0;
    font-size: 1.2rem;
}

.popup button {
    padding: 10px 20px;
    border: none;
    background-color: #ff5e57;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.popup button:hover {
    background-color: #ff3d33;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.contenedor_jumpscare {
    display: none;
    margin-top: 20px;
}

.contenedor_jumpscare img {
    width: 300px;
    height: 200px;
}



/* COMUNIDAD */

.comunidad{
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color-contraste);
    gap: 10%;
    box-sizing: border-box;
    padding: 0 40px;
}

.comunidad p{
    max-width: 1200px;
}

.comunidad a{
    text-decoration: none;
    color: var(--txt-color);
    background-color: var(--color-decoration);
    border-radius: 16px;
    padding: 8px 16px;
    border: none;
    transition: background-color .4s ease;
}

.comunidad a:hover{
    background-color: #5d2e96;
}

/* LAMBERJACK */

#lamberjack{
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 50px;
    box-sizing: border-box;
    padding-top: 80px;
}

.lamberjack_contenedor{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.lamberjack_contenedor p{
    text-align: center;
}

.lamberjack_juego {
    width: 600px;
    height: 800px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 0 20px rgba(144, 72, 239, 0.144), 0 0 40px rgba(136, 72, 239, 0.164);
}

.lamberjack_juego::before {
    content: "";
    position: absolute;
    width: 630px;
    height: 830px;
    border-radius: inherit;
    background: rgba(72, 239, 128, 0.1);
    box-shadow: 0 0 20px rgba(144, 72, 239, 0.144), 0 0 40px rgba(136, 72, 239, 0.164);
    top: -15px;
    left: -15px;
    z-index: -1;
}

/* Oleaje encima del footer */

.oleadas{
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

.ola{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url(./imagenes/wave.png);
    background-size: 1000px 100px;
}

.ola1{
    animation: oleaje 30s linear infinite;
    z-index: 5;
    opacity: 1;
    animation-delay: 0s;
    bottom: 0;
}

.ola2{
    animation: oleaje2 15s linear infinite;
    z-index: 4;
    opacity: .5;
    animation-delay: -5s;
    bottom: 10px;
}

.ola3{
    animation: oleaje 30s linear infinite;
    z-index: 3;
    opacity: .2;
    animation-delay: -2s;
    bottom: 15px;
}

.ola4{
    animation: oleaje2 5s linear infinite;
    z-index: 2;
    opacity: .7;
    animation-delay: -5s;
    bottom: 20px;
}


/* CONTACTO */

#contacto{
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color-contraste);
    padding: 0 40px;
    box-sizing: border-box;
}

.contacto_contenedor{
    max-width: 1200px;
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5%;
}

.contacto_botones{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8%;
}

.contacto_botones a{
    width: 15%;
    color: var(--txt-color);
    background-color: var(--color-decoration);
    border-radius: 16px;
    padding: 8px 16px;
    border: none;
    transition: background-color .4s ease;
}

.contacto_botones a:hover{
    background-color: #5d2e96;
}

/* FUNCIONALIDADES */

mark{
    background-color: transparent;
    color: var(--color-decoration);
}

.ola__blur{
    position: absolute;
    width: 70%;
    top: 0;
    right: 0;
    rotate: 180deg;
    z-index: -1;
    opacity: .1;
}

.botones_laterales{
    height: 550px;
    width: 100px;
    position: fixed;
    bottom: 0;
    right: 3%;
    opacity: 0; 
    z-index: 6;
    transform: translateX(100px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.botones_laterales.mostrar {
    opacity: 1;
    transform: translateX(0); 
}

.volver_arriba{
    position: absolute;
    bottom: 10%;
    right: 20px;
    color: var(--txt-color);
    background-color: #5d2e96;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    border-radius: 100vmax;
    transition: background-color .4s ease
}

.volver_arriba:hover{
    background-color: var(--color-decoration);

}

.tooltip-container {
    background-color: var(--txt-color);
    position: absolute;
    bottom: 60%;
    right: 20px;
    cursor: pointer;
    font-size: 17px;
    padding: 0.7em 0.7em;
    border-radius: 100vmax;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: background 0.6s;
    width: 30px;
    height: 30px;
}

.tooltip-container:nth-child(2){
    bottom: 30%;
    transform: translateY(-30%);
}

.tooltip-container:hover {
    background: #e7e6e6;
}

.tooltip-container .text {
    display: flex;
    align-items: center;
    justify-content: center;
    fill: #fff;
    transition: fill 0.6s;
}

.tooltip-container:hover .text {
    fill: rgb(3, 169, 244);
}

.tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    opacity: 0;
    background: #5d2e96;
    padding: 8px;
    border-radius: 100vmax;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tooltip img{
    width: 30px;
    height: 30px;
    padding-top: 4px;
}

#tooltip_youtube img{
    width: 40px;
    height: 40px;
    border-radius: 100vmax;
    filter: grayscale(100%);
    transition: filter .4s ease;
}

#tooltip_youtube img:hover{
    filter: grayscale(0);
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip1 { transform: translate(-50%, 0%); }
.tooltip2 { transform: translate(-50%, 0); }
.tooltip3 { transform: translate(0, -50%); }
.tooltip4 { transform: translate(0%, -50%); }

.tooltip-container:hover .tooltip1 { transform: translate(-50%, -190%); }
.tooltip-container:hover .tooltip2 { transform: translate(-50%, 90%); }
.tooltip-container:hover .tooltip3 { transform: translate(-190%, -50%); }
.tooltip-container:hover .tooltip4 { transform: translate(90%, -50%); }


.tooltip:hover {
    background: var(--color-decoration);

}

/* RESPONSIVE */

@media (max-width: 1200px){
    .inicio_dager{
        width: 200px;
        height: 200px;
        border: 15px solid var(--txt-color);
    }
    
    .inicio_dager::after{
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 1035px){
    .pepino {
        left: 30%;
        transform: translateX(-30%);
    }

}

@media screen and (max-width: 900px) {

    #carrusel_videos .carrusel{
        grid-auto-columns: calc( (100% / 2) - 9px);
    }

    .abrir__menu {
        display: block;
        position: fixed;
        right: 6%;
        top: 2.5%;
        cursor: pointer;
        z-index: 10;
        border: none;
        background-color: transparent;
    }

    .navegador_main {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        gap: 20px;
        padding-top: 50px;
        transition: right 0.4s ease-in-out;
        z-index: 12;
    }

    .navegador_main.visible {
        right: 0;
        z-index: 120;
    }

    .cerrar__menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 6%;
        background-color: transparent;
        border: none;
        cursor: pointer;
    }

    .navegador_contenedor {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .navegador_link{
        width: 150px;
        justify-content: center;
    }

    .navegador_link img {
        margin-bottom: 8px;
    }

    .wrapper_nav{
        font-size: 4rem;
    }

    .sobre_mi_header h2 {
        font-size: 1.8rem;
    }


    .sobre_mi_grid_item header {
        font-size: 1.2rem;
    }

}

@media screen and (max-width: 750px) {

    #inicio{
        flex-direction: column;
        align-items: flex-start;
    }
    
    .inicio_dager, .inicio_contenedor{
        margin-left: 10%;
    }
    

    .entrada{
        padding-right: 10%;
    }

    .lamberjack_juego{
        width: 400px;
    }

}

@media screen and (max-width: 715px) {

    .pepino {
        left: 50%;
        bottom: 70%;
    }
}

@media screen and (max-width: 600px) {

    #carrusel_videos .carrusel{
        grid-auto-columns: 70%;
    }

    .carrusel_header a {
        font-size: 14px;
    }

    .fa_solid:first-child{
        left: 30%;
    }

    .fa_solid:last-child{
        right: 30%;
    }

    #lamberjack{
        padding: 0;
    }

    .lamberjack_contenedor p{
        padding: 0 10px;
    }

    .contacto_botones{
        flex-direction: column;
        gap: 10px;
    }

    .contacto_botones a{
        width: 40%;
    }

}

@media screen and (max-width: 450px) {

    #inicio{
        justify-content: flex-start;
    }

    .inicio_dager{
        margin-top: 30%;
    }

    #carrusel_videos .carrusel{
        grid-auto-columns: 100%;
    }

    
    .lamberjack_juego{
        width: 300px;
    }

    .inicio_links{
        right: 25px;
    }
}

@media screen and (max-height: 1000px){
    .navegador_main.visible {
        height: 200%;

    }
}


@media screen and (max-height: 800px){
    .inicio_dager{
        margin-top: 20px;
    }
}


/* ANIMACIONES */

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes temblor {
    0% { transform: translateX(-50%) rotate(0deg); }
    20% { transform: translateX(-50%) rotate(5deg); }
    40% { transform: translateX(-50%) rotate(-5deg); }
    60% { transform: translateX(-50%) rotate(5deg); }
    80% { transform: translateX(-50%) rotate(-5deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

@keyframes enganchar_nav{
    to{
        background-color:  var(--bg-color);
    }
}

@keyframes telon{
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(-200%);
    }
}

@keyframes oleaje{
    0%{
        background-position-x: 0;
    }
    100%{
        background-position-x: 1000px;
    }
}

@keyframes oleaje2{
    0%{
        background-position-x: 0;
    }
    100%{
        background-position-x: -1000px;
    }
}

@keyframes escala{
    0%{
        scale: 0;
    }
    100%{
        scale: 1;
    }
}