html {
    font-size: 62.5%;
    box-sizing: border-box;
}

*, 
*::before,
*::after {
    box-sizing: inherit;
}

body {
    padding: 0;
    margin: 0;
    line-height: 1.6;
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
    background-color: #020412;   
    color: #fff; 
}


/* incio */


header {
    width: 100%;    
    height: 8vh; 
    padding: 0 8.5%;
    color: #fff;
}

.logo {    
    display: flex;
    flex-direction: row;
    letter-spacing: 7px;
    cursor: pointer;
    width: 190px;
    text-decoration: none;
}

.name {
    font-family: 'Gill Sans', Arial, sans-serif;
    color: white;
    font-size: 42px;
    font-weight: lighter;
}

.dot {
    background-color: rgb(255, 165, 0);
    height: 12px;
    width: 12px;
    border-radius: 50%;
    align-self: flex-end;
    margin-bottom: 55px;
    margin-left: 5px;
}


/* fin */


nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2vh;
    height: 8vh;
    border-bottom: 1px solid #f3930d86;
}

.ham {
    display: none;
    cursor: pointer;
    border: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
    transition: 0.4s 0.2s;
}

.ham:hover {
    transform: rotate(180deg);
}

.ham span {
    display: block;
    background-color: #f3f3f3;
    height: 2px;
    width: 28px;
    margin: 10px auto;
    border-radius: 2px;
}

.enlaces-menu {
    display: flex;
    padding: 0;    
}

.enlaces-menu li {
    padding: 0 10px;
    list-style-type: none;
}

.enlaces-menu li a {
    text-decoration: none;
    font-size: 1.8rem;
    color: #f3f3f3;
    font-weight: lighter;
    text-transform: uppercase;
    padding: 0 15px;
    transition: 0.5s;
}


nav ul li a:hover {
    color: #f3950d;
}

/* MAIN */
.text-box {
    padding: 0 8.5%;
    -webkit-box-reflect: below 60px linear-gradient(transparent, transparent, rgba(255, 0, 0, 0.216));
}

.text-box h1 {

    font-size: 55px;
    text-shadow: -3px 3px 3px #f3930d86;
        
    display: flex;
    flex-direction: row;
    display: inline-flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

#texto {
    font-size: 55px;
}

#textoSecundario {
    font-size: 33px;
    line-height: 10px;
}

.msj {
    color: #f3930db9;
    font-size: 16px;
    width: 65%;
    word-wrap: normal;

}

.prompt {
    font-weight: lighter;
    font-family: monospace;
    margin-top: 55px;
}

/* END MAIN */



.hidden {
    visibility: hidden;
}

@media (max-width:865px){
   /*  body {
        overflow: hidden;
    } */
    
    .name  {
        font-size: 30px;  
        margin-top: 0; 
        padding: 0;    
    }

    .dot {
        margin-top: 28px;
    }

    .logo {
        padding-left: 20px;
    }

    .ham {
        display: block;
        position: absolute;
        top: 8px;
        right: 12px;
    }

    nav {        
        flex-direction: column;
        align-items: flex-start;
        padding: 5px 0;
    }

    .enlaces-menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin: 0;
        padding: 20px 0;
        width: 100%;
        height: 92vh;
        display: none;
        opacity: 0;
    }

    .enlaces-menu li {
        padding: 12px 0;
        width: 80%;
        text-align: center;
        border-bottom: #3d3c3c 1px solid;
    }

    .msj {
        width: 100%;
    }

    .prompt {
        margin-top: 0px;
    }

    .text-box h1 {
        display: flex;
        flex-direction: row;
    }

    #texto {
        /* color: red; */ 
        display: block;
        line-height: 45px;
        font-size: 20px;
    }

    .prompt {
        font-size: 22px;
        margin-top: 25px;
    }

    #textoSecundario {
        display: block;
        line-height: 30px;        
        margin: 0 auto;
        font-size: 30px;
    }

    #contact, #download {
        width: 130px;
        height: 40px;
        font-size: 12px;
        padding: 5px 15px;
        margin: auto;
        margin-top: 25px;
        color: rgb(94, 190, 134);
    }    

    .modal {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        margin: 0;
        border: red 5px solid;
    }
}

@keyframes muestraMenu {
    from {opacity: 0;}
    to {opacity: 1;}
}

.enlaces-menu.activado {
    display: flex;
    animation: muestraMenu 1000ms ease-in-out both;
}

