html{
  scroll-behavior: smooth;
  box-sizing: border-box;
}
 body{
    min-width: 400px;
  }

  .dash-menu-cursos{
    position: relative;
    width: 100%;
    padding: 1em 0;
    display: grid;
    grid-template-columns: repeat(4 , 1fr);
    gap: 1em;    
  }

  .dash-menu-h3{
    font-size: 1.5em;
    background-color:  #2563eb;
    color: white;
    padding: .5em 1em;
    width: 100%;
    border-radius: .5em;
  }

  .curso-card{
    background-color: white;
    overflow: hidden;
    border-radius: .5em;
    filter:  drop-shadow(1px 5px 5px rgba(0,0,0,0.2));
    max-height: 255px;
    aspect-ratio: 16/9;
  }

  .curso-link-flex{
    display: flex;
    flex-direction: row;
    position: relative;
  }

  .curso-img-box{
    position: relative;
    max-width: 200px;
    height: fit-content;
  }

  .curso-img{
    min-height: 100%;
    object-fit: fill;
    z-index: 10;
    min-width: 150px;
  }

  .curso-password{
    font-size: 1.2em;
    color: #0f70b7;
  }

  .curso-password span{
    font-weight: 600;
  }

  .curso-link-af{
    position: absolute;
    font-size: 4em;
    color: white;
    opacity: .4;
    font-weight: 800;
    top: 15%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-shadow: 2px 2px 5px #000;
  }

  .curso-text{
    width: 100%;
    font-family: 'Montserrat', sans-serif;    
    padding: 1em;
    display: flex;
    flex-direction: column;
    text-align: center;
    transform: scale(.9);
  }

  .curso-text-title{
    width: 100%;
    font-size: 1.4em;
    font-weight: 600;
    color: #999;
  }

  .curso-text-dias{
    font-size: 1.3em;
    font-weight: 600;
    color: #666;
  }

  .curso-text-fecha-fin{
    color: darkred;
  }

  .curso-text-caducado{
    color:  #999;
    position:  absolute;
    bottom: 0;
    left: 0;
    transform: translate(-50% -50%);
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
  }

  .caducado{
    position: absolute;
    display: flex;
    z-index: 9999;
    width: 100%;
    height: 100%;
    filter: 
        blur(1px)
        saturate(5%);
  }

  .btn-comprar{
    padding: .5em 1em;
    color: white;
    background-color: #0f70b7;
    border-radius: .5em;
    margin-right: 1em;
  }

  .curso-hover{
    position: absolute;
    width: 100%;
    bottom: 0;    
    height: 0;
    opacity: 1;
    padding: 1em .5em;
    transition-duration: 300ms;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.2) 90%,rgba(0,0,0,0) 100%);
    z-index: 90;
    display: flex;
    flex-direction: row;
    justify-content: right;    
  }

  .curso-card:hover .curso-hover{
    height: 30%;
    opacity: 1; 
  }

  .promo-card{
    position: relative;
    aspect-ratio: 16/9;
    max-height: 255px;
    overflow: hidden;
    border-radius: .5em;
    filter: drop-shadow(1px 1px 5px lightgreen);
  }

  .promo-img{
    width: 100%;
  }

  .promo-hook{
    position: absolute;
    padding: .5em 5em;
    color: white;
    background-color: green;
    transform: rotateZ(-30deg);
    margin-left: -12%;
    margin-top: 2%;
  }

  .promo-caduca{
    width: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: center;
    font-size: 1.5;
    font-weight: 600;
    text-shadow: 1px 1px 2px black;
    color: white;
  }

  .promo-caduca span{
    font-size: 1em;
    font-weight: 900;

  }

  .promo-titulo{
    top: 0.5em;
    right: 1em;
    width: 50%;
    position: absolute;
    z-index: 900;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    color: #ff9100;
    text-shadow: 2px 2px 1px black;      
  }

  .promo-descripcion{
    top: 3em;
    right: 2em;
    width: 50%;
    text-align: justify;
    position: absolute;
    z-index: 900; 
    color: white;
    text-shadow: 1px 1px 2px black;   
  }

  .link-card{
    position: relative;
    aspect-ratio: 16/9;
    max-height: 255px;
    overflow: hidden;
    border-radius: .5em;
    filter: drop-shadow(1px 1px 5px rgb(143,95,41));
  }

  .link-ico{
    position: absolute;
    padding: .5em;
    top: 50%;
    left: 20%;
    transform: 
      translate(-50%, -50%)
      scale(1);
    z-index: 900;
    color: red;
    background-color: #fff;    
    filter: drop-shadow(2px 2px 5px black);
    border-radius: 50%;
    transition-duration: 1s;
  }

  .link-ico:hover{
    filter: drop-shadow(2px 2px 5px white);
    color: #fff;
    background-color: red;
    transform: 
      translate(-50%, -50%)
      scale(1.1);
  }

  .link-secundario{
    position: absolute;
    bottom: 0;
    right: 0;
    transform: 
      translate(-50%, -50%)
      scale(1);
    z-index: 900;
    color: #fff;
    background-color: black;    
    filter: drop-shadow(2px 2px 5px black);
    border-radius: 50%;
    transition-duration: 1s;    
  }

  .link-secundario:hover{
    filter: drop-shadow(0 0 5px white);
    color: green;
    background-color: white;
    transform: 
      translate(-50%, -50%)
      scale(1.1);
  }

  .link-layer{
    position: absolute;
    background: rgb(179,133,48);
    background: linear-gradient(90deg, rgba(143,95,41,0) 0%, rgba(143,95,41,1) 80%);
    z-index: 800;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
  }

  .link-layer-blue{
    position: absolute;
    background: rgb(179,133,48);
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.8) 80%);
    z-index: 800;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
  }

  .link-img{
      filter: blur(0px);
  }

  .link-play{

  }

  .link-titulo{
    position: absolute;
    z-index: 999;
    top: 1.2em;
    right: 2em;
    width: 100%;
    color: white;
    text-align: right;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 1px 1px 2px black;
  }

  .link-descripcion{
    position: absolute;
    z-index: 900;
    width: 50%;
    top: 3.5em;
    right: 2em;
    color: #fafafa;
    font-size: 1.2em;
    text-align: justify;

    font-weight: 400;
    text-shadow: 1px 1px 2px black;    
  }

  .sepia-lft{
    background-color: rgb(143,95,41);
  }

  .dash-grid{
    display: grid;
    grid-template-areas: "main main main main aside";
    overflow: hidden;
  }

  .dash-right{  
    grid-area:  aside;  
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
  }

  .dash-main{
    grid-area: main;
    padding: 1em;
    overflow-y: scroll;
  }

  .patrocinador-card{
    width: 70%;
    justify-items: center;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    min-height: 200px;
    position: relative;
  }

  .patrocinador-img{
    min-height: 160px;
    object-fit: scale-down;
    z-index: 800px;
  }

  .patrocinador-titulo{
    font-size: 1.5em;
    font-weight: 900;
    color: #2563eb;
    padding: .5em 1em;
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: right;
  }

  .patrocinador-list{
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 300px;
  }

