/* Estilos complementarios: modales de pago y alertas (diseño UTH) */

#alerta {
    display: none;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

#alerta.alerta-error {
    color: #FF3333;
    background: #fff5f5;
    border: 1px solid #ffc9c9;
}

#alerta.alerta-success {
    color: #006633;
    background: #f0fff4;
    border: 1px solid #dcbb36;
}

.modal-uth {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-uth.is-open {
    display: flex;
}

.modal-uth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal-uth-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #dcbb36;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 24px;
    font-family: 'Montserrat', sans-serif;
}

.modal-uth-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.modal-uth-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #006633;
    margin: 0 0 4px;
}

.modal-uth-header p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.modal-uth-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
}

.modal-uth-close:hover {
    color: #006633;
}

.modal-uth-alerta {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.modal-uth-alerta.alerta-error {
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #ffc9c9;
}

.modal-uth-alerta.alerta-success {
    color: #006633;
    background: #f0fff4;
    border: 1px solid #dcbb36;
}

.modal-uth-aviso {
    background: #fff8e6;
    border: 1px solid #dcbb36;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #333;
}

.modal-uth-aviso.aviso-error {
    background: #fff5f5;
    border-color: #ffc9c9;
}

.modal-uth-resumen {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #333;
}

.modal-uth-resumen div {
    margin-bottom: 4px;
}

.modal-uth-resumen .etiqueta {
    color: #666;
}

.modal-uth-resumen .valor {
    font-weight: 600;
    color: #006633;
}

.modal-uth-tarifa {
    background: #f0fff4;
    border: 1px solid #dcbb36;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.modal-uth-tarifa .fila {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.modal-uth-tarifa .total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: #006633;
    margin-top: 8px;
}

.modal-uth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.modal-uth-checkbox input {
    margin-top: 3px;
    width: auto;
    height: auto;
}

.modal-uth-actions {
    display: flex;
    gap: 10px;
}

.modal-uth-actions .btn-uth {
    flex: 1;
    height: 50px;
    border: 0;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-uth-actions .btn-uth:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-uth-primary {
    background: #006633;
    color: #dcbb36;
}

.btn-uth-primary:hover:not(:disabled) {
    background: #004d26;
}

.btn-uth-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-uth-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn-uth-pago {
    background: #006633;
    color: #fff;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
}

.btn-uth-pago:hover:not(:disabled) {
    background: #004d26;
}

.btn-uth-pago:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.modal-uth-form .campo {
    margin-bottom: 12px;
}

.modal-uth-form label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.modal-uth-form input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #dcbb36;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #006633;
    outline: none;
    box-sizing: border-box;
}

.modal-uth-form .fila-tarjeta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.modal-uth-nota {
    font-size: 11px;
    color: #999;
    margin: 8px 0;
}

body.modal-open {
    overflow: hidden;
}

#btnIrAPagar {
    background: #006633;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 4px;
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

#btnIrAPagar:disabled {
    background: gray;
    cursor: not-allowed;
}
