/**
 * eventos-pago.css - Estilos para pagos USDC
 * Estilo Gainovo Pay
 */

/* Modal Overlay */
.ecf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Modal Container */
.ecf-modal {
    background: white;
    border-radius: 32px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ecf-modal-overlay.active .ecf-modal {
    transform: translateY(0);
}

/* Modal Header */
.ecf-modal-header {
    text-align: center;
    padding: 32px 32px 0 32px;
    border-bottom: none;
}

.ecf-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.ecf-logo {
    max-height: 48px;
    width: auto;
}

.ecf-modal-title {
    color: #101E45;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.ecf-modal-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Modal Body */
.ecf-modal-body {
    padding: 24px 32px 32px 32px;
}

/* Payment Details */
.ecf-payment-details {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
}

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

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

.ecf-detail-label {
    color: #64748b;
    font-size: 14px;
}

.ecf-detail-value {
    color: #101E45;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

.ecf-detail-value-monto {
    color: #0F52AA;
    font-weight: 700;
    font-size: 24px;
}

.ecf-monto-moneda {
    font-size: 14px;
    font-weight: normal;
}

.ecf-detail-value-red {
    color: #10b981;
    font-size: 14px;
}

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

.ecf-input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
}

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

.ecf-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
    transition: all 0.2s;
}

.ecf-input:focus {
    outline: none;
    border-color: #0F52AA;
    box-shadow: 0 0 0 3px rgba(15, 82, 170, 0.1);
}

.ecf-input-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    padding: 0;
}

.ecf-input-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

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

.ecf-status-message.loading {
    display: flex;
    background: #e8f0fe;
    color: #004085;
    border-left: 4px solid #0F52AA;
}

.ecf-status-message.success {
    display: flex;
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.ecf-status-message.error {
    display: flex;
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

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

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

/* Progress Bar */
.ecf-progress {
    margin-bottom: 24px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

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

/* Modal Actions (Buttons) */
.ecf-modal-actions {
    display: flex;
    gap: 12px;
}

.ecf-btn {
    flex: 1;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
}

.ecf-btn-primary {
    background: #0F52AA;
    color: white;
}

.ecf-btn-primary:hover {
    background: #0b3d7e;
    transform: translateY(-1px);
}

.ecf-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.ecf-btn-secondary {
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.ecf-btn-secondary:hover {
    background: #f8fafc;
}

/* Modal Footer Note */
.ecf-modal-footer-note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.ecf-modal-footer-note p {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

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

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

/* Mensajes flotantes */
.ecf-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);
}

.ecf-mensaje-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.ecf-mensaje-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

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

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

.ecf-modal::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.ecf-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

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