:root{
    --secundario: #07A081;
    /* --secundario: #07A081; */
}
body{
    font-family: 'Times New Roman', Times, serif;

}

.fijar-body{
    overflow: hidden;
}

html{
    font-size: 62.5%;  /*esto es para que 1rem sea igual a 10px */
    box-sizing: border-box; /* Hack para Box Model*/
    /* scroll-snap-type: y mandatory; */
}


*, *:before, *:after{
    box-sizing: inherit;

}

.contenedor{
    max-width: 120rem;
    width: 90%;
    margin: 0 auto;

}

a{
    text-decoration: none;

}

h1{
    font-size: 5rem;
}
h2{
    font-size: 3rem;
}
h3{
    font-size: 3.2rem;
}
h4{
    font-size: 2.8rem;
}

img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}


/* Utilidades */
.no-margin{
    margin: 0;
}
.no-padding{
    padding: 0;
}
.centrar-texto{
    text-align: center;
}

.texto_negro{
    color: #333 !important;
 
}

/* Todo el código*/

.header{
    background-image:
    linear-gradient(rgba(0,0,0, 0.5), rgba(0,0,0, 0.8)),
     url(../img/fondotwo.webp);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50rem;
    background-position: center center;
    position: relative;

}

.header_gif{
    background-image:
    linear-gradient(rgba(0,0,0, 0.5), rgba(0,0,0, 0.8)),
     url(../img/fondo.gif);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50rem;
    background-position: center center;
    
}

.header_ilustra{
    background-image:
    linear-gradient(rgba(0,0,0, 0.5), rgba(0,0,0, 0.8)),
     url(../img/ilustra.webp);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50rem;
    background-position: center center;
    
}
.header_video{
    background-image:
    linear-gradient(rgba(0,0,0, 0.5), rgba(0,0,0, 0.8)),
     url(../img/video.gif);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50rem;
    background-position: center center;
    
}

.header_stikers{
    background-image:
    linear-gradient(rgba(0,0,0, 0.5), rgba(0,0,0, 0.8)),
     url(../img/stikers.gif);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50rem;
    background-position: center center;
    position: relative;

}



.marcas{
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  
}

.marcas li{
    list-style: none;
  
}

.marcas img{
    width: 2rem;
    filter: grayscale(1); /* Convierte la imagen en blanco y negro */
    transition: filter 0.3s;
}

.marcas img:hover{
    filter: grayscale(0);
}


.barra-logo{
   display: flex;
   justify-content: center;
   align-items: center;
}

.logo{
    max-width: 10rem;
    margin-right: .5rem;
}
.header_video{
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;

}

.header_video video{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;

}

.video_overlay{
    background-color: #7f7f7f;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;

}


.barra{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navegacion{
    display: flex;
    gap: 2rem;
}

.navegacion a{
    font-size: 2.5rem;
    color: #fff;
    font-weight: 500;
}

.navegacion a:hover{
    color: var(--secundario);
}
.header_titulo{
    color: #fff;
    font-weight: 100;
}

.header_titulo span{
    font-weight: 700;

}

.contenido-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
   
}

.texto{
    max-width: 63rem;
    margin-bottom: 4rem;

}

.texto p{
    width: 100%;
    font-size: 3.5rem;
    color: #fff;
    font-weight: 600;
}

.texto input{
    width: 80%;
    height: 5rem;
    /* border-radius: 6px; */
    border: none;
    background-color: #f7f7f7;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    font-size: 2rem;
    color: #7f7f7f;
    padding: 0 2rem;
}

.texto input:focus{
    outline: none;
}

.texto input::placeholder{
    font-size: 2rem;
    color: #7f7f7f;

}

.texto__btn{
    padding: 1rem 2rem;
    background-color: #f7f7f7;
    border: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    color: transparent;
}
.texto__btn {
    color: #7f7f7f;
}


.texto__btn:hover{
    cursor: pointer;
    color: var(--secundario);

}

.texto__search{
    display: flex;
}

/* Fin header */

.enlaces{
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 4rem 0;
}

.enlaces a{
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #4a4a4a;

}

.enlaces a:hover{
    color: var(--secundario);
}

.activo{
    background-color: #000;
    color: #fff !important;
    padding: 0 2rem;
    height: 5rem;
    border-radius: 3rem;
}

.activo:hover{
    background-color: #181818;
}

.contenido_img, .contenido_gif, .contenido_stikers, .contenido_ilustra{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;

}

.contenido_imagenes img{
    border-radius: 6px;
    height: 100%;

}

.contenido_imagenes{
    position: relative;
    /* display: inline-block; */
    overflow: hidden;

}


.contenido_imagenes:hover{
    cursor: pointer;
}

.contenido_imagenes::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    transition: opacity 0.3s ease; /* Transición suave */
    opacity: 0;
}


