body {font-family: Arial, Helvetica, sans-serif;}

/* Fondo modal: negro con opacidad al 50% */
.modal {
display: none; /* Por defecto, estará oculto */
position: fixed; /* Posición fija */
z-index: 1; /* Se situará por encima de otros elementos de la página*/
padding-top: 100px; /* El contenido estará situado a 200px de la parte superior */
left: 0;
top: 0;
width: 100%; /* Ancho completo */
height: 100%; /* Algura completa */
overflow: auto; /* Se activará el scroll si es necesario */
background-color: rgba(0,0,0,0.5); /* Color negro con opacidad del 50% */
}

/* Ventana o caja modal */
.contenido-modal {
position: relative; /* Relativo con respecto al contenedor -modal- */
background-color: white;
margin: auto; /* Centrada */
padding: 20px;
width: 90%;
max-width: 700px;
height: 400px;
-webkit-animation-name: animarsuperior;
-webkit-animation-duration: 0.5s;
animation-name: animarsuperior;
animation-duration: 0.5s;
border-radius: 5px;
background-image: url(../img/slide-1.jpg);
background-repeat: no-repeat;
background-position: center;
}

/* 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 */
.close {
color: white;
float: right;
font-size: 30px;
font-weight: bold;
}

.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
.bot-modal {
    margin-top: 200px;
    display: inline-block;
    width: 160px;
    background-color: #f5b120;
    text-align: center;
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 18px;
    color: white;
    text-decoration: none;
}