body {font-family: Arial, Helvetica, sans-serif;}

.recuadro-categorias-video{
        width: 100%;
    position: absolute;
    padding-left: 10%;
    padding-top: 12.5%;}

/* Fondo modal: negro con opacidad al 50% */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 450px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

video{
    margin: auto;
    width: 850; 
    height:auto;

}
 
/* Ventana o caja modal */
.contenido-modal {
    position: relative;
    background-color: white;
    margin: auto;
    background-color: transparent;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 45%;
    -webkit-animation-name: animarsuperior;
    -webkit-animation-duration: 0.5s;
    animation-name: animarsuperior;
    animation-duration: 0.5s;
}



/* Animación */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animarsuperior {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* Botón cerrar */
.cerrar {
  color: black;
  float: right;
  font-size: 30px;
  font-weight: bold;
}

.cerrar:hover,
.cerrar:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

button{
margin: auto; padding: 5px 10px; background: #EB0028; border: none;  border-radius: 12px; color: #FFF;
}


@media (max-width: 2200px){
  .contenido-modal {
    position: relative;
    background-color: white;
    margin: auto;
    background-color: transparent;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 50%;
    -webkit-animation-name: animarsuperior;
    -webkit-animation-duration: 0.5s;
    animation-name: animarsuperior;
    animation-duration: 0.5s;}  
    
}


@media (max-width: 1900px){

.contenido-modal {
    position: relative;
    background-color: white;
    margin: auto;
    background-color: transparent;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 55%;
    -webkit-animation-name: animarsuperior;
    -webkit-animation-duration: 0.5s;
    animation-name: animarsuperior;
    animation-duration: 0.5s;}
}


@media (max-width: 1800px){
.contenido-modal {
    position: relative;
    background-color: white;
    margin: auto;
    background-color: transparent;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 60%;
    -webkit-animation-name: animarsuperior;
    -webkit-animation-duration: 0.5s;
    animation-name: animarsuperior;
    animation-duration: 0.5s;}
}


@media (max-width: 1600px){
.contenido-modal {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 70%;
    -webkit-animation-name: animarsuperior;
    -webkit-animation-duration: 0.5s;
    animation-name: animarsuperior;
    animation-duration: 0.5s;}
}


@media (max-width: 1400px){
.contenido-modal {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 80%;
    -webkit-animation-name: animarsuperior;
    -webkit-animation-duration: 0.5s;
    animation-name: animarsuperior;
    animation-duration: 0.5s;}
}

@media (max-width: 1200px){
.contenido-modal {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 90%;
    -webkit-animation-name: animarsuperior;
    -webkit-animation-duration: 0.5s;
    animation-name: animarsuperior;
    animation-duration: 0.5s;}
}

@media (max-width: 1000px){
    video {
    margin: auto;
    width: 750;
    height: auto;
}
.contenido-modal {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    -webkit-animation-name: animarsuperior;
    -webkit-animation-duration: 0.5s;
    animation-name: animarsuperior;
    animation-duration: 0.5s;}
}

@media (max-width: 780px){

    
 video {
    margin: auto;
    width: 550;
    height: auto;
}    
    
.recuadro-categorias-video{
        width: 100%;
    position: absolute;
    padding-left: 42%;
    padding-top: 30%;}
}


@media (max-width: 650px){
    video {
    margin: auto;
    width: 450;
    height: auto;}    
}


@media (max-width: 550px){
    video {
    margin: auto;
    width: 350;
    height: auto;}    
}

@media (max-width: 430px){
 
.cerrar {
    color: black;
    float: right;
    font-size: 30px;
    font-weight: bold;
    margin-top: -15%;
}
.contenido-modal {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    -webkit-animation-name: animarsuperior;
    -webkit-animation-duration: 0.5s;
    animation-name: animarsuperior;
    animation-duration: 0.5s;}
    
    
     video {
    margin: auto;
    width: 330;
    height: auto;}

button{
margin: auto; padding: 2px 10px; background: #EB0028; border: none;  border-radius: 12px; color: #FFF;
}    
    
 .recuadro-categorias-video{
        width: 100%;
    position: absolute;
    padding-left: 40%;
    padding-top: 30%;}   
    
.modal{
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 125px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);}

}

@media (max-width: 420px){
   video {
    margin: auto;
    width: 310;
    height: auto;}
}


@media (max-width: 405px){
.cerrar {
    color: black;
    float: right;
    font-size: 30px;
    font-weight: bold;
    margin-top: -15%;}
}

@media (max-width: 400px){
..cerrar {
    color: black;
    float: right;
    font-size: 30px;
    font-weight: bold;
    margin-top: -65%;}
}

@media (max-width: 360px){
video {
    margin: auto;
    width: 280;
    height: auto;}
}