.contenido_imagenes:hover::before{
    opacity: 1;
}

.autor{
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 20px 10px;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    z-index: 3;


}

.contenido_btn{
    position: absolute;
    font-size: 2rem;
    bottom: 0;
    right: 0;
    margin: 1rem;
    background-color: var(--secundario);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    z-index: 3;

}


.autor,
.contenido_btn{
    opacity: 0;
}

.contenido_btn:hover{
    cursor: pointer;
    background-color: #078e73;
}

.contenido_imagenes:hover .autor,
.contenido_imagenes:hover .contenido_btn{
    opacity: 1;
}


/* Modal imagenes */


.overlay{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background-color: rgb(0 0 0 / .8);
    z-index: 999;
    overflow: auto;


}

picture{
    display: block;
    max-width: 90rem;
    max-height: 90rem;


}

.btn-cerrar{
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: red;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    position: fixed;
    top: 0;
    right: 0;
    margin-right: 2rem;

}



/* ------------------------------------video------------------------------- */

.contenido_vid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;

}

.contenido_video{
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contenido_video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contenido_video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contenido_video{
    position: relative;
    display: inline-block;

}

.contenido_video:hover{
    cursor: pointer;
}

.contenido_video::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    transition: opacity 0.3s ease; /* Transición suave */
    opacity: 0;
}


.contenido_video:hover::before{
    opacity: 1;
}


.autor_vid{
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 20px 10px;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    z-index: 3;

}

.contenido_btn_vid{
    position: absolute;
    font-size: 2rem;
    bottom: 0;
    right: 0;
    margin: 1rem;
    background-color: var(--secundario);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    z-index: 3;

}


.autor_vid,
.contenido_btn_vid{
    opacity: 0;
}

.contenido_btn_vid:hover{
    cursor: pointer;
    background-color: #078e73;
}

.contenido_video:hover .autor_vid,
.contenido_video:hover .contenido_btn_vid{
    opacity: 1;
}


.overlay_vid{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    place-items: center;
    background-color: rgb(0 0 0 / .8);
    z-index: 999;
    overflow: auto;

}

picture{
    display: block;
    max-width:  100rem;
    max-height: 90rem;


}

.overlay_vid video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Para ajustar el video manteniendo la relación de aspecto */
    object-position: center; /* Para centrar el video */
}

.play{
    position: absolute;
    top: 0;
    left: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #333;
    margin: 1.5rem;
    display: grid;
    place-content: center;

}

.play_ico{
    font-size: 2rem;
    color: #fff;
    display: flex;


}



/*----------------------------- Spinner -----------------------------*/
.loader {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    margin:15px auto;
    position: relative;
    color: #05a081;
    box-sizing: border-box;
    animation: animloader 2s linear infinite;
  }

  @keyframes animloader {
    0% {
      box-shadow: 14px 0 0 -2px,  38px 0 0 -2px,  -14px 0 0 -2px,  -38px 0 0 -2px;
    }
    25% {
      box-shadow: 14px 0 0 -2px,  38px 0 0 -2px,  -14px 0 0 -2px,  -38px 0 0 2px;
    }
    50% {
      box-shadow: 14px 0 0 -2px,  38px 0 0 -2px,  -14px 0 0 2px,  -38px 0 0 -2px;
    }
    75% {
      box-shadow: 14px 0 0 2px,  38px 0 0 -2px,  -14px 0 0 -2px,  -38px 0 0 -2px;
    }
    100% {
      box-shadow: 14px 0 0 -2px,  38px 0 0 2px,  -14px 0 0 -2px,  -38px 0 0 -2px;
    }
  }

  .imgNoFound, .vidNoFound{
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    font-size: 2rem;

  }

  .imgNoFound span, .vidNoFound span{
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  }

/*----------------- Barra de búsqueda al a hacer scroll -----------------------*/
.barra-scroll{
    background-color: #fff;
    display: flex;
    align-items: center;
    /* column-gap: 9rem; */
    position: fixed;
    width: 100%;
    top: -80px; 
    transition: top 0.3s;
    z-index: 999;
   
}
.hidden{
top: 0; 

}

.logo-enlace{
    margin-left: 2rem;
    display: flex;
    align-items: center;


}

.barra-texto input{
    width: 100%;
    height: 4.5rem;
    /* border-radius: 6px; */
    border: none;
    background-color: #f7f7f7;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    font-size: 2rem;
    color: #7f7f7f;
    padding: 0 2rem;
 
    
}

.barra-texto input:focus{
    outline: none;
}

.barra-texto input::placeholder{
    font-size: 2rem;
    color: #7f7f7f;

}

.barra-btn{
padding: 1rem 2rem;
background-color: #f7f7f7;
border: none;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
color: transparent;
color: #7f7f7f;
}


