
/* Estilos para el Menú: */

/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Aldrich&display=swap');

html, body {
    height:100%;
}
body {
    background: var(--background-img);
    background-position-x: center; /* COMENTAR ESTO SI QUIERO QUE QUEDE LA IMAGEN DE ORIGEN */
    font-family: 'Aldrich', sans-serif;
    background-size:var(--bg-size);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}
.wfix {
    max-width:1000px;
    margin:0 auto;
    position:relative;
}

.main {
    left: 0;
    right: 0;
    top: 0;
    position: absolute;
    bottom: 0;
    padding:130px 0;
}

/* width */
::-webkit-scrollbar {
    width: 15px;
}
  
  /* Track */
::-webkit-scrollbar-track {
    background:rgba(0,0,0,.5)
}
  
  /* Handle */
::-webkit-scrollbar-thumb {
    background:rgba(255,255,255,.5);
}
  
  /* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--main-color);
}

.nav { /* A los elementos con la clase nav. */
    width: 300px; 
    position: fixed; /* Menú flotante */ 
    top: 0;
    height: 100%;
    bottom: 0;
    z-index: 200;
    background: var(--main-color);
    opacity:0;
    left:-300px;
    transition: all .3s;
    box-shadow: 15px 0 20px rgb(0 0 0 / 10%);
}
/* añade una capa dentro del nav que le da un pequeño sombreado al color del fondo. */
nav:before {
    background: linear-gradient(130deg, rgba(255,255,255,.1) 50%, rgba(0,0,0,.3) 100%);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    content: "";
}
/* este es un por que la capa anterior tapaba el menu y no se le podia dar clic
con esto se consigue que cualqiuer cosa del nav quede por encima del :before */
nav > * {
    position: relative;
}

.nav.open {
    left: 0;
    opacity: 1;
}

.list { 
    width: 100%; /* El hijo de nav ocupara el 100% de su padre. */
}

.nav__link {
    color: var(--contrast-color); /* VER DE HACER ALGO SI EL COLOR DEL FONDO ES BLANCO !!! */
    display: block;
    padding: 15px 0;
    text-decoration: none;
}

.list__item:hover {
    background: rgba(0,0,0,.2);
    transition: 0.5s;
}

.list__item--click {
    cursor: pointer;
}

.list__button {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 70%;
    margin: 0 auto;
    font-size: large;
}

.list__button > i {
    width: 20px;
    text-align: center;
}

header {
    color: white; /* Color de fuente. */
    padding: 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 50;
}

header, footer {
    backdrop-filter: blur(3px);
    height: 130px;
}

.dark header, .dark footer {
    background: rgb(0 0 0 / 30%); 
}

.light header, .light footer {
    background: rgb(255 255 255 / 30%); 
}

.dark .main {
    background: rgba(0,0,0,0.3)
}

.light .main {
    background: rgba(255,255,255,0.3)
}

.logo {
    width: auto;
    height: 110px;
    display: block;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.container {
    height: auto;
    width: 100%;
    max-width: 800px;
    padding: 80px;
    margin: 0 auto;
}

.container .imglayout img {
    display: block;
    max-width: 100%;
    max-height: 450px;
    margin: 0 auto;
}

.dark .container { /* Color de la letra del container. */
    color: white;
}

.light .container {
    color: black;
}

.container .imglayout{
    margin: 0 auto;
}

.imglayout {
    display: block;
    max-width: 100%;
    max-height: 400px;
    margin: 0 auto;
    /*overflow: hidden;*/
    position: relative;
    /*border: 3px solid hsla(20, 3%, 21%, 0.8);
    border-radius: 3%;*/
}

/*
.imglayout:hover {
    box-shadow: 0 0.1rem 1.2rem var(--main-color);
    transition: 0.3s;
    border-radius: 3%;
}
*/

footer {
    padding: 0;
    color: white; /* Color de fuente. */
    position: fixed;
    width: 100%;
    margin-right: 0px;
    margin-left: 0px;
    bottom: 0px;
}
footer .wfix {
    height:100%;
}
footer section {
    float: left;
}

.dev_xweb {
    color: var(--contrast-color);
    text-decoration: underline;
}

.header_redes { /* DIV DE REDES */
    position: absolute;
    height: 55px;
    right: 40px;
    top: 0;
    bottom: 0;
    margin: auto;
}

.header_redes i { /* DIV DE REDES */
    color: var(--main-color);
    font-size: 25px;
    width: 50px;
    line-height: 45px;
    margin: 5px 2px 0 0;
    /*border: 1px solid*/;
    border-radius: 50%;
} 

.dark .header_redes i {
    background: rgba(0,0,0,.3);
}

.light .header_redes i{
    background: rgba(255,255,255,.3);
}

.header_redes i:hover {    
    box-shadow: 0 0.1rem 1.2rem var(--main-color);
    transition: 0.5s;
    border-radius: 50%;
} 

.redes_celu {
    display: none;
}

.btn_play, .btn_pause {
    font-size: 65px;
    height: 65px;
    width: 48.75px;
    color: var(--main-color);
    cursor:pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 0;
    /*
    background: var(--main-color);
    border: 5px solid var(--main-color);
    border-radius: 50%; 
    -webkit-animation: colorchange 3s;
    animation: colorchange 3s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    */
}

.btn_play i, .btn_pause{
    transition: all .3s; 
}

.btn_play i:hover, .btn_pause:hover { 
    text-shadow: 0 0.1rem 1.2rem var(--main-color);
} 

.btn_pause {
    display: none;   
}

.volume_control {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 30px;
    width:100px;
}

#player_volume {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    display: inline-block;
    vertical-align: middle;
    height: 30px;
    width: 60px; 
    
}

