/* Model Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: auto; /* Habilitar scroll solo en teléfonos */
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Centra el modal */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Añadir sombra */
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content h2,
.modal-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    white-space: normal;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.modal button {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    border: 1px solid #66bb6a;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    margin: 0 10px;
}

.modal button#acceptTerms {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: 1px solid #66bb6a;
}

.modal button#rejectTerms {
    background: linear-gradient(135deg, #f44336, #e57373);
    border: 1px solid #e57373;
}

/* .error-message {
    color: red;
    font-size: 0.9em;
    display: none;
} */

/* Media query para teléfonos */
@media (max-width: 768px) {
    .modal-content {
        max-height: 90%; /* Altura máxima para móviles */
        overflow-y: auto; /* Scroll vertical solo en móviles */
    }

    /* Aumentar tamaño de fuente en teléfonos */
    .modal-content h2,
    .modal-content h3 {
        font-size: 20px; /* Tamaño de fuente aumentado */
    }

    .modal-content p {
        font-size: 16px; /* Tamaño de fuente aumentado */
    }

    .modal button {
        font-size: 18px; /* Tamaño de fuente aumentado para botones */
    }
}