.br-1.animado {
    transform: rotate(-45deg) translate(-9px, 8px);
}

.br-2.animado {
    opacity: 0;
}

.br-3.animado {
    transform: rotate(45deg) translate(-9px, -8px);
}

/* GALERÍA */

section h1 {
    font-size: 2rem;
    padding: 0 5%;
}

.gallery {
    margin: auto;
    margin-top: 10px;
    display: grid;
    width: 90%;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 10px;
}

.gallery__item {
    cursor: pointer;
    /* overflow: hidden; */
    border-radius: 4px;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease-in-out;
}

.gallery__item img:hover {
    transform: scale(1.1);
}

@media (max-width: 950px) {
    .gallery {
        grid-template-columns: repeat(8, 1fr);
    }
}
@media (max-width: 550px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }

}

.modal {
    width: 75%;
    height: 75%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    background-color: rgba(56, 54, 54, 0.342);    
    margin: auto;
    /* animation: zoom 0.85s ease-in-out 0.2s; */
    border: 3px #3d3c3c solid;
    border-radius: 3px;
}

@media (max-width: 550px) {
    .modal {
        width: 95%;
    }
}

@keyframes zoom {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal img {
    width: 100%;
    object-fit: contain;
}

.closeBtn {
    position: absolute;
    font-size: 2rem;
    font-weight: bolder;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.87);
    background-color: #3d3c3c;    
    top: 0;
    right: 0;
    padding: 0 10px;
    margin-right: 2%;    
    cursor: pointer;
    transition: 0.8s ease-in-out;
}

.closeBtn:hover{
    color: rgb(255, 255, 255);
    opacity: 0.6;
    transform: scale(1.2);
}

.prevBtn,
.nextBtn {    
    position: relative;
    min-width: 30px;
    width: 30px;
    height: 30px;
    padding: 0px;
    border-radius: 50%;
    opacity: 1;
    border: 1px solid rgba(34, 34, 34, 0.287);
    transition: opacity 600ms ease-in-out; 
    animation-fill-mode: none ;
    cursor: pointer;
    /* overflow: hidden; */
    z-index: 10;
    top: 50%;
    opacity: 0;
}

.prevBtn {
    left: 7%;
    transform: translateY(-60%);
}

.nextBtn {
    right: 7%;    
    transform: translateY(-60%);
}
    
.prevBtn > img, 
.nextBtn > img {
    min-width: 15px;   
}

.prevBtn:hover, 
.nextBtn:hover {    
    opacity: 0.6;
}
    
/* Show Buttons when user hover on the slider Container */
.modal:hover > .prevBtn,
.modal:hover > .nextBtn {
    opacity: 1;
}
      


/* FIN GALERÍA */
.loader {
    display: block;
    margin: auto; 
    margin-top: 25px;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.none{
    display: none;
}

/* ===================
    * BOTÓN SCROLL *
=================== */
.scroll-top-btn {
    position: fixed; 
    z-index: 999;
    bottom: 1.3vh;
    right: calc(2.25rem + 1vw); 
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: orange;
    color: white;
    cursor: pointer;
    outline: 0;
    border: 0;
    transition: all 0.95s ease-in-out;
    box-shadow: 0 16px 20px rgba(#431980, 0.21);
}

.scroll-top-btn:hover{
    background-color: rgba(255, 166, 0, 0.274);
    color: white;
}

.hidden{
    visibility: hidden;
    opacity: 0;
    height: 1px;
}

/* FOOTER */
.footer {
    position: fixed;
    left: 0;    
    bottom: 0;
    width: 100%;
    height: 3rem;
    background-color: rgba(12, 1, 1, 0.705);
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 10px;
}

.visitas {
    right: 10rem;
    padding-right: 10rem;
    font-size: 1.2rem;
    color: white;
}

/* ERROR 404 */
.error404 {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    text-align: center;  
}

.error404 p {
    font-size: 2rem;
    width: 90%;  
    margin: 0 auto;  
    text-align: center;  
}

.error404 a {
    color: gray;
    font-size: 1.5rem;
}

/* Media query para dispositivos pequeños */
@media (max-width: 600px) {
    .error404 {
        font-size: 2rem; 
    }

    .error404 p {
        font-size: 1.5rem;  
        width: 90%;  
    }

    .error404 a {
        font-size: 1.2rem;  
    }
}


@media (max-width:768px){
    .visitas {
        padding-right: 1rem;
    }
}