#player_volume::-webkit-slider-runnable-track {
    /*background: #fff !important;*/
    height: 4px !important;
}

.light #player_volume::-webkit-slider-runnable-track {
    background: black !important;
}

.dark #player_volume::-webkit-slider-runnable-track {
    background: white !important;
}

#player_volume::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    margin-top: -5px; /* Centers thumb on the track */
    background-color: var(--main-color); 
    border-radius: 30px;
    height: 14px;
    width: 14px;  
}

.btn_close {
    padding: 50px;
    font-size: 30px;
}

.menu_desplegable {
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    margin: auto;
    height: 60px;
    width: 130px;
    font-size: 40px;
    line-height: 60px;
    z-index: 100;
    color: var(--main-color);
    margin: auto;
}
.menu_desplegable i {
    margin-top: 12px;
}
.powered { 
    position: absolute;
    bottom: 30px;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

.overlay {
    display:none;
    z-index:60;
    background:rgba(0,0,0,.5);
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    margin:auto;
}
 
.instalar_app { 
    display: none;
    height: 70px;
    top: -70px;
    position: absolute;
    background: var(--main-color);
    width: 100%;
    padding: 0;
    font-size: 22px;
}
.instalar_app .wfix {
    height:70px;
    padding: 15px;
}
.instalar_app .smalltext {
    font-size:16px;
}
#installApp {
    position: absolute;
    right: 20px;
    top: 0;
    height: 35px;
    line-height: 35px;
    background: #FFF;
    color: #000;
    padding: 0px 14px;
    border-radius: 3px;
    cursor: pointer;
    bottom: 0;
    margin: auto;
}

.contacto {
    position: absolute;
    width: 80%;
    padding: 60px 40px;
    margin: 0 auto;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}

.logo_xweb {
    max-width: 20%;
}
.play_loading {
    display:none;
    height: 42px;
    width: 48.75px;
    color: var(--main-color);
    cursor:pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 0;
}
.loader {
    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
  }
.loader::after,
.loader::before {
    content: '';  
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFF;
    position: absolute;
    left: 0;
    top: 0;
    opacity:0;
    animation: animloader 2s linear infinite;
}
.loader::after {
    animation-delay: 1s;
}

.boton_enviar {
    background-color: var(--main-color);
    border: none;
    border-radius: 10%;
    color: white;
    padding: 8px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.boton_enviar:hover{
    box-shadow: 0 0.1rem 1.2rem var(--main-color);
    transition: 0.5s;
}

.textfields {
    padding: 8px 12px;
    border-radius: 3px;
    outline: none;
    width: 100%;
    font-family: 'Aldrich', sans-serif;
    font-size: 14px;
}

.textarea_contacto{
    resize: none;
}

.dark .textfields {
    border: 1px solid #333;
    background: rgba(0,0,0,0.8);
    color: white;
}

.light .textfields {
    border: 1px solid #999;
    background: rgba(255,255,255,0.8);
    color: black;
}

.cartel_mensajeenviado {
    font-size: 20px;
    background: var(--main-color);
    border-radius: 30px;
    padding: 20px 0;
    text-align: center;
    width: 250px;
    margin: 0 auto;
    height: 50px;
    line-height: 10px;
}

/* Esto es para remover el color por defecto blanco del autocompletado de chrome, cuado recuerda datos: */

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--main-color) inset !important;
}

/* Y esto cambia el color de la letra: */

input:-webkit-autofill{
    -webkit-text-fill-color: var(--contrast-color) !important;
}


@keyframes animloader {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0; 
    }
}

/* que este sea el final del archivo 
abajo de esto solo media querys */

@media (max-height:700px), (max-width:900px){
    header, footer {
        height: 100px;
    }
    .logo img {
        height:80px;
    }
    .main {
        padding:100px 0;
    }
    .logo {
        max-height: 80px;
        max-width: 60%;
        height: auto;
    }
}
