/**
 * Estilos públicos (Frontend)
 * Plugin: Gulupa Cobros
 */

/* === Variables === */
:root {
    --gulupa-primary: #2563eb;
    --gulupa-success: #10b981;
    --gulupa-warning: #f59e0b;
    --gulupa-danger: #ef4444;
    --gulupa-gray: #6b7280;
    --gulupa-border: #e5e7eb;
}

/* === Contenedor principal === */
.gulupa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === Estado de cuenta === */
.gulupa-estado-cuenta {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gulupa-servicio-item {
    border-bottom: 1px solid var(--gulupa-border);
    padding: 20px 0;
}

.gulupa-servicio-item:last-child {
    border-bottom: none;
}

/* === Métodos de pago === */
.gulupa-metodos-pago {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}

.gulupa-metodo-pago-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid var(--gulupa-border);
    border-radius: 6px;
    margin-bottom: 15px;
}

.gulupa-metodo-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gulupa-card-icon {
    width: 50px;
    height: 35px;
    background: var(--gulupa-gray);
    border-radius: 4px;
}

/* === Botones === */
.gulupa-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.gulupa-btn-primary {
    background: var(--gulupa-primary);
    color: #fff;
}

.gulupa-btn-primary:hover {
    background: #1e40af;
}

.gulupa-btn-outline {
    background: transparent;
    border: 1px solid var(--gulupa-border);
    color: var(--gulupa-gray);
}

/* === Alertas === */
.gulupa-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.gulupa-alert-mora {
    background: #fee2e2;
    border-color: var(--gulupa-danger);
    color: #991b1b;
}

.gulupa-alert-info {
    background: #dbeafe;
    border-color: var(--gulupa-primary);
    color: #1e40af;
}

/* === Loading === */
.gulupa-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gulupa-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gulupa-spin 0.8s linear infinite;
}

@keyframes gulupa-spin {
    to { transform: rotate(360deg); }
}

/* === Responsive === */
@media (max-width: 768px) {
    .gulupa-container {
        padding: 15px;
    }
    
    .gulupa-estado-cuenta,
    .gulupa-metodos-pago {
        padding: 20px;
    }
    
    .gulupa-metodo-pago-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
