.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 0;
}

.modal-wrapper {
    background-color: #fff;
    width: 95%;
    max-width: 1100px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.modal-body img {
    width: 100%;
    height: auto;
    max-height: none;
    margin-bottom: 30px;
    border-radius: 15px 15px 0 0;
}

.btn-doble {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 35px;
    height: auto;
    width: auto;
    max-width: 90%;
    background-color: #497d99;
    color: #ffffff;
    font-family: 'LinotypeAperto Bold', serif;
    font-size: 1.6rem;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s;
    margin-bottom: 40px;
    line-height: 1.3;
}

.btn-doble:hover {
    background-color: #3b667d;
    transform: scale(1.05);
}

.modal-footer-wrapper {
    width: 100%;
    border-top: 1px solid #f0f0f0;
    margin-top: -10px;
}

.close {
    position: fixed;
    top: 25px;
    right: 30px;
    color: #fff;
    font-size: 55px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    transition: color 0.3s;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.close:hover {
    color: #ff9a9a;
}

@media (max-width: 768px) {
    .modal-wrapper {
        margin: 20px auto;
        border-radius: 10px;
    }

    .btn-doble {
        font-size: 1.4rem;
        padding: 10px 20px;
    }
}