.patrocinador-destacado {
  padding: 1em;
  animation:  scale-animation 2s infinite;
}

.user-grid{
  display: grid;
  grid-template-areas: 
    "user-pic user-data-top user-data-top user-data-top"
    "user-data-left user-data-left user-data-right user-data-right"
    "user-buttons user-buttons user-buttons user-buttons";
  padding: 1em;
  background-color: #f1f1f1;
}

.user-grid input, .user-data-input{
  border: 1px solid #999;
  border-radius: .5em;
}



.user-pic{
  grid-area: user-pic;
  max-width: 150px;
  padding: 1em;
}

.user-data-top{
  grid-area: user-data-top;
  display: flex;
  flex-direction: column;
  padding: 0 .5em;  
}

.user-data-left, .user-data-right{
  display: flex;
  flex-direction: column;
  padding: 0 .5em;
}

.user-data-left{
    grid-area: user-data-left;
}

.user-data-right{
    grid-area: user-data-right;
}

.user-buttons{
  grid-area: user-buttons;
  display: flex;
  padding: 1em .5em;
  gap: 2em;
}

.user-dash-grid{
  width: 100%;
}


@keyframes scale-animation{
  0% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }   
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(33, 124, 142, 0.6);
  }
  100% {
    box-shadow: 0 0 0 80px rgba(33, 124, 142, 0);
  }
}
  /**++ SCROLLBAR ++*/

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: none;
    scrollbar-color: #397fdb #ffffff;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 15px;
  }

  *::-webkit-scrollbar-track {
    background: #f3f4f6;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #397fdb;
    border-radius: 10px;
    border: 3px solid #f3f4f6;
  }
  .curso-block{
    border-radius: .5em;
    filter:  drop-shadow(1px 1px 5px #999);
    overflow: hidden;
    display: flex;
    position: relative;
    box-sizing: border-box;
    min-height: 195px;
  }

  .curso-block-left{
    width: 40%;
    height: 100%;
  }
  .curso-block-right{
    position: relative;
    width: 60%;
    display: flex;
    flex-direction: column;
    padding: 1em;
    gap: 0;
    background-color: white;
    text-align: center;
  }
  .curso-link{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
  }
  .curso-img{
    width: 100%;
    object-fit: fill;
  }
  .curso-af{
    position: absolute;
    font-weight: 800;
    font-size: 2em;
    padding: .1em;
    color: white;
    opacity: 20%;
    text-shadow: 1px 1px 2px black;
    z-index: 9999;
  }
  .curso-title{
    color: #999;
  }
  .curso-days{
    font-weight: 400;
    color: #666;
  }
  .curso-hours{
    font-weight: 400;
    color: #333;
  }
  .curso-pass{
    font-weight: 500;
    color: blue;    
  }
  .curso-date{
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    width: 100%;
  }
  .curso-hover{
    position: absolute;
    width: 100%;
    bottom: 0;    
    height: 0;
    opacity: 0;
    padding: 1em .5em;
    transition-duration: 300ms;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.2) 90%,rgba(0,0,0,0) 100%);
    z-index: 90;
    display: flex;
    flex-direction: row;
    justify-content: right;    
  }

