/**
 * lingotes-payment.css - Estilos para pagos de Lingotes de Oro
 * Versión DARK MODERN - Basado en estilos de evento online
 */

/* === MODAL (estilo oscuro moderno) === */
.lingote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 20, 50, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.lingote-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lingote-modal {
    background: linear-gradient(145deg, #0F2B5C 0%, #0a1a3a 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lingote-modal-overlay.active .lingote-modal {
    transform: translateY(0) scale(1);
}

/* Header con tono azul moderno */
.lingote-modal-header {
    text-align: center;
    padding: 32px 32px 0 32px;
    border-bottom: none;
    position: relative;
}

.lingote-modal-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lingote-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.lingote-logo {
    max-height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.lingote-modal-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 1;
}

.lingote-modal-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Body */
.lingote-modal-body {
    padding: 24px 32px 32px 32px;
    position: relative;
    z-index: 1;
}

/* Detalles del producto - ORO */
.lingote-payment-details {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lingote-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lingote-detail-row:last-child {
    margin-bottom: 0;
}

.lingote-detail-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.lingote-detail-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

.lingote-detail-value-monto {
    color: #28a745;
    font-weight: 700;
    font-size: 24px;
}

.lingote-monto-moneda {
    font-size: 14px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.75);
}

.lingote-detail-value-gold {
    color: #ffd700;
    font-size: 14px;
}

/* Cantidad selector */
.lingote-cantidad-selector-modal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px 0;
}

.lingote-cantidad-selector-modal label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.lingote-cantidad-selector-modal select {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
}

.lingote-cantidad-selector-modal select:focus {
    outline: none;
    border-color: #0F52AA;
    box-shadow: 0 0 0 3px rgba(15, 82, 170, 0.2);
}

.lingote-cantidad-selector-modal select option {
    background: #0a1a3a;
    color: #ffffff;
}

/* Input group */
.lingote-input-group {
    margin-bottom: 24px;
}

.lingote-input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.lingote-input-wrapper {
    position: relative;
}

.lingote-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    font-size: 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transition: all 0.3s ease;
}

.lingote-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.lingote-input:focus {
    outline: none;
    border-color: #0F52AA;
    box-shadow: 0 0 0 3px rgba(15, 82, 170, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.lingote-input-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0;
    transition: color 0.2s;
}

.lingote-input-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Status */
.lingote-status-message {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.lingote-status-message.loading {
    display: flex;
    background: rgba(15, 82, 170, 0.15);
    color: #6db3ff;
    border-left: 4px solid #0F52AA;
}

.lingote-status-message.success {
    display: flex;
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.lingote-status-message.error {
    display: flex;
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.lingote-status-icon {
    font-size: 20px;
}

.lingote-status-message-text {
    flex: 1;
}

/* Progress */
.lingote-progress {
    margin-bottom: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.lingote-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0F52AA, #167BFF);
    transition: width 0.3s ease;
}

/* Botones */
.lingote-modal-actions {
    display: flex;
    gap: 12px;
}

.lingote-btn {
    flex: 1;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.lingote-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.lingote-btn-primary {
    background: linear-gradient(135deg, #0F52AA, #167BFF);
    color: white;
    border: 1px solid #0F52AA;
}

.lingote-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #167BFF, #4a9eff);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 82, 170, 0.3);
}

.lingote-btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lingote-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lingote-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer note */
.lingote-modal-footer-note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.lingote-modal-footer-note p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Loader */
.lingote-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: white;
    animation: lingote-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes lingote-spin {
    to { transform: rotate(360deg); }
}

/* Mensajes flotantes */
.lingote-mensaje-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lingote-mensaje-success {
    background: rgba(40, 167, 69, 0.95);
    color: #ffffff;
}

.lingote-mensaje-error {
    background: rgba(220, 53, 69, 0.95);
    color: #ffffff;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Scrollbar */
.lingote-modal::-webkit-scrollbar {
    width: 6px;
}

.lingote-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.lingote-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.lingote-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 640px) {
    .lingote-modal {
        width: 95%;
        margin: 16px;
        border-radius: 20px;
    }
    
    .lingote-modal-body {
        padding: 20px;
    }
    
    .lingote-modal-header {
        padding: 24px 24px 0 24px;
    }
    
    .lingote-modal-actions {
        flex-direction: column;
    }
    
    .lingote-btn {
        width: 100%;
    }
    
    .lingote-detail-value-monto {
        font-size: 20px;
    }
}