/* Asegúrate de que las clases están correctamente aplicadas y estructuradas */
.new-section {
    position: relative;
    right: -8em;
    background-color: #f9f9f9;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 80%;
}

/* Para pantallas de 300px a 399px */
@media (min-width: 300px) and (max-width: 399px) {
    .new-section {
        right: 0em;
        width: 95%;
    }
}

/* Para pantallas de 400px a 499px */
@media (min-width: 400px) and (max-width: 499px) {
    .new-section {
        right: 0em;
        width: 90%;
    }
}

/* Para pantallas de 500px a 599px */
@media (min-width: 500px) and (max-width: 599px) {
    .new-section {
        right: -5em;
        width: 85%;
    }
}

/* Para pantallas de 600px a 699px */
@media (min-width: 600px) and (max-width: 699px) {
    .new-section {
        right: -4em;
        width: 80%;
    }
}

/* Para pantallas de 700px a 799px */
@media (min-width: 700px) and (max-width: 799px) {
    .new-section {
        top: 1em;
        right: -4em;
        width: 75%;
    }
}

/* Para pantallas de 800px a 899px */
@media (min-width: 800px) and (max-width: 899px) {
    .new-section {
        right: -8em;
        width: 70%;
    }
}

/* Para pantallas de 900px a 999px */
@media (min-width: 900px) and (max-width: 999px) {
    .new-section {
        right: -7em;
        width: 65%;
    }
}

/* Para pantallas de 1000px a 1099px */
@media (min-width: 1000px) and (max-width: 1099px) {
    .new-section {
        right: -8em;
        width: 60%;
    }
}

/* Para pantallas de 1100px a 1199px */
@media (min-width: 1100px) and (max-width: 1199px) {
    .new-section {
        right: -9em;
        width: 55%;
    }
}

/* Para pantallas de 1200px a 1299px */
@media (min-width: 1200px) and (max-width: 1299px) {
    .new-section {
        right: 7em;
        width: 38%;
    }
}

/* Para pantallas de 1300px a 1399px */
@media (min-width: 1300px) and (max-width: 1399px) {
    .new-section {
        right: 9em;
        width: 38%;
    }
}

/* Para pantallas de 1400px a 1499px */
@media (min-width: 1400px) and (max-width: 1499px) {
    .new-section {
        right: 9em;
        width: 40%;
    }
}

/* Para pantallas de 1500px a 1599px */
@media (min-width: 1500px) and (max-width: 1599px) {
    .new-section {
        right: 10em;
        width: 40%;
    }
}

/* Para pantallas de 1600px a 1699px */
@media (min-width: 1600px) and (max-width: 1699px) {
    .new-section {
        right: 13em;
        width: 42%;
    }
}

/* Para pantallas de 1700px a 1799px */
@media (min-width: 1700px) and (max-width: 1799px) {
    .new-section {
        right: 16em;
        width: 40%;
    }
}

/* Para pantallas de 1800px a 1899px */
@media (min-width: 1800px) and (max-width: 1899px) {
    .new-section {
        right: 13em;
        width: 41%;
    }
}

/* Para pantallas de 1900px a 1999px */
@media (min-width: 1900px) and (max-width: 1999px) {
    .new-section {
        right: 16em;
        width: 38%;
    }
}

/* Para pantallas de 2000px en adelante */
@media (min-width: 2000px) {
    .new-section {
        right: 24em;
        width: 32%;
    }
}


.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    background-color: #fff;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-content {
    display: none;
    padding: 15px;
}

.accordion.open .accordion-content {
    display: block;
}

.terms-container {
    padding: 15px;
    background-color: #ffffff;
    max-height: 300px;
    overflow-y: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    position: relative;
    right: -8em;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-out;
}

/* Para pantallas de 300px a 399px */
@media (min-width: 300px) and (max-width: 399px) {
    .modal-content {
        right: -1em;
        width: 95%;
    }
}

/* Para pantallas de 400px a 499px */
@media (min-width: 400px) and (max-width: 499px) {
    .modal-content {
        right: -2em;
        width: 90%;
    }
}

/* Para pantallas de 500px a 599px */
@media (min-width: 500px) and (max-width: 599px) {
    .modal-content {
        right: -3em;
        width: 85%;
    }
}

/* Para pantallas de 600px a 699px */
@media (min-width: 600px) and (max-width: 699px) {
    .modal-content {
        right: -4em;
        width: 80%;
    }
}

/* Para pantallas de 700px a 799px */
@media (min-width: 700px) and (max-width: 799px) {
    .modal-content {
        right: -5em;
        width: 75%;
    }
}

/* Para pantallas de 800px a 899px */
@media (min-width: 800px) and (max-width: 899px) {
    .modal-content {
        right: -6em;
        width: 70%;
    }
}

/* Para pantallas de 900px a 999px */
@media (min-width: 900px) and (max-width: 999px) {
    .modal-content {
        right: -7em;
        width: 65%;
    }
}

/* Para pantallas de 1000px a 1099px */
@media (min-width: 1000px) and (max-width: 1099px) {
    .modal-content {
        right: -8em;
        width: 60%;
    }
}

/* Para pantallas de 1100px a 1199px */
@media (min-width: 1100px) and (max-width: 1199px) {
    .modal-content {
        right: -9em;
        width: 55%;
    }
}

/* Para pantallas de 1200px a 1299px */
@media (min-width: 1200px) and (max-width: 1299px) {
    .modal-content {
        right: -10em;
        width: 50%;
    }
}

/* Para pantallas de 1300px a 1399px */
@media (min-width: 1300px) and (max-width: 1399px) {
    .modal-content {
        right: -11em;
        width: 45%;
    }
}

/* Para pantallas de 1400px a 1499px */
@media (min-width: 1400px) and (max-width: 1499px) {
    .modal-content {
        right: -12em;
        width: 40%;
    }
}

/* Para pantallas de 1500px a 1599px */
@media (min-width: 1500px) and (max-width: 1599px) {
    .modal-content {
        right: -13em;
        width: 35%;
    }
}

/* Para pantallas de 1600px a 1699px */
@media (min-width: 1600px) and (max-width: 1699px) {
    .modal-content {
        right: -14em;
        width: 30%;
    }
}

/* Para pantallas de 1700px a 1799px */
@media (min-width: 1700px) and (max-width: 1799px) {
    .modal-content {
        right: -15em;
        width: 25%;
    }
}

/* Para pantallas de 1800px a 1899px */
@media (min-width: 1800px) and (max-width: 1899px) {
    .modal-content {
        right: -16em;
        width: 20%;
    }
}

/* Para pantallas de 1900px a 1999px */
@media (min-width: 1900px) and (max-width: 1999px) {
    .modal-content {
        right: -17em;
        width: 15%;
    }
}

/* Para pantallas de 2000px en adelante */
@media (min-width: 2000px) {
    .modal-content {
        right: -18em;
        width: 10%;
    }
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



