.modal {
    display: none;
    position: fixed;
    z-index: 1003;
    padding-top: 2em;
    padding-bottom: 2em;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #ffffff;
    padding: 3em 2em;
    border-radius: 1em;
    z-index: 1004;
    margin: 0 auto;
    max-width: calc(100% - 2em);
    width: 40em;
    position: relative;
}

.modal-content-img {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal-content-img img {
    display: block;
    width: auto;
    height: auto;
    max-height: calc(100vh - 8em);
    max-width: calc(100% - 6em);
}

.modal-content.small {
    width: 30em;
}

.modal-content .modal-data {
    padding: 3.5em 0;
}

.modal-content .modal-data.alt {
    padding: 2em 0;
}

.modal-content .vertical {
    padding: 1.5em 0;
}

.modal-content p {
    margin: 0;
    padding: 0;
    font-size: 0.9em;
}

.modal-content .vertical p:last-of-type {
    margin-top: 1em;
}

.modal-content h2 {
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1em;
    font-size: 2em;
    color: #000;
}

.modal-content h3 {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.2em;
    line-height: 1em;
    margin-bottom: 0;
}

.modal-content label {
    margin-bottom: 0;
    font-weight: 400;
    color: #000;
}

.modal-content input,
.modal-content select {
    height: 2em;
    border-radius: 1em;
    line-height: 1.5em;
}

.modal-content p {
    color: #000;
}

.modal-content input[type="submit"] {
    background: transparent;
    border: solid 2px #000;
    color: #000;
    float: right;
}

.modal-content ul {
    margin-bottom: 0.5em;
    padding-left: 0;
}

.modal-content ul:last-of-type {
    margin-bottom: 0;
}

.modal-content ul li {
    font-size: 0.9em;
    line-height: 1.35em;
    color: #000;
    display: inline-block;
    padding-left: 0;
}

.modal-content a {
    color: #000;
    cursor: pointer;
    border-bottom: none;
}

.modal-content a:hover {
    border-bottom: solid 1px;
}

.modal .close {
    position: absolute;
    color: #ffffff;
    top: 1em;
    right: 1em;
    font-size: 1em;
    font-weight: bold;
    z-index: 1005;
}

.modal .close i{font-size:1.5em;}

.modal .modal-content .close {
    top: 1.5em;
    right: 1.5em;
    color: #000;
}

.modal .close:hover,
.modal .close:focus {
    color: #eeeeee;
    text-decoration: none;
    cursor: pointer;
}

.modal .flecha {
    position: absolute;
    color: #ffffff;
    top: calc(50vh - 1em);
    font-size: 1.5em;
    font-weight: bold;
    z-index: 1005;
    cursor: pointer;
}

.modal .next {
    right: 1em;
}

.modal .pre {
    left: 1em;
}

.modal .flecha p {
    font-size: 2em;
}

@media screen and (max-width: 736px) {
    .modal {
        padding-top: 1em;
    }

    .modal .close {
        top: 0.75em;
        right: 0.75em;
        font-size: 2em;
        color: #ffffff;
    }

    .modal .close:hover,
    .modal .close:focus {
        color: #cacaca;
    }

    .modal .flecha {
        font-size: 1em;
    }

    .modal .next {
        right: 0.5em;
    }

    .modal .pre {
        left: 0.5em;
    }

    .modal-content {
        padding-top: 5em;
    }

    .modal-content .modal-data {
        padding: 1.5em 0;
    }
    .modal .close i{font-size:0.75em;}
    .modal .modal-content .close {
        top: 0.75em;
        right: 0.75em;
    }
}