.boton-comprar {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 10px;
    background: #ffd400;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    appearance: none;
}

.boton-comprar:hover {
    background: #e6bf00;
}

.boton-comprar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*modal*/
.modal-compra {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.65);
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.modal-compra.activo {
    display: flex;
}

.modal-compra__contenido {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    border-radius: 12px;
    box-sizing: border-box;
}

.modal-compra__contenido h2 {
    margin: 0 30px 24px 0;
    font-size: 23px;
}

.modal-compra__cerrar {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

#formulario-compra > label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 600;
}

#formulario-compra > input,
#formulario-compra > textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font: inherit;
    box-sizing: border-box;
}

#formulario-compra > textarea {
    resize: vertical;
}

.modal-compra__pagos {
    margin: 20px 0;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 7px;
}

.modal-compra__pagos legend {
    font-weight: 600;
    padding: 0 5px;
}

.modal-compra__pagos label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    cursor: pointer;
}

#boton-comprar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-compra__aviso {
    font-size: 12px;
    color: #777;
    margin-bottom: 0;
}

body.modal-abierto {
    overflow: hidden;
}

@media (max-width: 480px) {
    .modal-compra__contenido {
        padding: 22px;
    }
}