.barra-btn:hover{
cursor: pointer;
color: var(--secundario);

}

.barra-texto{
display: flex; 
width: 70rem;
margin: 0 -5rem 0 6rem;

}

.barra_titulo{
color: #333;
font-weight: 100;
font-size: 3rem;
}

.barra_titulo span{
font-weight: 700;
}

.logo-img{
width: 8rem;
height: 5rem;
}

.barra-navegacion{
    margin-left: 10rem;
}

.barra-navegacion a{
color: #333;
}



/* --------------------------------fin scroll----------------------------------------- */
/*-------------------------------- DARK-MODE------------------- */

.derecha{
    display: flex;
    width: min-content;
}

.derecha img{
    width: 10%;
    margin-left: 1rem;
    cursor: pointer;
    filter: invert(100%);
}

.dark-mode{
    background-color: #000;
}

.dark-mode .enlaces a{
    color: #FFF;
}

.dark-mode .activo{
    background-color: #fff;
    color: #000 !important;
    padding: 0 2rem;
    height: 5rem;
    border-radius: 3rem;
}

.dark-mode .enlaces a:hover{
    color: var(--secundario);
}

.dark-mode .autor{
    color: #fff !important;
}

.dark-mode .barra-scroll{
    background-color: #000;
}

.dark-mode .barra_titulo{
    color: #FFF;
}

.dark-mode .barra-navegacion a{
    color: #FFF;
}

.dark-mode .barra-navegacion a:hover{
    color: var(--secundario);
}
/*
/*-------------------------------- FIN DARK-MODE------------------- */
/* ------------------------------Responsive----------------------------------------- */
@media (max-width: 1024px) {
    .header_video{
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
    }
    .texto{
        margin-bottom: 4rem;
    }

    .barra-navegacion{
        margin-left: 0rem;
    }

    .barra-texto{
        display: flex; 
        width: 60rem;
        margin: 0 -1rem 0 6rem;
        
        }
        

}

@media (max-width: 768px) {
    .contenido_img, .contenido_vid, .contenido_gif, .contenido_ilustra{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding-bottom: 2rem;
    }
    .header_video{
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    .texto{
        margin-bottom: 4rem;
    }

    .marcas{
        margin-bottom: 2rem;
    }

    .contenido h2{
        text-align: center;
    }

    .barra{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .contenido-header{
        display: flex;
        text-align: center;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 1rem;
    }

    .texto__search input{
        width: 100%;
    }
    .autor{
        display: none;
    }
    .autor_vid{
        display: none;
    }

    .contenido_btn_vid_query, .contenido_btn_query{
        position: absolute;
        font-size: 2rem;
        bottom: 0;
        right: 0;
        margin: 1rem;
        background-color: #fff;
        border: none;
        color: #333;
        padding: 10px 12px;
        border-radius: 15px;
        z-index: 3;
        cursor: pointer;

    }

    .contenido_btn_vid, .contenido_btn{
        display: none;
    }

    .contenido_btn_vid_query, .contenido_btn_query{
        opacity: 0;
    }


    .contenido_video:hover .contenido_btn_vid_query,
    .contenido_imagenes:hover .contenido_btn_query{
        opacity: 1;
    }

    .contenido_btn_vid_query:hover,
    .contenido_btn_query:hover{
        background-color: #eee;
    }


    .barra_titulo, .barra-navegacion{
        display: none;
    }

    .barra-buscar{
        margin-left: -83;
    }

    .barra-texto{
        margin: 1rem 0;
    }



}

@media (max-width: 480px) {
    .contenido_img, .contenido_vid, .contenido_gif, .contenido_ilustra{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding-bottom: 2rem;
    }
    .barra{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .contenido-header{
        display: flex;
        text-align: center;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 1rem;
    }

    .texto__search input{
        width: 100%;
    }

    .autor{
        display: none;
    }
    .autor_vid{
        display: none;
    }
    .contenido_btn_vid_query, .contenido_btn_query{
        background-color: rgba(0, 0, 0, 0.6);
        color: #fff;
        width: 4rem;
        height: 4rem;
        border-radius: 50%;
        z-index: 3;
        display: grid;
        place-content: center;


    }
    .contenido_btn_vid_query, .contenido_btn_query{
        opacity: 1;
    }

    .contenido_btn_vid_query:hover,
    .contenido_btn_query:hover{
        background-color: #eeeeee;
        color: #333;
    }

    .enlaces{
        gap: .5rem;
        margin: 2rem 0;
    }

    .enlaces a{
        font-size: 1.8rem;
    }

    .logo-enlace{
        margin-left: .5rem;
        display: flex;
        align-items: center;
    
    
    }

    .barra-texto{
        display: flex; 
        width: 60rem;
        margin: 0 2rem 0 1rem;
        
        }
}



