/* Estilos mejorados para el modal */
.terms-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.terms-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.terms-content h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.terms-content h3 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.terms-content p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}

.intro-text {
    font-weight: 500;
    margin-bottom: 25px;
}

.terms-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.terms-section:last-child {
    border-bottom: none;
}

.close-terms-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}


.close-terms-btn:hover {
    color: #333;
}

.terms-button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 20px auto 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
}

.terms-button:hover {
    background-color: #0056b3;
    /* text-decoration: none; */
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .terms-content {
        width: 90%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .terms-content h2 {
        font-size: 20px;
    }
    
    .terms-content h3 {
        font-size: 16px;
    }
    
    .terms-content p {
        font-size: 14px;
    }
}
    /* Estilos para el lightbox */
    /* .lightbox-modal {
        display: none;
        position: fixed;
        z-index: 1050;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        text-align: center;
    }
    
    .lightbox-content {
        margin: auto;
        display: block;
        max-width: 90%;
        max-height: 80vh;
        margin-top: 5vh;
    }
    
    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
    }
    
    .lightbox-close:hover {
        color: #bbb;
    }
    
    #lightboxCaption {
        margin: auto;
        display: block;
        width: 80%;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
    }
    
    @media only screen and (max-width: 768px) {
        .lightbox-content {
            max-width: 95%;
            max-height: 85vh;
        }
    } */