.btn-comprar{
  min-height: 2em;
}

  .curso-block:hover .curso-hover{
    opacity: 1;
    height: 30%;
  }

  .distorsionar{
    filter: blur(5px);
  }

  .wa-chat{
    position: fixed;
    bottom: 1em;
    right: 2em;
    display: flex;
    flex-direction: column-reverse;
    gap: 2em;
    height: 100px;
    overflow: hidden;
    padding: 1em;
  }

  .wa-maxed{
    height: auto;
  }

  .wa-chat-box{
    position: relative;
    min-height: 200px;
    max-height: 400px;
    background-color: white;
    width: 300px;
    display: flex;
    flex-direction: column;
    border-radius: .7em;
    filter: drop-shadow(1px 1px 5px #999);
    overflow: hidden;
    transition-duration: 200ms;
  }

  .wa-chat-header{
    background-color: #0a5f54;
    padding: 1.5em;
    display: flex;
    gap: 1em;
  }

  .wa-chat-cerrar{
    position: absolute;
    color: #f1f1f1;
    top: .8em;
    right: 1em;
  }

  .wa-chat-header-img{
    width: 50px;
    height: 50px;
    filter: drop-shadow(1px 1px 3px #333);
    background-color: white;
    border-radius: 50%;
    padding: .3em;
  }

  .wa-chat-header-text h2{
    font-weight: 600;
    color: white;
    font-size: 1.05em;
  }

  .wa-chat-header-text h3{
    font-weight: 300;
    color: #f1f1f1;
    font-size: 0.85em;    
  }

  .wa-chat-body{
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-color: #e5ddd5;
    padding: 1.3em;
  }

  .wa-chat-body-msg{
    padding: .5em .8em;
    background-color: white;
    border-radius: .5em;
  }
  
  .wa-chat-body-msg:focus {
      outline: none;
  }

  .wa-chat-body-msg h4{
    color: #999;
    font-weight: 600;
  }

  .wa-chat-body-msg p{
    color: #333;
    margin: 0.3em 0;
  }

  .wa-chat-footer{
    padding: .5em 1em;
    display: flex;
    justify-content: space-between;
  }

  .wa-chat-textbox{
    border: none;
    font-size: .9em;
  }

  input:focus{
    outline: none!important;
    border: transparent;

  }

  .wa-chat-send{
    color: #aaa;
  }

  .wa-chat-send i{
    margin-left: .3em;
    transform: rotateZ(30deg);
  }

  .wa-chat-send:hover{
    color: #0a5f54;
  }

  .wa-chat-button{
    background-color: #4dc247;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    filter: drop-shadow(1px 1px 5px #999);
    margin-right: 0;
    margin-left: auto;
    color: white;
    display: flex;
    margin-top: 2em;
    transition-duration: 300ms;
  }

  .wa-chat-button:hover{
    background-color: #23e319;
  }

  .wa-chat-button a{
    margin: auto;
  }

  .wa-oculto{
    opacity: 0;
    transform: 
      translate(50%,50%)!important
      scale(.1)!important;
      height: 500px;
  }

  .wa-credits{
    text-align: center;
    margin-top: .5em;
    transform: scale(.7);
    color: #999;
  }

  .wa-credits a{
    color: #333;
    font-weight: 600;
  }


  @media screen and (max-width: 1500px) {
    .curso-grid{
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media screen and (max-width: 1200px) {
    .curso-grid{
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media screen and (max-width: 900px) {
    main{
      width: 100%;
    }
    .curso-grid{
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media screen and (max-width: 650px) {
    .curso-block{
      max-height: 166px;
    }
    .curso-grid{
      grid-template-columns: repeat(1, 1fr);
    }
  }

  /**/
  @media screen and (max-width: 1500px){
    .dash-menu-cursos{ 
      grid-template-columns: repeat(3 , 1fr);
    }
    .dash-right{ 
      width: 300px;
    }    
    .curso-text-title{
      font-size: 1em;
    }
    .curso-text-horario{
      display: none;
    }
    .curso-img{
      min-height: auto;
      min-width: auto;
    }
    .link-titulo{
      font-size: .9em;
    }
    .link-descripcion{
      font-weight: 400;
      font-size: .8em;
    }
  }

  @media screen and (max-width: 1200px){
    .dash-menu-cursos{ 
      grid-template-columns: repeat(2 , 1fr);
    }
    .patrocinador-card{
      width: 100%;
    }  
    .dash-right{ 
      min-width: auto;
    }   
    .link-titulo{
      font-size: 1em;
    }
    .link-descripcion{
      font-size: 1em;
    }     
  }

  @media screen and (max-width: 900px){
    .dash-grid{
      grid-template-areas: "aside"
                           "main";
      overflow: scroll;
      height: auto;
      width: 100%;
    }
    .dash-right{  
      flex-direction: row;
      flex-wrap: wrap;
      width: 100%;
      justify-content: center;
    }
    .promo-card{
      width: 100%;
    }
    .patrocinador-card{
      width: 50%;
    }
    .link-titulo{
      font-size: 1.2em;
    }
    .link-descripcion{
      font-size: 1.2em;
    }      
  }

  @media screen and (max-width: 768px){
    .dash-menu-cursos{ 
      grid-template-columns: repeat(1 , 1fr);
    }
    .curso-hover{
      opacity: 1;
      height: 30%;
    }
    .curso-card{
      width: 100%;
      aspect-ratio:  auto;
    }
  } 

  @media screen and (max-width: 600px){
    .curso-hover{
      opacity: 1;
      height: 30%;
    }    
  }  